[root@localhost ~]# yum install httpd -y
[root@localhost ~]# yum install httpd-manual
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# systemctl enable httpd
[root@localhost ~]# firewall-cmd --list-all
[root@localhost ~]# firewall-cmd --permanent --add-service=http
[root@localhost ~]# firewall-cmd --reload
[root@localhost ~]# rpm -qa |grep httpd
[root@localhost ~]# vim /var/www/html/index.html
[root@localhost ~]# cd /etc/httpd/conf
[root@localhost conf]# ls
httpd.conf magic
[root@localhost conf]# vim httpd.conf
[root@localhost conf]# firewall-cmd --permanent add-port=9999/tcp
[root@localhost conf]# firewall-cmd --reload
[root@localhost conf]# firewall-cmd --list-all
[root@localhost conf]# systemctl restart httpd
[root@localhost ~]# cd /var/www/net/lor
[root@localhost lor]# ls
index.html
[root@localhost ~]# echo"很抱歉...该网站正在维护中,请您在5月11号之后再访问,感谢你的支持"> /var/www/net/lor/sorry.html
[root@localhost lor]# cd /etc/httpd/conf
[root@localhost conf]# ls
httpd.conf magic
[root@localhost conf]# vim httpd.conf
[root@localhost conf]# setenforce 0
[root@localhost conf]# systemctl restart httpd
[root@localhost ~]# nmtui
进入编辑连接,再进入ens33,将自动改为手动添加ip地址