Tomcat 单机代理部署 小节2 | 您所在的位置:网站首页 › 反向代理部署什么意思 › Tomcat 单机代理部署 小节2 |
@[TOC](Tomcat 单机代理部署 小节2) 常见部署方式从epel源安装nginx ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo ~]# yum install nginx -y 复制代码 全部反向代理测试 ~]# vim /etc/nginx/nginx.conf ... #全部反向代理测试 location / { proxy_pass http://127.0.0.1:8080; #不管说明请求,都会访问后面的localhost虚拟主机 } ... #检查语法 ~]# nginx -t #启动nginx服务 ~]# systemctl start nginx ~]# systemctl enable nginx 复制代码 |
CopyRight 2018-2019 实验室设备网 版权所有 |