摘要:
1.设置数据库密码 #1.简单的设置方式 [root@db01 ~]# mysqladmin -uroot password '123' Warning: Using a password on the command line interface can be insecure. #2.安全的设置 阅读全文
摘要:
1.编写脚本 [root@m01 /shell4]# vim user.sh #!/bin/env bash #循环在指定的服务器创建用户和文件 while read ip pass do /usr/bin/expect <<-END &>/dev/null spawn ssh root@$ip e 阅读全文