nginxÏÂÁîÔõô¹Ø±Õ
¹Ø±Õ nginx µÄÏÂÁîÊÇ nginx -s quit¡£¸ÃÏÂÁîÏò nginx Àú³Ì·¢ËÍ quit Ðźţ¬µ¼Ö nginx Õý³£¹Ø±Õ¡£ÆäËûÑ¡Ïî°üÀ¨£º1. -s stop£ºÇ¿ÖÆÁ¬Ã¦¹Ø±Õ nginx¡£2. -s reopen£ºµ¼Ö nginx ÖØз¿ªÈÕÖ¾Îļþ¡£
¹Ø±Õ nginx
Òª¹Ø±Õ nginx£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁ
nginx -s quit
µÇ¼ºó¸´ÖÆ
¸ÃÏÂÁÏò nginx Àú³Ì·¢ËÍÒ»¸ö QUIT Ðźţ¬Õ⽫µ¼Ö nginx Õý³£¹Ø±Õ¡£
Ïêϸ˵Ã÷
nginx ÏÂÁÕâÊÇÓÃÀ´¿ØÖÆ nginx Àú³ÌµÄÏÂÁî¡£
-s quit£º´Ë±ê¼ÇÖ¸¶¨Òª·¢Ë͸ø nginx Àú³ÌµÄÐźš£ÔÚÕâÇéÐÎÏ£¬ÎÒÃÇ·¢ËÍ QUIT Ðźţ¬Õâ¸æËß nginx ×èÖ¹ÔËÐС£
ÆäËûÑ¡Ïî
³ýÁË QUIT ÐźÅÍ⣬»¹¿ÉÒÔʹÓÃÆäËûÐźÅÀ´¹Ø±Õ nginx£¬ÈçÏÂËùʾ£º
-s stop£º·¢ËÍ STOP Ðźţ¬Õ⽫ǿÖÆ nginx Á¬Ã¦¹Ø±Õ£¬¶ø²»ÆÚ´ýÕýÔÚ¾ÙÐеÄÇëÇóÍê³É¡£
-s reopen£º·¢ËÍ REOPEN Ðźţ¬Õ⽫µ¼Ö nginx ÖØз¿ªÆäÈÕÖ¾Îļþ¡£
×¢ÖØ:
ÔÚʹÓÃÉÏÊöÏÂÁî֮ǰ£¬È·±£ nginx ÕýÔÚÔËÐС£
ÈôÊÇ nginx ÎÞ·¨Õý³£¹Ø±Õ£¬¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÇ¿Öƹرգº
kill -9 <nginx id></nginx>
µÇ¼ºó¸´ÖÆ
ÆäÖÐ ÊÇ nginx Àú³ÌµÄÀú³Ì ID¡£
ÒÔÉϾÍÊÇnginxÏÂÁîÔõô¹Ø±ÕµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡