ssh登录服务器

ssh root@222.10.11.25 

安装WP-CLI

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

进入Wordpress网站根目录

cd /www/wwwroot/test.com

更新Wordpress

wp core check-update --allow-root