xiaoping-2014

安装apache服务器时遇到只能本地访问,局域网内其他电脑不能访问apache:
1.查看selinux运行状态及关闭selinux
/usr/sbin/sestatus -v
文本模式关闭selinux:
vi /ect/selinux/config
把 SELINUX=enforcing 注释掉:#SELINUX=enforcing ,然后新加一行为:SELINUX=disabled
保存,reboot system!!!
用命令setenforce可以修改Current mode,不能关闭selinux。
但是依然不能访问apache;
2.查看防火墙状态:
service iptables status
service iptables stop
3.重启apache服务后,其他电脑可以访问apache了。
4.chkconfig iptables off 关闭防火墙功能

分类:

技术点:

相关文章:

  • 2021-12-26
  • 2021-11-30
  • 2021-12-14
  • 2021-09-05
  • 2021-10-29
  • 2022-12-23
  • 2021-12-27
  • 2021-04-12
猜你喜欢
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
  • 2022-12-23
  • 2021-09-18
相关资源
相似解决方案