nginx 前置依赖
yum -y install openssl openssl-devel make zlib zlib-devel gcc gcc-c++ libtool pcre pcre-devel
安装
./configure --prefix=/usr/local/nginx
make
make install
配置
在http 中加入
upstream nacoscluster {
server 127.0.0.1:8848;
}
server {
listen 8847;
server_name localhost;
location /nacos/{
proxy_pass http://nacoscluster/nacos/;
}
}
启动
cd /sbin
./nginx