按照老师讲的在浏览器上访问不了

来源:2-11 Nginx的目录和配置语法_默认配置与默认站点启动

qq_期待_34

2018-02-08

[root@bogon conf.d]# tail -f /var/log/nginx/error.log 

2018/02/08 21:13:47 [notice] 10762#10762: signal process started

2018/02/08 21:14:42 [emerg] 10764#10764: bind() to 0.0.0.0:80 failed (98: Address already in use)

2018/02/08 21:14:42 [emerg] 10764#10764: bind() to 0.0.0.0:80 failed (98: Address already in use)

2018/02/08 21:14:42 [emerg] 10764#10764: bind() to 0.0.0.0:80 failed (98: Address already in use)

2018/02/08 21:14:42 [emerg] 10764#10764: bind() to 0.0.0.0:80 failed (98: Address already in use)

2018/02/08 21:14:42 [emerg] 10764#10764: bind() to 0.0.0.0:80 failed (98: Address already in use)

2018/02/08 21:14:42 [emerg] 10764#10764: still could not bind()

2018/02/08 21:23:19 [notice] 10860#10860: signal process started

2018/02/08 21:27:18 [notice] 10891#10891: signal process started

2018/02/08 21:27:46 [notice] 10895#10895: signal process started


写回答

3回答

Jeson

2018-02-09

 bind() to 0.0.0.0:80 failed (98: Address already in use)

这个错误的提示,表示你系统上的80端口已经被应用程序占用了。

在系统上执行:netstat -luntp|grep 80  ,看看是否有进程占用

0
2
qq_期待_34
非常感谢!
2018-02-09
共2条回复

qq_期待_34

提问者

2018-02-08

Permissive

[root@bogon ~]# iptables -F

[root@bogon ~]# iptables -t nat -F

[root@bogon ~]# getenforce

Permissive

[root@bogon ~]# setenforce 0

[root@bogon ~]# getenforce

Permissive

我怎么管不上这个呢


0
0

qq_期待_34

提问者

2018-02-08

服务器telnet 127.0.01 80 不通 

0
0

Nginx入门到实践-Nginx中间件应用+搭建Webserver架构

中间件、负载均衡、应用层安全防护、动静分离、Nginx+LUA开发等

4183 学习 · 908 问题

查看课程