apache服务器安装部署
yum install httpd -y ###安装apache服务软件
yum install httpd=manual -y ###apache手册
systemctl start httpd
systemctl enable httpd
firewall-cmd --permanent --add-service=http ###永久允许http
firewall-cmd --reload ###防火墙重新加载策略
apache基本信息
/var/www/html ###apache的默认发布目录
/var/www/html/index ###apache的默认发布文件
/etc/httpd/conf/httpd.conf ###apache主配置文件
/etc/httpd/conf.d/*.conf ###apache子配置文件
netstat -antlupe | grep httpd ###查看apache默认端口,80端口
httpd_sys_content_t ###默认安全上下文
/etc/httpd/logs/* ###apache日志
测试:编辑发布文件index.html,打开浏览器,输入apache服务器IP
cd /var/www/html/
vim index.html
<h1>test.page<h1>
<h2>hello world!<h2>