首页 新闻 会员 周边 捐助

初识nginx tcp负载均衡问题,望提点,感谢;

0
[待解决问题]

配置了nginx tcp 负载均衡,用来对8829端口转发,启动时提示:nginx: [emerg] bind() to 0.0.0.0:8829 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions),这个提示,是否是我写的配置内容有问题?
下面是配置:

worker_processes 1;

events {
worker_connections 1024;
}

http {
}

stream{
server{
listen 8829;
proxy_pass ioPort;
}

upstream ioPort{
server 127.0.0.1:8835 ;
server 127.0.0.1:8836 ;
server 127.0.0.1:8837 ;
}
}

xiao木木的主页 xiao木木 | 菜鸟二级 | 园豆:206
提问于:2020-07-04 11:45
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册