以Httpd为例:
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
以下是重点:
当以上几点都没有什么问题时,那么就一定是liunx的防火防火墙没有关闭!
关闭并禁用防火墙:
[root@mycentos shell]# systemctl stop firewalld.service #停止防火墙服务
[root@mycentos shell]# systemctl status firewalld.service #查看防火墙的状态
[root@mycentos Desktop]# systemctl disable firewalld.service #禁用防火墙开机启动服务
博客以Httpd为例,介绍Centos7安装Apache Http服务器可能遇到的问题及解决办法。可能未安装Apache组件,需用yum install httpd安装;安装后可能未启动服务,可通过ps -e |grep httpd检测,用systemctl restart httpd.service启用。若都没问题,可能是Linux防火墙未关闭,需停止并禁用防火墙。
1213

被折叠的 条评论
为什么被折叠?



