中小企业web服务器的的负载均衡集群方案设计+脚本代码(11)_毕业论文

毕业论文移动版

毕业论文 > 计算机论文 >

中小企业web服务器的的负载均衡集群方案设计+脚本代码(11)


  [base]
name=Server
baseurl=file:///mnt/data/Server
gpgcheck=0
enabled=1

[Cluster]
name=Cluster
baseurl=file:///mnt/data/Cluster
gpgcheck=0
enabled=1

[ClusterStorage]
name=ClusterStorage
baseurl=file:///mnt/data/ClusterStorage
gpgcheck=0
enabled=1

[VT]
name=VT
baseurl=file:///mnt/data/VT
gpgcheck=0
enabled=1

(5)验证是否创建yum源成功
  用yum list验证

yum install 包名
yum remove 包名
yum groupinstall "X Development Tool"
    
    创建本地yum源成功,见下图。
    
图4-2-1 本地yum源的配置
 
图4-2-1 验证本地yum源成功
4.3.3 安装配置DNS

(1)配置好本地yum源
(2)安装DNS服务器软件包
  #yum install bind

(3)建立主配置文件
  #vim /etc/named.conf
在其中添加
options {
                directory "/var/named";
};
zone "." {
                type hint;
                file "named.ca";
};
zone "localhost"{
                type master;
                file"localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
                type master;
                file"named.local";
};

zone "test1.com" {
                type master;
                file "test1.zone";
};

zone "1.168.192.in-addr.arpa" {
                type master;
                file "test1.inverse";
};
~                                                                                                                                                    
~                                                                                                                                                     (责任编辑:qin)