【发布时间】:2014-09-19 20:54:43
【问题描述】:
我正在尝试将Nginx 使用的端口从端口80 更改为5555
我已经进入nano /etc/nginx/sites-enabled/default
并编辑:
server {
listen 5555;
}
但是当我尝试重新启动时,我得到:
$ service nginx restart
Restarting nginx: nginx.
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
我错过了什么吗?
【问题讨论】:
标签: nginx