服务器启动项目抛错 没有到主机的路由

服务器启动项目抛错 没有到主机的路由

没有到主机的路由这种问题大部分情况是由机器的防火墙没有关闭

Ubuntu

  查看防火墙状态

ufw status

  关闭防火墙

ufw disable

centos6

  查看防火墙状态

service iptables status

  关闭防火墙

chkconfig iptables off 

centos7

  查看防火墙状态

firewall-cmd --state

  关闭防火墙

systemctl stop firewalld.service

 

posted on 2018-05-14 16:53 【cosmo】 阅读( ...) 评论( ...) 编辑 收藏

你可能感兴趣的:(服务器启动项目抛错 没有到主机的路由)