1、安装httpd:yum install httpd
2、启动:service httpd restart
3、http若链接不上则查看防火墙
查看:systemctl status firewalld
service firewalld status
临时关闭:systemctl stop firewalld
永久关闭:systemctl disable firewalld
打开:systemctl enable firewalld
4、可以尝试先临时关闭firewalld再永久关闭firewalld。
5、修改selinux的config文件:SELINUX=disable;查看http是否可以链接本地ip
Linux httpd服务的启动
猜你喜欢
转载自www.cnblogs.com/jingying-shi/p/10406240.html
今日推荐
周排行