nginxÔõô¼ì²é״̬
ÔõÑù¼ì²é nginx ״̬
Nginx ÊÇÒ»¿îÊ¢ÐÐµÄ Web ЧÀÍÆ÷£¬¿ÉÒÔÓÃÓÚÍйÜÍøÕ¾ºÍÓ¦ÓóÌÐò¡£¼ì²é Nginx ״̬¹ØÓÚÈ·±£ÆäÕý³£ÔËÐкÍÐÔÄÜÖÁ¹ØÖ÷Òª¡£
ÔõÑù¼ì²é nginx ״̬
Óм¸ÖÖÒªÁì¿ÉÒÔ¼ì²é Nginx ״̬£º
ʹÓà Nginx Status Ä£¿é£º´ËÄ£¿éÌṩÁËÒ»¸öÄÚ½¨µÄ Web ½çÃ棬ÓÃÓÚÉó²é Nginx µÄʵʱ״̬¡£ÔÚä¯ÀÀÆ÷Öлá¼ûÒÔÏ URL ¼´¿É»á¼û´Ë½çÃ棺
http://ÄãµÄЧÀÍÆ÷IPµØµã:8080/nginx_status
µÇ¼ºó¸´ÖÆ
ʹÓÃÏÂÁîÐй¤¾ß£º¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÐй¤¾ß¼ì²é Nginx ״̬£º
nginx -V£ºÏÔʾ Nginx °æ±¾ºÍ±àÒëÉèÖÃÐÅÏ¢¡£
nginx -t£º²âÊÔ Nginx ÉèÖÃÎļþÊÇ·ñÓÐÓá£
service nginx status »ò systemctl status nginx£¨¹ØÓÚ Linux£©£ºÏÔʾ Nginx ЧÀ͵Ä״̬¡£
Éó²éÈÕÖ¾Îļþ£ºNginx ÈÕÖ¾Îļþ£¨Í¨³£Î»ÓÚ /var/log/nginx/error.log£©¿ÉÒÔÌṩÓйØÆäÔËÐÐ״̬µÄÐÅÏ¢¡£
Ïêϸ˵Ã÷
Nginx Status Ä£¿é
Nginx Status Ä£¿éÌṩÒÔÏÂÐÅÏ¢£º
Ô˶¯ÅþÁ¬Êý
ÇëÇó´¦ÀíÂÊ
ÄÚ´æʹÓÃÇéÐÎ
ЧÀÍÆ÷ uptime
ÿ¸öÊÂÇéÖ°Ô±Àú³ÌµÄ״̬
ÏÂÁîÐй¤¾ß
nginx -V£º´ËÏÂÁîÏÔʾ°æ±¾ºÅºÍ±àÒëÑ¡ÏÓÐÖúÓÚÈ·¶¨ÊÇ·ñ×°ÖÃÁËËùÐèµÄÄ£¿éºÍ¹¦Ð§¡£
nginx -t£º´ËÏÂÁîÑéÖ¤ Nginx ÉèÖÃÎļþÊÇ·ñ׼ȷ£¬²¢±¨¸æÈκÎÓï·¨¹ýʧ»òDZÔÚÎÊÌâ¡£
service nginx status »ò systemctl status nginx£º´ËÏÂÁîÏÔʾ Nginx ЧÀ͵ÄÄ¿½ñ״̬£¬°üÀ¨ÊÇ·ñÕýÔÚÔËÐС¢×èÖ¹ÕÕ¾ÉÖØмÓÔØ¡£
ÈÕÖ¾Îļþ
Nginx ÈÕÖ¾Îļþ°üÀ¨ÓйØЧÀÍÆ÷ÔËÐÐ״̬µÄÏêϸÐÅÏ¢£¬°üÀ¨£º
¹ýʧÐÂÎÅ
ÖÒÑÔ
ÊÂÎñ£¨ÀýÈçÅþÁ¬ºÍ¶Ï¿ªÅþÁ¬£©
Ö´ÐÐʱ¼äµÈÐÔÄÜÖ¸±ê
½áÂÛ
ͨ¹ýʹÓà Nginx Status Ä£¿é¡¢ÏÂÁîÐй¤¾ßºÍÈÕÖ¾Îļþ£¬¿ÉÒÔÇáËɼì²é Nginx µÄ״̬²¢¼à¿ØÆäÐÔÄÜ¡£Õâ¹ØÓÚÈ·±£Ð§ÀÍÆ÷Õý³£ÔËÐкÍʵʱ½â¾öÈκÎÎÊÌâºÜÊÇÖ÷Òª¡£
ÒÔÉϾÍÊÇnginxÔõô¼ì²é״̬µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡