问题:
Centos7安装Apache Http服务器无法访问
解决方法:
1、安装Apache组件
[root@mycentos shell]# yum install httpd
2、安装成功后,检测有无httpd进程
()
[root@mycentos shell]# ps -e |grep httpd
3、如没有,启用该服务
[root@mycentos shell]# systemctl restart httpd.service
4、使用浏览器访问本机IP地址,显示链接失败。
应该是防火墙相关设置问题导致。
5、关闭并禁用防火墙
[root@mycentos shell]# systemctl stop firewalld.service #停止防火墙服务 [root@mycentos Desktop]# systemctl disable firewalld.service #禁用防火墙开机启动服务 Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
6、再次访问网站,能够成功登录
以上就是“centos安装apache服务器无法访问 centos安装apache无法访问怎么办”的详细内容,更多请关注1818ip网其它相关文章!
相关文章
标签:CentOS
- •centos中的uuid是必须的吗 centos安装minicom必须联网吗
- •centos如何查看用户 centos如何查看用户密码
- •centos重启后时间不对怎么办 centos时间不同步怎么解决
- •如何解决centos7下chrome打不开的问题 centos安装chrome
- •centos下ping不通网关怎么办 centos ping不通网关怎么解决
- •centos7系统找不到网卡 centos7装完系统找不到网卡
- •centos中pear命令无法使用怎么办 pear是什么意思
- •centos怎么实现开机进入命令行模式 centos7开机进入命令行模式
- •centos无法进入图形界面怎么解决 centos无法进入图形界面
- •centos默认用户名密码是什么 centos默认用户名密码