nginx 的安装
# yum install nginx

新建配置文件
# vi /etc/nginx/conf.d/resume-xyz-8081.conf

配置
upstream resume {
server 127.0.0.1:8081;
}

server {
listen 80;
server_name 60.205.179.198;

location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Nginx-proxy true;

proxy_pass http://resume;
proxy_redirect off;
}
}

esc :x 保存退出

修改配置文件
# vim /etc/nginx/conf.d/default.conf

默认状态:
listen 80 default_server;
listen [::]:80 default_server;
修改:
listen 80;
#listen [::]:80 default_server;

esc :x 保存退出
重启 # service nginx restart

输入60.205.179.198即可访问81端口了!