这让我发疯了!我想在端口81上使用Nginx,在80上使用apache.apache正常工作,但是当我想启动Nginx时,我收到此错误:
Nginx: [emerg] bind() to 0.0.0.0:80 Failed (98: Address already in use)
但我没有在Nginx上的端口80上配置任何网站!
server {
listen 81 default_server;
listen [::]:81 default_server ipv6only=on;
server_name _;
return 444;
}
server {
listen 81; ## listen for ipv4
server_name domain.com;
root /home/domain/public_html/;
location / {
}
.
.
.
}
最佳答案