nginx常用

Nginx  

nginx -c /etc/nginx/nginx.conf 启动

Nginx -s stop 停止

killall -9 nginx 

netstat -ltunp 查看进程

nginx -s reload 重启

 

转发 

     location = /passport/queryMobileByUserCode {

               proxy_pass http://;

     }

 

 

本地

/usr/local/nginx/conf

Chmod 777 *

 

server {

    listen       80;

    server_name  localhost;

    access_log  logs/access.log;

    error_log   logs/error.log;

 

 location / {

   root /data/webserver/www/;

   index index.html;

   }

}

猜你喜欢

转载自www.cnblogs.com/bhan/p/9078041.html
今日推荐