UPDATE wp_posts SET post_content = replace(post_content, ‘http://wuyifan.com’, ‘https://2016.wuyifan.com’);
UPDATE wp_options SET option_value = replace(option_value, ‘http://wuyifan.com’, ‘https://2016.wuyifan.com’);
UPDATE wp_posts SET guid = replace(guid, ‘http://wuyifan.com’, ‘https://2016.wuyifan.com’);
UPDATE wp_posts SET pinged = replace(pinged, ‘http://wuyifan.com’, ‘https://2016.wuyifan.com’);
UPDATE wp_comments SET comment_author_url = REPLACE(comment_author_url, ‘http://wuyifan.com’, ‘https://2016.wuyifan.com’);
Category Archives: IT
hacker – redirect
网站变慢, 搜索 jquery.min.php 代码行, 删除。然后发现好多 WordPress 和 Joomla 网站都有这问题啊。。。很流行嘛
wordpress:
/var/www/html/wuyifan.com/wp-content/themes
each directory, check index.php, if there is match jquery.min.php
chmod a-w index.php
chmod a-w header.php
joomla:
/var/www/html/pbxadvisor.com/templates
each template, check index.php, same …
长虹电视信号线
centos vsftpd: 不显示列表 + 只访问当前路径 , rsync 改变 dest 的文件权限
/etc/vsftpd.conf
chroot_local_user=NO
dirlist_enable=NO
=================================
rsync 升级到 3.1 (编译源代码) 以上才支持 chown, chmod
/usr/local/bin/rsync -e ‘ssh -p 2209′ -av –delete –chmod=775 –chown=root:root /home/audioftp 68.xx.xx.xx:/var/lib/asterisk/sounds