工作
weixin_42453166
这个作者很懒,什么都没留下…
展开
-
记录:解决ssh链接慢
解决ssh链接慢sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_configsed -i '/#UseDNS yes/a\UseDNS no' /etc/ssh/sshd_config/etc/init.d/sshd reload历史记录HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " #让history命令显示具体时间history -c .原创 2020-12-25 10:57:10 · 68 阅读 · 0 评论 -
每天定时将nginx日志文件批量打包压缩脚本
#!/bin/bash#Nginx日志文件所在目录LOG_PATH=/local/server/nginx/logs/#获取昨天的日期YESTERDAY=$(date -d "1 days ago" +%Y-%m-%d)#获取pid文件路径PID=/local/server/nginx/nginx.pid#分割日志并打包压缩mkdir -p ${LOG_PATH}errorlog/mv ${LOG_PATH}error.log ${LOG_PATH}errorlog/error-$原创 2020-10-30 09:42:34 · 692 阅读 · 0 评论