nginx°æ±¾Ôõô¿´
ÔõÑùÉó²é nginx °æ±¾
1. ÖÕ¶ËÏÂÁî
ÔÚÖÕ¶ËÖУ¬ÔËÐÐÒÔÏÂÏÂÁ
nginx -v
µÇ¼ºó¸´ÖÆ
Êä³öЧ¹û»áÏÔʾ Nginx µÄ°æ±¾ÐÅÏ¢¡£
2. ÉèÖÃÎļþ
¿ÉÒÔÔÚ Nginx ÉèÖÃÎļþÖÐÉó²é°æ±¾ÐÅÏ¢¡£ÕÒµ½ÒÔÏÂÐУº
server_tokens on;
µÇ¼ºó¸´ÖÆ
ÈôÊÇÆôÓÃÁËЧÀÍÆ÷ÁîÅÆ£¬Êä³öÏìӦͷÖн«°üÀ¨ Nginx °æ±¾¡£ÔÚä¯ÀÀÆ÷Öлá¼ûÍøÕ¾£¬²¢ÔÚÏìӦͷÖвéÕÒ “Server” ×ֶΡ£
3. Nginx Plus
¹ØÓÚ Nginx Plus£¬¿ÉÒÔÔÚÏÂÁîÐÐÖÐʹÓÃÒÔÏÂÏÂÁîÉó²é°æ±¾£º
nginx-plus -v
µÇ¼ºó¸´ÖÆ
Êä³öЧ¹û»áÏÔʾ Nginx Plus µÄ°æ±¾ÐÅÏ¢¡£
ÒÔÉϾÍÊÇnginx°æ±¾Ôõô¿´µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£