1.安装apache服武器
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 ##火墙从新加载策略
/var/www/html ##apache的/目录,默认发布目录
/var/www/html/index.html ##apache的默认发布文件
/vim /var/www/html/index.html ##写默认发布文件内容
设置访问端口为9999
cd /etc/hhttpd/conf
vim httpd.conf
进入后设置为9999 保存退出
systemctl restart httpd 重启httpd
netstat -atunp |grep httpd 查看httpd
2.加新的默认页面sorry.htm