亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

dsh安裝指南

系統(tǒng) 2131 0

dsh 批量管理 linux 服務(wù)器


?
一,安裝 dsh

切換到root用戶,然后切換到work_home_yourname


wget? http://www.netfort.gr.jp/~dancer/software/downloads/libdshconfig-0.20.9.tar.gz
tar zxvf libdshconfig-0.20.9.tar.gz
cd libdshconfig-0.20.9
./configure

出錯(cuò)記得修復(fù)( Ubuntu: configure error: C++ preprocessor "/lib/cpp" fails sanity check??

?apt-get install???build-essential)

make && make install
?
wget? http://www.netfort.gr.jp/~dancer/software/downloads/dsh-0.25.9.tar.gz
tar zxvf dsh-0.25.9.tar.gz
cd dsh-0.25.9
./configure
make && make install
?
ln -s /usr/local/lib/libdshconfig.so.1 /lib/

echo "/usr/local/lib/libdshconfig.so.1">> /etc/ld.so.conf

ldconfig


[root@localhost ~]# which dsh
/usr/local/bin/dsh
?

?


二,用法介紹:

切換回需要的用戶.

mkdir .dsh

cd .dsh

touch how-to-use,內(nèi)容如下:

dsh -M -r ssh -f file目錄 ?--命令?

?

dsh --help

-v –verbose?????????????????? Verbose output?? 詳細(xì)模式輸出
-q –quiet???????????????????? Quiet??安靜模式輸出
-M –show-machine-names????? Prepend the host name on output顯示被控制主機(jī)的 hostname
-H –hide-machine-names????? Do not prepend host name on output??不顯示主機(jī)名( default)
-i –duplicate-input??????????? Duplicate input given to dsh
-b –bufsize?????????????????? Change buffer size used in input duplication
-m –machine [machinename]???? Execute on machine?主機(jī)名
-n –num-topology????????????? How to divide the machines
-a –all????????????? Execute on all machines??主機(jī)列表,默認(rèn)列表在 /root/.dsh/machines.list
-g –group [groupname]? Execute on group member?指定主機(jī)名組 ,主機(jī)名組在 /root/.dsh/group/
-f –file [file]?????????????? Use the file as list of machines??選擇主機(jī)列表
-r –remoteshell [shellname]?? Execute using shell (rsh/ssh)??指定遠(yuǎn)程工具,默認(rèn)為 rsh
-o –remoteshellopt [option]?? Option to give to shell
-h –help????????????????????? Give out this message
-w –wait-shell??????????????? Sequentially execute shell?指定順序運(yùn)行,默認(rèn)是并行
-c –concurrent-shell????????? Execute shell concurrently
-F –forklimit [fork limit]??? Concurrent with limit on number
-V –version?????????????????? Give out version information

三,應(yīng)用舉例:
?dsh -M -r ssh -m ~/a.txt -- hostname
? ? ? ?

dsh安裝指南


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 深夜网站免费 | 国产福利午夜自产拍视频在线 | 成人黄色网 | 久久乱码精品区中文字幕 | 国产免费高清视频 | 亚洲精品视频一区二区 | 久久在线免费 | 四虎8848精品永久在线观看 | 久久久久一 | 久久久精品视频免费观看 | 四虎成人精品在永久在线观看 | 久久久99视频| 天天拍天天干天天操 | 在线视频一二三区2021不卡 | 波多野野结衣1区二区 | 欧美成人xxxxxxxx在线 | 亚洲无成人网77777 | 99ri国产| 久久99精品亚洲热综合 | 91最新在线视频 | 久久高清免费 | 欧美人在线一区二区三区 | 一级特黄特色aa大片 | 综合图片区 | 丁香综合在线 | 成人免费观看高清在线毛片 | 人人爱人人草 | 狠狠干夜夜 | 国产性色视频在线高清 | 国产亚洲综合久久 | 天天干天天操天天射 | 一区二区不卡不卡一卡 | 国产第九页 | 国产成人综合亚洲亚洲欧美 | 东北老妇露脸xxxxx | 久久香蕉国产精品一区二区三 | 国产毛片一区二区 | 亚洲欧美视频一区二区三区 | 久久夜夜操妹子 | 亚洲国产国产综合一区首页 | 国产美女亚洲精品久久久毛片 |