gpt4 book ai didi

ubuntu - 重启nginx : [emerg] bind() to 0. 0.0.0:80 failed (98: Address already in use)

转载 作者:行者123 更新时间:2023-12-04 02:06:05 24 4
gpt4 key购买 nike

我尝试 sudo service nginx restart它显示了这个错误:

nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

我认为是关于这个符号链接(symbolic link)?
ln -s ../sites-available/default default

我试试
cd /etc/nginx && grep -R listen *

sites-available/default: listen 80;
sites-enabled/default: listen 80;

我如何解决它?

最佳答案

您可以使用以下方法杀死它:

sudo fuser -k 80/tcp

然后再次尝试重新启动 nginx:
service nginx start

关于ubuntu - 重启nginx : [emerg] bind() to 0. 0.0.0:80 failed (98: Address already in use),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25204727/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com