一、配置web服务器
准备操作
首先在正式配置之前需要做以下操作
关闭防火墙
systemctl stop firewalld
永久关闭防火墙
systemctl disable firewalld
关闭selinux
setenforce 0
永久关闭selinux
vim /etc/selinux/config
selinux=permissive
还需要保证能够正常ping通www.baidu.com
1.安装nginx
[root@web ~]# yum -y install nginx
查看nginx的安装情况
[root@web ~]# rpm -qa | grep nginx
[root@web ~]# rpm -ql nginx
2.启动nginx
[root@web ~]# nginx
3.编写页面内容
使用echo写入内容
[root@web ~]# echo "I am web server marjor is static file manager" > /usr/share/nginx/html/index.html
4.浏览器访问测试
能够在web页面看到我们写入的内容了
二、配置客户端服务器
1.创建dns服务器,解析域名
编写配置文件
[root@cl