1.关闭防火墙(systemctl stop firewalld)
2.vi /etc/selinux/config
3.修改这个为SELINUX=disabled
4.保存退出并且重启一下
5.yum repolist
6.yum install -y httpd
7.systemctl status httpd
8.cp -rf /etc/httpd/conf/httpd.conf httpd.conf.bak//备份
9.rm -rf /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html
10.cp -rf /opt/centos/* /var/www/html
11.chmod -R 755 /var/www/html/*
12.getenforce//查看一下selinux是否为disable
13.systemctl start httpd
Linux的配置httpd服务
最新推荐文章于 2024-02-01 07:00:00 发布