您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

centos安装apache服务器无法访问

2024/6/13 0:14:38发布27次查看
问题:
centos7安装apache http服务器无法访问
解决方法:
1、安装apache组件
[root@mycentos shell]# yum install httpd
2、安装成功后,检测有无httpd进程
(推荐教程:centos使用教程)
[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、再次访问网站,能够成功登录
相关视频教程推荐:linux视频教程
以上就是centos安装apache服务器无法访问的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product