系统相关
首页 > 系统相关> > Linux中apche配置

Linux中apche配置

作者:互联网

yum install httpd -y ##安装apache软件
yum install httpd-manual ##安装apache手册
systemctl start httpd
systemctl enable httpd
firewall-cmd --list-all ##列出火墙信息
firewall-cmd --permanent --add-service=http ##若是火墙开启需将http加入火墙允许列表
firewall-cmd --reload ##火墙重新加载策略


 

测试:

vim /var/www/html/index.html

 

<h1>hello world</h1>

标签:httpd,cmd,http,##,配置,apche,systemctl,Linux,火墙
来源: https://www.cnblogs.com/newobject/p/11150480.html