nginx经常使用

Nginx  html

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

Nginx -s stop 中止web

killall -9 nginx spa

netstat -ltunp 查看进程server

nginx -s reload 重启htm

 

cp -r 路径 指定路径进程

scp -r -p22222 /本地 root@1.0.0.0:/ io

 

转发 class

     location = /passport/queryMobileByUserCode {proxy_pass

               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;

   }

}

相关文章
相关标签/搜索