随笔分类 -  ssh

与运维相关的脚本
摘要:问题: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5DC22404A6F9F1CA解决方法:把pubkey后面的8为复制gpg --keyserve 阅读全文
posted @ 2020-09-14 15:33 讲做 阅读(3289) 评论(0) 推荐(1)
摘要:['Think\Think', 'appException'], 'finally_error' => ['Think\Think', 'appError'], ]; static $data = [ 'msg' => '',// 错误信息 'msgCode' => '',// 自定义错误码 六位数字字符串 e... 阅读全文
posted @ 2018-07-18 13:53 讲做 阅读(578) 评论(0) 推荐(0)
摘要:elasticsearch数据备份与sshfs建立共享文件 阅读全文
posted @ 2017-12-08 18:11 讲做 阅读(1109) 评论(0) 推荐(0)
摘要:elasticsearch开机启动脚本 阅读全文
posted @ 2017-12-07 18:14 讲做 阅读(7053) 评论(0) 推荐(0)
摘要:#!/bin/bashinterval=1if [ "$1" != "" ]then interval=$1fiecho "检查时间间隔(单位秒):"$intervaldatetime=`date +'%Y%m%d'`while :do#获取用户es占用cpu、内存、虚拟内存、物理内存、共享内存的信 阅读全文
posted @ 2017-10-25 16:56 讲做 阅读(5763) 评论(0) 推荐(0)
摘要:首先crontab -e打开进行编辑 添加以下代码(默认为每秒执行一次脚本crontab.sh): * * * * * /bin/sh /var/www/aa/crontab.sh 下面是/var/www/aa/crontab.sh脚本代码 #!/bin/bash i=0;step=2 #间隔的秒数 阅读全文
posted @ 2017-01-06 20:11 讲做 阅读(3520) 评论(0) 推荐(0)