使用nginx加zuul配置
配置文件
$ ls -lrt
-rw-r--r-- 1 root root  826 May 10 10:56 nginx.conf
$ pwd
/etc/nginx
增加配置
在http {}里
    upstream nginx_zuul {
        server XXXX: 8769;
   }
   server {
        listen 80;
        location / {
                proxy_pass http://nginx_zuul;
                proxy_set_header Host $host:$server_port;
   	}
   }
XXXX:8769是zuul的ip和端口
看nginx进程
$ ps -ef|grep nginx
root      17596      1  0 Apr27 ?        00:00:00 nginx: master process nginx
nginx     31011  17596  0 May10 ?        00:00:00 nginx: worker process
mysql     35669  35311  0 10:55 pts/0    00:00:00 grep --color=auto nginx
                    
                
                
            
        
浙公网安备 33010602011771号