`

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

 
阅读更多

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)

.....

 

使用ps ef|grep nginx,并未发现有nginx进程,有可能被其他进程占用,这时可以采用如下方式处理:

 

1. 查看80端口占用

   netstat -ntpl

 

2. 杀掉占用80端口的进程

 

kill -9 $pid

分享到:
评论

相关推荐

    nginx启动服务提示98: Address already in use错误的解决

    尝试启动服务时,系统报错“nginx: [emerg] bind() to *.*.*.*:80 failed (98: Address already in use)”,提示无法绑定到地址和端口。 接下来,通过使用`lsof -i:80`命令来查看占用80端口的进程,发现是nginx进程...

    详解Nginx启动失败的几种错误处理

    当你尝试通过`systemctl start nginx.service`启动Nginx服务时,如果遇到`nginx: [emerg] bind() to 0.0.0.0:**** failed (13: Permission denied)`的错误,这通常意味着Nginx没有足够的权限绑定到指定的端口。...

    Nginx报403 forbidden错误 (13: Permission denied)的解决办法

    另一种解决方案是将Nginx启动用户改为目录的属主,如将`user nobody`改为`user root`,然后重启Nginx服务。 三、SELinux状态 在某些Linux发行版中,如CentOS或Fedora,SELinux是一种强制访问控制(MAC)安全模块,...

    Fastdfs—安装常见报错处理

    文章目录目录索引1.nginx: [emerg] unknown directive “ngx_fastdfs_module” in /usr/local/nginx/conf/nginx.conf:402.nginx: [emerg] bind() to 0.0.0.0:8888 failed(98:Address already in use)3.启动和上传都...

    nginx启动时遇到的问题

    nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) nginx 解决: 1.先使用ps -e | grep nginx查看是否已经启动了nginx 2.如果没有的话则按照提示,查看0.0.0.0:80端口谁占用了,使用netstat...

    Nginx启动常见错误及解决方法

    登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx....

    nginx安装与详细参数解释-含nginx-conf文件,里面加了部分注释

    - **端口冲突**:启动失败时可能会遇到类似`Startingnginx:nginx:[emerg]bind()to0.0.0.0:80failed(98:Addressalreadyinuse)`这样的错误提示。 - 解决方法:修改Nginx的监听端口,或将占用80端口的应用关闭或重新...

    详解nginx同一端口监听多个域名和同时监听http与https

    当遇到端口占用错误提示“nginx:[emerg]bind() to *.*.*.*:xxxx failed (98:Address already in use)”时,应检查是否有其他服务或Nginx实例已经占用了该端口,并进行相应的端口调整。 总的来说,通过合理配置Nginx...

    Nginx 服务器重启关闭重新加载命令

    nginx -s reload :修改配置后重新加载生效 nginx -s reopen :重新打开日志文件 ...nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied) nginx: configuration file /home/kratos/local/nginx/conf

Global site tag (gtag.js) - Google Analytics