![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
gaohailiang_csdn
学无止境
展开
-
shell自动备份mysql数据库
#!/bin/bash#Auther: gaohailiang#Date & Time: 2019#Description: auoto-mysql#备份目录路径变量,按照当前时间创建目录MYSQL_DB_DIR=/opt/`date +%Y%m%d`#MySQL用户名变量MYSQL_USE=gaoliang#MySQL密码变量MYSQL_PW=123456#My...原创 2019-12-16 13:32:23 · 233 阅读 · 0 评论 -
xshell连接显示timed out waiting for input: auto-logout
使用xshell连接服务器时过一会儿总会显示timed out waiting for input: auto-logout修改配置文件vi /etc/profileTMOUT=60 #or the number of seconds you want将TMOUT的值改成0保存退出后source /etc/profile...原创 2019-12-16 13:23:43 · 1038 阅读 · 0 评论 -
ssh提示:permission denied please try again
ssh登录提示permission denied please try again修改配置允许root用户登录的方法:修改/etc/ssh/sshd_config文件,找到PermitRootLogin,改为 PermitRootLogin yes,然后重启ssh服务。重启服务:systemctl restart sshd.service...原创 2019-12-16 13:21:06 · 666 阅读 · 0 评论 -
shell实现批量自动配置ssh脚本
#!/usr/bin/expect#执行此脚本先安装现在Linux环境安装expect命令 yum install expect -y#Auther: gaohailiang#Date & Time: 2018.03#Description: ssh-auto#定义变量,根据实际情况修改对应主机IPset server01 "192.168.12.150"set serv...原创 2019-12-16 12:53:49 · 498 阅读 · 0 评论 -
shell实现自动查询CPU-内存-系统版本
shell实现自动查询CPU-内存-系统版本并输出#!/bin/bash#Auther: gaohailiang#Date & Time: 2019.3.10#Description: test-01#定义FUNCRIONOS方法判断操作系统/bin/uname输出系统是Linux或其他系统function FUNCRIONOS(){ PLATFORM=`/bin/una...原创 2019-12-16 12:47:37 · 253 阅读 · 0 评论