nginxÔõô×èÖ¹ÏÂÁîÐÐ
ͨ¹ýÏÂÁîÐÐ×èÖ¹ nginx µÄ°ì·¨£º1. ÕÒµ½ nginx Àú³Ì id£¨pid£©£»2. ʹÓà kill »ò systemctl ÏÂÁîʹÓà pid ×èÖ¹ nginx Àú³Ì£»3. ÑéÖ¤ nginx ÊÇ·ñÒÑ×èÖ¹£¬ÒªÁìÊÇʹÓà ps -ef | grep nginx ¼ì²é nginx Àú³Ì¡£
ÔõÑùͨ¹ýÏÂÁîÐÐ×èÖ¹ Nginx
ҪʹÓÃÏÂÁîÐÐ×èÖ¹ Nginx Web ЧÀÍÆ÷£¬Çëƾ֤ÒÔÏ°취²Ù×÷£º
1. ²éÕÒ Nginx Àú³Ì ID£¨PID£©
ps -ef | grep nginx
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
2. ʹÓà PID ×èÖ¹ Nginx Àú³Ì
ÓÐÁ½ÖÖÒªÁì¿ÉÒÔƾ֤ PID ×èÖ¹ Nginx£º
ʹÓà kill ÏÂÁ
kill <pid></pid>
µÇ¼ºó¸´ÖÆ
ÀýÈ磺
kill 12345
µÇ¼ºó¸´ÖÆ
ʹÓà systemctl ÏÂÁ½öÏÞ Systemd ϵͳ£©£º
systemctl stop nginx
µÇ¼ºó¸´ÖÆ
3. ÑéÖ¤ Nginx ÊÇ·ñÒÑ×èÖ¹
ʹÓÃÒÔÏÂÏÂÁî¼ì²é Nginx ÊÇ·ñÒÑÀÖ³É×èÖ¹£º
ps -ef | grep nginx
µÇ¼ºó¸´ÖÆ µÇ¼ºó¸´ÖÆ
ÈôÊÇδÕÒµ½ Nginx Àú³Ì£¬ÔòÌåÏÖËüÒÑÀÖ³É×èÖ¹¡£
ÒÔÉϾÍÊÇnginxÔõô×èÖ¹ÏÂÁîÐеÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡