- 博客(10)
- 收藏
- 关注
原创 二进制部署k8s
k8s二进制部署记录文档:http://note.youdao.com/noteshare?id=d28571312e333d92a2d77b57ccd80c98&sub=E80D939ED06C44AAB9DCF40354487E0E
2020-12-17 10:40:09
201
原创 shell实现主机间秘钥登录
交互式创建秘钥:#!/bin/bashexpect <<EOFspawn ssh-keygen -t rsaexpect {"*id_rsa):" { send "\r";exp_continue } "*(y/n)?" { send "\r";exp_continue } "*passphrase):" { send "\r";exp_continue } "*again:" { send "\r" } }exp
2020-12-17 10:24:41
176
原创 linux 常用命令工具,awk,sed
链接:http://note.youdao.com/noteshare?id=b704f80e215151b4a3828982fbfa8a48&sub=9D77492F09AD463C87B17B3F05564CD1
2020-09-23 14:43:43
103
原创 批量化部署工具:ansible个人笔记
(先安装依赖,再安装ansible)[root@localhost ~]# yum -y install python-*.rpm[root@localhost ~]# yum -y install ansible一.定义服务器组[root@localhost ~]# vim /etc/ansible/hosts二.测试连通性(最好每台主机之间密钥通信,不然每次执行都需要输入密码)(1)[root@localhost ~]# ansible all -m ping (all表
2020-09-22 15:21:19
163
原创 shell个人笔记
转义符:/r:回车/n: 换行/t:水平制表符 (Tab键)/v: 垂直制表符if 语句包括:1, if [ 表达式 ] then 语句 fiif [ 表达式 ] then 语句 else 语句 fiif 表达式] then 语句 elif[ 表达式 ] then 语句 elif[ 表达式 ] then 语句 …… fi3 . for循环:(1)for loop in 1 2 3 4 5doech..
2020-09-22 15:03:56
120
原创 Mysql参数优化和常用命令
1.由默认的50修改为500 back_log=500back_log值指出在MySQL暂时停止回答新请求之前的短时间内多少个请求可以被存在堆栈中。2.修改wait_timeout参数值,由默认的8小时,修改为1或者半小时。减少wait的连接数,如果系统使用的人少可以调大一点wait_timeout=1800(单位为妙)interactive_timeoutz:指的是mysql在关闭一个交互的连接之前所需要等待的秒数修改max_connections参数值,根据系统需要调整show varia
2020-08-26 10:38:04
184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人