1安装apache
yum install httpd httpd-devel -y
2开启服务器
systemctl start httpd.service
3开机自启
systemctl enable httpd.service
4关闭防火墙
5端口访问
6修改vi /etc/httpd/conf/httpd.conf,替换
7查看selinux
也可以不修改,放入/var/www/html路径下
8访问(自己写个简单的html界面测试即可)
linux篇-centos7搭建apache服务器(亲测可用)
阅读 45
2022-05-23
1安装apache
yum install httpd httpd-devel -y
2开启服务器
systemctl start httpd.service
3开机自启
systemctl enable httpd.service
4关闭防火墙
5端口访问
6修改vi /etc/httpd/conf/httpd.conf,替换
7查看selinux
也可以不修改,放入/var/www/html路径下
8访问(自己写个简单的html界面测试即可)
相关推荐
精彩评论(0)