摘要:
#!/bin/shmongo_path=$(cd $(dirname $(which mongo)) && pwd)now_path=$(cd $(dirname $0) && pwd)echo $mongo_pathecho $now_path 阅读全文
posted @ 2015-08-06 18:17
建伟
阅读(130)
评论(0)
推荐(0)
摘要:
#!/usr/bin/expectset timeout 30set ip [lindex $argv 0]spawn ssh root@$ip expect {"yes/no" { send "yes\r"; exp_continue }"password:" { send "123456\r" ... 阅读全文
posted @ 2015-08-06 18:08
建伟
阅读(207)
评论(0)
推荐(0)
摘要:
@echo offfor /d /r E:\test01\ %%i in (test) do rd /s /q "%%i"pause 阅读全文
posted @ 2015-08-06 18:05
建伟
阅读(416)
评论(0)
推荐(0)
摘要:
#!/bin/shpid=`ps -ef | grep /usr/bin/memcached | grep -v grep | awk '{print $2}'`kill $pid 阅读全文
posted @ 2015-08-06 16:23
建伟
阅读(176)
评论(0)
推荐(0)
摘要:
docker create -it --name mongodb mongo/myubuntu1.4docker start mongodbdocker exec -it mongodb bashiptables -t nat -A POSTROUTING -s 10.126.253.2 -j SN... 阅读全文
posted @ 2015-08-06 16:20
建伟
阅读(764)
评论(0)
推荐(0)
浙公网安备 33010602011771号