![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell脚本的解释与基本应用
wyn_99
这个作者很懒,什么都没留下…
展开
-
expect ssh免交互--vsftpd
系统环境:centos7 yum安装expect:yum -y install expect #!/usr/bin/expect spawn ssh root@192.168.44.131 expect { "(yes/no)?" {send "yes\r";} "password:" {send "123\r"} } expect "]#" se...原创 2020-04-20 17:57:18 · 92 阅读 · 0 评论 -
MYSQL的主从复制+读写分离,检测MySQL主从小脚本简化
@mysql 一级目录 系统环境:centos7 主mysql上: #cp /etc/my.cnf /etc/my.cnf.bak #vi /etc/my.cnf #service mysqld restart 登录MySQL mysql> grant all on . to ‘replication’@’%’ identified by ‘replication’; mysql&g...原创 2020-04-19 21:50:06 · 153 阅读 · 0 评论 -
shell脚本的基本应用与操作
shell脚本**shell脚本**二级目录三级目录 shell脚本 #!/bin/bash (解释器) #ifconfig #shell 变量 name="" 二级目录 三级目录原创 2020-04-17 17:10:41 · 122 阅读 · 0 评论