更新wordpress

首先创建临时目录:

mkdir wp
cd wp

下载wordpress并解压:

wget https://cn.wordpress.org/wordpress-4.9.4-zh_CN.tar.gz
tar xvzf wordpress-4.9.4-zh_CN.tar.gz

删掉wp-content并把原有的wordpress目录下的wp-content复制过来:

rm -rf ./wordpress/wp-content
cp -r /home/wwwroot/.../wp-content ./wordpress

最后把新wordpress复制到网站目录:

\cp -rf ./wordpress/* /home/wwwroot/...

以防万一,访问:https://你的域名/wp-admin/upgrade.php

留下评论