nginx——随笔111
/etc/logrotate.d/nginx
/etc/sysconfig/nginx
/etc/nginx nginx.conf
/var/log/nginx 日志
/var/cache/nginx
/usr/sbin/nginx 命令
/usr/lib64/nginx
/usr/share/nginx html
/usr/libexec/initscripts/legacy-actions/nginx
仅做端口的tcp转发
stream {
upstream service {
server 172.*。*.180:5672; # 127.0.0.1:5672 为需要转发的服务
}
# 监听 80 端口
server {
listen 5672 reuseport;
listen [::]:5672 reuseport;
proxy_pass service; # service为upstream定义的名称
}
}