shell中使用ssh
ssh root@172.28.38.73 <<remotessh ps -ef|grep mongod | grep -v grep remotessh
shell中切换root权限
#!/bin/bash sudo su <<EOF mkdir document; exit; EOF
posted on 2018-05-24 15:33 冰蓝小猪宝宝 阅读(122) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 冰蓝小猪宝宝 Powered by .NET 9.0 on Kubernetes