![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
运维
xb_smart
“It’s the little details that are vital. Little things make big things happen.”
展开
-
日志分割、清理维护
nginx日志分割:http://www.cnblogs.com/losbyday/p/5839738.html 定期清除日志脚本clean.sh:find /logs/api/ -mtime +7 -name "*.log" -exec rm -rf {} \; 定时任务添加: 1.crontab -u root -e 2.在文件尾部添加:0 1 * * * /root/clean.原创 2017-01-10 12:47:56 · 370 阅读 · 0 评论 -
redis漏洞导致云服务成肉鸡了
原文链接:http://www.cnblogs.com/zhouto/p/5680594.html 临时解决办法: 1. 关闭访问挖矿服务器的访问 iptables -A INPUT -s xmr.crypto-pool.fr -j DROP and iptables -A OUTPUT -d xmr.crypto-pool.fr -j DROP. 2. chmod -x m转载 2017-01-18 16:43:43 · 1313 阅读 · 0 评论