Nginx反向代理、缓存服务器

Nginx反向代理、缓存服务器

一、 配置nginx反向代理、缓存服务器
1、配置基本环境
1)
配置基本环境centos01、02 站服务器、03nginx和缓存服务器

[root@centos03 ~]# vim /var/named/benet.com.zone
$TTL 86400
@ SOA benet.com. root.benet.com (
2020040610
1H
15M
1W
1D
)
@ NS centos03.benet.com.
centos03 A 192.168.200.254
www A 192.168.200.254
[root@centos03 ~]# chmod +x /var/named/benet.com.zone
[root@centos03 ~]# chown named:named /var/named/benet.com.zone
[root@centos03 ~]# named-checkconf /etc/named.conf
[root@centos03 ~]# named-checkzone benet.com /var/named/benet.com.zone
zone benet.com/IN: loaded serial 2020040610
OK
4)
启动dns

[root@centos03 ~]# systemctl start named
[root@centos03 ~]# systemctl enable named
5、客户端访问
1)
客户端配置IP地址

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年4月14日
下一篇 2020年4月14日

相关推荐