摘要: 每日切一个日志 #!/bin/shLOG_PATH=/home/test/nginx/logsNEW_LOG_PATH=/home/test/nginx/dayslogNGING_PID=$(cat /home/test/nginx/logs/nginx.pid)DATE=$(date -d "ye 阅读全文
posted @ 2018-07-26 14:09 浩0x208哥 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 这是在mysql互为主从的基础上做的 yum -y install keepalived #两台机器上都装 配置Keepalived主从, vrrp_instance VI_1 { state MASTER # 标记, 从为SLAVE interface eth0 # 网络接口 virtual_ro 阅读全文
posted @ 2018-07-26 14:01 浩0x208哥 阅读(115) 评论(0) 推荐(0) 编辑