安装12345wget http://nginx.org/download/nginx-1.20.0.tar.gztar -zxvf nginx-1.20.0.tar.gzcd nginx-1.20.0./configure --prefix=/usr/local/nginx --with-http_ssl_modulemake && make install 配置配置文件 1234567891011121314server { listen 80; server_name 47.93.225.255; location / { proxy_pass http://127.0.0.1:5000; }}server { listen 81; server_name 47.93.225.255; location / { proxy_pass http://127.0.0.1:5001; }} 使用123456# 启动/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf# 重启/usr/local/nginx/sbin/nginx -s reload # 停止/usr/local/nginx/sbin/nginx -s stop