linux 常用命令
chmod-R755wenjian
rm-rf文件名强行删除ls-a查看隐藏文件
kill-9pid
ps-ef|grepjava
cdcd..返回上一级cd/data/tomcat-8080./
mkdir
copy
bin/startup.sh
tail-flogs/catalina.out
#!/usr/bin/expect
settimeout30
spawnscp-r/data/tomcat-8081/ROOT/root@ip:/data/tomcat-80/
expect{
"yes/no"{send"yes\r";exp_continue}
"password:"{send"WWW123c0m\r"}
}
interact
#!/usr/bin/expect
settimeout30
spawnssh-lrootip
expect"password:"
send"WWW123c0m\r"
expect"*#"
send"cd/data/tomcat-8081/\r"
expect"*#"
send"bin/shutdown.sh\r"
expect"*#"
send"bin/startup.sh&tail-flogs/catalina.out\r"
interact
相关推荐
linuxwcj 2020-10-21
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20