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;
}
}