[[Email protected]]# cat>>nginx_vhosts.conf<<eof
Server
{
Listen 80;
server_name status.etiantian.org;
Location/{
Stub_status on;
Access_log off;
}
}
Eof
[Email protected]]#. /sbin/nginx-t
Nginx:theconfiguration File/application/nginx-1.10.1/conf/nginx.confsyntax is OK
Nginx:configuration File/application/nginx-1.10.1/conf/nginx.conftest is successful
[Email protected]]#. /sbin/nginx-s Reload
[Email protected]]# netstat-lnt #或者 netstat-lnt|grep
Active internetconnections (only servers)
Proto recv-qsend-q Local address Foreign address state
TCP 0 0 0.0.0.0:892 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:32803 0.0.0.0:* LISTEN
TCP 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:875 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:59448 0.0.0.0:* LISTEN
TCP 0 0::: 892:::* LISTEN
TCP 0 0::: 2049:::* LISTEN
TCP 0 0::: 32803:::* LISTEN
TCP 0 0:: ffff:127.0.0.1:8005:::* LISTEN
TCP 0 0::: 8009:::* LISTEN
TCP 0 0::: 57707:::* LISTEN
TCP 0 0::: 111:::* LISTEN
TCP 0 0::: 8080:::* LISTEN
TCP 0 0::: $:::*
The hosts file resolves the status.etinantian.org
192.168.47.133 www.etiantian.org bbs.etiantian.org blog.etiantian.org etiantian.org
192.168.47.133 status.etiantian.org
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/83/5C/wKiom1dxN7GB5jYjAABaloEKv94301.png " Title= "Untitled. png" alt= "Wkiom1dxn7gb5jyjaabaloekv94301.png"/>
This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1793453
Configuring Nginx status information Virtual host