Nginx命令
# 查看nginx版本
nginx -v
# 停止
nginx -s stop
# 安全退出
nginx -s quit
# 重新加载配置文件
nginx -s reload
代理nacos集群
upstream nacos-cluster {
server 127.0.0.1:8845 weight=1;
server 127.0.0.1:8846 weight=2;
server 127.0.0.1:8847 weight=3;
}
server {
listen 80;
server_name localhost;
location /nacos {
proxy_pass http://nacos-cluster;
}
}