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

dsh安裝指南

系統 1789 0

dsh 批量管理 linux 服務器


?
一,安裝 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

出錯記得修復( 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,內容如下:

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

?

dsh --help

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

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

dsh安裝指南


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

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

【本文對您有幫助就好】

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

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产福利午夜波多野结衣 | 国产精品18久久久久网站 | 日日摸夜夜摸狠狠摸日日碰夜夜做 | 精彩视频一区二区三区 | 欧美日韩综合视频 | 免费a一级毛片在线播放 | 12345国产精品高清在线 | 国产精品男人的天堂 | 伊人情人综合成人久久网小说 | 亚洲欧洲尹人香蕉综合 | 久久精品免费 | 精品日韩二区三区精品视频 | 日韩a一级欧美一级 | 偷偷操99 | 国产精品国产精品国产专区不卡 | 久久www免费人成_看片高清 | 美女被羞羞在线观看 | 91手机在线观看 | 久久成人免费视频 | 国产精品毛片久久久久久久 | 成人毛片免费观看视频大全 | 久久久久一区二区三区 | 一 级做人爱全视频在线看 一a级毛片 | 俄罗斯色视频 | 国产一区二区三区不卡在线观看 | 99国产超薄丝袜足j在线观看 | 永久久久免费浮力影院 | 亚洲精品乱码久久久久久蜜桃欧美 | 99re热视频这里只有精品5 | 日本α级毛片视频免费观看 | 久久精品久久久 | 欧美亚洲网站 | 视频二区 素人 欧美 日韩 | 特黄特色大片免费播放器999 | 国产福利专区精品视频 | 天天弄天天操 | 久久天天躁狠狠躁狠狠躁 | 亚洲午夜视频在线 | 91视频青青草 | 福利在线免费 | 亚洲综合视频在线观看 |