linux
qq_33214066
这个作者很懒,什么都没留下…
展开
-
删除Redis集群脚本
#脚本执行命令格式:./redisDel.sh 要删除的key 要删除的key所在服务 服务端口第一个数字 #例如:./redisDel.sh BUSINESS* 172.16.2.63 7 redis_path="/opt/app/autoenv/redis/redis/bin" psd="YTMxYjFjYWIzYjc4NDdjNzk0OTJhODY3" psd1="dChSEUDJNVkfXlbS" redis_port00=7000 redis_port01=7001 redis_port02=7原创 2020-06-04 15:55:39 · 147 阅读 · 0 评论 -
Git常用命令
1.git设置全局变量以及使用ssh-key 1.1 git设置全局变量 git config --global user.name “zoudongxia” git config --global user.email zoudongxia@we.com git config --global user. git config --list 1.2 使用ssh-key 配置多个sshkey示例 A:vim config B:填入对应信息 1.3 更改远程仓库地址 git remote set-ur原创 2020-05-30 21:56:09 · 109 阅读 · 0 评论 -
linux环境执行定时SQL脚本
在linux环境,新建SQL脚本 第一步:cd 对应目录,创建脚本 touch test1.sql 第二步: 编写SQL脚本,并保存 update job set create_time = CURRENT_TIMESTAMP where job_status=0 and create_time ...原创 2020-03-27 11:00:40 · 1025 阅读 · 0 评论 -
find常用命令
1、查询服务器一定区间范围的修改时间的文件 find ./ -type f -newermt ‘1900-01-01 00:00:00’ ! -newermt ‘1990-01-01 00:00:00’ 再把找到的文件批量更新为当期系统时间 find ./ -type f -newermt ‘1900-01-01 00:00:00’ ! -newermt ‘1990-01-01 00:00:0...原创 2020-04-09 10:57:59 · 128 阅读 · 0 评论