wordpress相关问题

1、数据库忘记密码
  • 方法1:执行sql语句命令
update wp_users set user_pass=md5("123456") where user_login='admin';



  • 方法2:修改数据库user
进入http://pajhome.org.uk/crypt/md5,把密码更新为md5加密后的

2、404固定链接错误

在nginx最后一个 }前添加


location / {
try_files $uri $uri/ /index.php?q=$uri&$args;


4、卸载 apache2

apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
apt-get autoremove

yum erase httpd httpd-tools apr apr-util