配置了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 ;
}
}