毕业论文

打赏
当前位置: 毕业论文 > 计算机论文 >

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

时间:2018-11-20 09:25来源:毕业论文
[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:/


  [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";
};
~                                                                                                                                                    
~                                                                                                                                                     中小企业web服务器的的负载均衡集群方案设计+脚本代码(11):http://www.youerw.com/jisuanji/lunwen_1181.html
------分隔线----------------------------
推荐内容