日本a√视频在线,久久青青亚洲国产,亚洲一区欧美二区,免费g片在线观看网站

        <style id="k3y6c"><u id="k3y6c"></u></style>
        <s id="k3y6c"></s>
        <mark id="k3y6c"></mark>
          
          

          <mark id="k3y6c"></mark>

          新聞中心

          EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > RedHat AS 3.0下高可用性集群配置

          RedHat AS 3.0下高可用性集群配置

          作者: 時(shí)間:2016-09-12 來(lái)源:網(wǎng)絡(luò) 收藏

          在CU里混了兩年多了,第一次認(rèn)真的寫篇東西,真是慚啊。。。。。。。。

          轉(zhuǎn)載時(shí)請(qǐng)保留作者的個(gè)人信息,謝謝[/quote]

          ------------------------------------------------------------------------------

          此篇文章于前日寫的那篇文章相對(duì)應(yīng),其實(shí)在console下redhat也提供了一組強(qiáng)大

          的配置命令,其中最主要的就是redhat-config-cluster-cmd這個(gè)命令,此外還有

          clusvcadm,clushutdown等多個(gè)命令,下面我們就對(duì)照上一篇文章用控制臺(tái)下的命令將

          配置重新做一邊.

          1、列出當(dāng)前集群名字

          redhat-config-cluster-cmd --cluster

          2、設(shè)置當(dāng)前集群名字為“test_cluster”

          redhat-config-cluster-cmd --cluster --name='test_cluster'

          3、顯示當(dāng)前裸設(shè)備狀態(tài)

          redhat-config-cluster-cmd –sharedstate

          4、添加一個(gè)集群節(jié)點(diǎn),名字為“10.0.0.155”

          redhat-config-cluster-cmd --add_member --name=10.0.0.155

          5、修改一個(gè)節(jié)點(diǎn)名字由member2到member3

          redhat-config-cluster-cmd --member=member2 --name=member3

          6、刪除一個(gè)名為member3的節(jié)點(diǎn)

          redhat-config-cluster-cmd --member=member3 --del_member

          7、列出當(dāng)前集群內(nèi)的服務(wù)

          redhat-config-cluster-cmd –services

          8、添加一個(gè)名為httpd的服務(wù)

          redhat-config-cluster-cmd --add_service --name=httpd

          9、列出名為httpd的這個(gè)服務(wù)下的子節(jié)點(diǎn)

          redhat-config-cluster-cmd --service=httpd

          10、設(shè)置httpd服務(wù)的相關(guān)信息,檢測(cè)時(shí)間,啟動(dòng)腳本等等

          redhat-config-cluster-cmd --service=httpd

          --checkinterval=15

          --userscript=/etc/rc.d/init.d/httpd

          11、刪除名為httpd的集群服務(wù)

          redhat-config-cluster-cmd --service=httpd

          --del_service

          12、列出httpd服務(wù)的ip地址

          redhat-config-cluster-cmd --service=httpd

          --service_ipaddresses

          13、設(shè)置httpd的對(duì)外服務(wù)IP地址為10.0.0.157

          redhat-config-cluster-cmd --service=httpd

          --add_service_ipaddress

          --ipaddress=10.0.0.157

          14、設(shè)置對(duì)方服務(wù)ip的掩碼地址及廣播地址

          redhat-config-cluster-cmd --service=httpd

          --service_ipaddress=10.0.0.157

          --netmask=255.0.0.0

          --broadcast=10.0.0.255

          15、刪除httpd服務(wù)的10.0.0.157的這個(gè)IP地址

          redhat-config-cluster-cmd --service=httpd

          --service_ipaddress=10.0.0.157

          --del_service_ipaddress

          16、列出httpd服務(wù)的設(shè)備

          redhat-config-cluster-cmd --service=httpd

          --devices

          17、給httpd服務(wù)添加共享磁盤sdc1

          redhat-config-cluster-cmd --service=httpd

          --add_device

          --name=/dev/sdc1

          18、設(shè)置共享磁盤的參數(shù)

          redhat-config-cluster-cmd --service=httpd

          --device=/dev/sdc1

          --mount

          --mountpoint=/www

          --fstype=ext3

          --options=rw

          19、啟用10.0.0.155節(jié)點(diǎn)上的httpd服務(wù)

          clusvcadm -e httpd -m 10.0.0.155

          20、禁用10.0.0.155節(jié)點(diǎn)上的httpd服務(wù)

          clusvcadm -d httpd -m 10.0.0.155

          21、停止10.0.0.155節(jié)點(diǎn)上的httpd服務(wù)

          clusvcadm -s httpd -m 10.0.0.155

          更多命令請(qǐng)?jiān)诳刂婆_(tái)執(zhí)行以下命令

          #man redhat-config-cluster-cmd


          上一頁(yè) 1 2 3 下一頁(yè)

          關(guān)鍵詞:

          評(píng)論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉