1.安装
使用yum进行安装
yum install nginx
# ssl
yum install openssl
yum install openssl-devel
2.nginx主要命令
nginx -s reload
nginx -s stop
nginx
3.配置,http模块上添加如下
upstream tomcat_1 {
server ip:port;
}
location / {
proxy_pass https://tomcat_1;
}
网友评论