shell中使用ssh
ssh [email protected] <<remotessh ps -ef|grep mongod | grep -v grep remotessh
shell中切换root权限
#!/bin/bash sudo su <<EOF mkdir document; exit; EOF
shell中使用ssh
ssh [email protected] <<remotessh ps -ef|grep mongod | grep -v grep remotessh
shell中切换root权限
#!/bin/bash sudo su <<EOF mkdir document; exit; EOF