*1?安裝配置nginx
>yum install nginx
>cd /etc/nginx/conf.d/
>vim nginc.conf
`
server {
???? listen *:80;
???? server_name localhost;
???? autoindex on;??
???? autoindex_exact_size off;??
???? autoindex_localtime on;
#?? limit_conn one 8;??????
???? limit_rate 5000k;????????
??????allow 192.168.1.0/24;????
#???? allow 172.16.0.0/16;
#???? deny??all;
???? location /
???? {
???????????? index index.html index.htm;
???????????? root /usr/share/nginx/html;
???? }
???? location /nginx_status {??????
???? stub_status on;
???? access_log off;
???? allow 192.168.1.0/24;
???? deny all;
???? }
}
`