1.前提配置 关防火墙 关selinux
2.安装web服务程序nginx

3.当前主机添加多地址(ip a)




**4.自定义nginx配置文件通过多地址区分多网站
/etc/nginx/conf.d/test_ip.conf
server { #标记为一个虚拟主机}**
5.根据配置在主机创建数据文件

6.重启服务加载配置
7.客户端连接测试


2.安装web服务程序nginx
/etc/nginx/conf.d/test_ip.conf
server { #标记为一个虚拟主机}**