nginxЧÀÍÔõô×èÖ¹
ÔõÑù×èÖ¹ nginx ЧÀÍ
°ì·¨£º
1. È·ÈÏ Nginx ÕýÔÚÔËÐÐ
ʹÓà systemctl status nginx ÏÂÁî¼ì²é Nginx ЧÀÍ״̬¡£
2. ʹÓà systemd
¼üÈëÒÔÏÂÏÂÁîÀ´×èÖ¹ Nginx ЧÀÍ£º
sudo systemctl stop nginx
µÇ¼ºó¸´ÖÆ
3. ʹÓà init.d
¹ØÓڽϾɵÄϵͳ£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁî×èÖ¹ Nginx ЧÀÍ£º
sudo service nginx stop
µÇ¼ºó¸´ÖÆ
4. ʹÓÃÏÂÁîÐÐ
¼üÈëÒÔÏÂÏÂÁîÀ´×èÖ¹ Nginx Àú³Ì£º
sudo /etc/init.d/nginx stop
µÇ¼ºó¸´ÖÆ
5. ÑéÖ¤×èÖ¹
ʹÓà systemctl status nginx »ò service nginx status ÏÂÁîÑéÖ¤ Nginx ЧÀÍÊÇ·ñÒÑ×èÖ¹¡£ÈôÊÇÊä³öÏÔʾ “inactive (dead)” »ò “stopped”£¬Ôò Nginx ÒÑÀÖ³É×èÖ¹¡£
ÒÔÉϾÍÊÇnginxЧÀÍÔõô×èÖ¹µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£