nginxÏÂÁîÔõôÖØÆô
ÖØÆô nginx µÄ°ì·¨£º²éÕÒ nginx Àú³ÌµÄ pid£¨ps aux | grep nginx£©Ê¹Óà pid ×èÖ¹ nginx£¨kill -s quit £©ÔÙ´ÎÆô¶¯ nginx£¨nginx£©
Nginx ÖØÆôÏÂÁî
Nginx ÊÇÒ»¸öÊ¢ÐÐµÄ Web ЧÀÍÆ÷£¬ÓÃÓÚÌṩÄÚÈݺͷ´ÏòÊðÀí¡£ÒªÖØÆô Nginx£¬Äú¿ÉÒÔʹÓÃÒÔÏ°취£º
²éÕÒ nginx Àú³ÌµÄ PID
ps aux | grep nginx
µÇ¼ºó¸´ÖÆ
ʹÓà PID ×èÖ¹ Nginx
kill -s QUIT <pid></pid>
µÇ¼ºó¸´ÖÆ
ÔÙ´ÎÆô¶¯ Nginx
nginx
µÇ¼ºó¸´ÖÆ
Ïêϸ˵Ã÷
²éÕÒ PID£ºps aux | grep nginx ÏÂÁÁгöËùÓÐÕýÔÚÔËÐÐµÄ Nginx Àú³Ì£¬²¢ÏÔʾËüÃǵÄÀú³Ì ID (PID)¡£
×èÖ¹ Nginx£ºkill -s QUIT ÏÂÁîʹÓà QUIT Ðźţ¨Í˳öÇëÇó£©×èÖ¹ Nginx Àú³Ì¡£
ÔÙ´ÎÆô¶¯ Nginx£ºnginx ÏÂÁÖØÐÂÆô¶¯ Nginx ЧÀÍ¡£
×¢ÖØ£º
È·±£ÄúÒÔ¾ßÓÐ sudo »ò root ȨÏÞµÄÓû§Éí·ÝÔËÐÐÕâЩÏÂÁî¡£
ÈôÊÇ Nginx Àú³ÌÓÉÓÚijЩԵ¹ÊÔÓÉÎÞ·¨Õý³£ÖÕÖ¹£¬Äú¿ÉÒÔʹÓà kill -9 ÏÂÁîÇ¿ÖÆÖÕÖ¹¡£
ÒÔÉϾÍÊÇnginxÏÂÁîÔõôÖØÆôµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡