Nginx启动出现 localhost.localdomain systemd[1]: Starting nginx - high performance ...问题

CentOS7启动Nginx不了:
[root@localhost ~]# systemctl start nginx.service
[root@localhost ~]# systemctl status nginx.service
nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; disabled)
Active: active (running) since 四 2019-10-17 08:14:33 CST; 10min ago
Docs: http://nginx.org/en/docs/
Process: 3074 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 3072 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 3076 (nginx)
CGroup: /system.slice/nginx.service
├─3076 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
└─3077 nginx: worker process

10月 17 08:14:33 localhost.localdomain systemd[1]: Starting nginx - high performance …
10月 17 08:14:33 localhost.localdomain nginx[3072]: nginx: the configuration file /et…k
10月 17 08:14:33 localhost.localdomain nginx[3072]: nginx: configuration file /etc/ng…l
10月 17 08:14:33 localhost.localdomain systemd[1]: Started nginx - high performance w…
10月 17 08:15:56 localhost.localdomain systemd[1]: Started nginx - high performance w…
10月 17 08:16:53 localhost.localdomain systemd[1]: Started nginx - high performance w…
10月 17 08:24:42 localhost.localdomain systemd[1]: Started nginx - high performance w…
Hint: Some lines were ellipsized, use -l to show in full.

出现以上情况导致网站访问不了,可以从防火墙方面找问题
可以关闭防火墙systemctl stop firewalld 或者使用最暴力的方法,iptables -F清除策略。就可以访问啦。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值