准备工作:
关闭防火墙:
[root@localhost ~]# systemctl disable --now firewalld
修改enforce为permissive
[root@localhost ~]# setenforce 0
[root@localhost ~]# geten
getenforce getent
[root@localhost ~]# getenforce
Permissive
重启服务
[root@localhost ~]# systemctl restart nginx
:搭建一个web服务器,访问该服务器时显示“hello world”欢迎界面
实验二:
建立两个基于ip地址访问的网站,要求如下
该网站ip地址的主机位为100,设置首页目录为/www/ip/100,网页内容为:this is 100。
该网站ip地址主机位为200,设置首页目录为/www/ip/200,网页内容为:this is 200。
[root@localhost ~]# nmtui