2016-02-16
HBI开启Gzip功能
2016-02-20
BPV升级Wordpress从3.9到4.4.2,看看性能有没有改善。
2016-02-24
收到Linode的警告,BPV服务器被当肉鸡去攻击其他网站了。
赶紧排查问题。
tail /var/log/httpd/access_log
发现正被一个立陶宛的IP攻击xmlrpc.php:
185.130.5.XXX - - [24/Feb/2016:12:05:54 +0000]"POST /xmlrpc.php HTTP/1.0" 301 2 6 "-" "Mozilla/4.0(compatible: MSIE 7.0; Windows NT 6.0)"
185.130.5.XXX - - [24/Feb/2016:12:05:54 +0000]"POST /xmlrpc.php HTTP/1.0" 301 2 6 "-" "Mozilla/4.0(compatible: MSIE 7.0; Windows NT 6.0)"
马上Ban了这个IP:
iptables -I INPUT -s 185.130.5.180 -j DROP
处理了xmlrpc.php。
CPU和IO立马下来了。
2016-02-27
新换台服务器,选择LNMP平台,摸索了整体迁移WP的方法。
1, backup from old server: #mysqldump -u root -p WP-DB>test.sql Zip \wp-content\plugins, themes, uploads 2, Install Wordpress in newserver; 3, import sql via PHPMYADMIN with test.sql 4, unzip plugins (delete existing first),themes, uploads to new wp; 5, Swap IP between two servers; 6, reboot new server with old IP.
再启用了密匙登陆。
|