最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【未解决】尝试从本地zip直接更新WordPress到新版本

WordPress crifan 1241浏览 0评论
折腾:
【记录】本地WordPress更新版本
期间,
wordpress 更新 从本地
从本地zip文件自动更新Wordpress – ChUbuntu
Command line interface for WordPress | WP-CLI
WP-CLI Release v2.4.0 – WP-CLI — WordPress.org
https://make.wordpress.org/cli/2019/11/12/wp-cli-v2-4-0-release-notes/
Handbook – WP-CLI — WordPress.org
https://make.wordpress.org/cli/handbook/
Installing – WP-CLI — WordPress.org
https://make.wordpress.org/cli/handbook/installing/
➜  test pwd
/Users/crifan/dev/dev_root/crifan.com/mamp/test
➜  test curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
➜  test curl
直接浏览器下载:
wp-cli.phar
然后去试试:
➜  wp_cli pwd
/Users/crifan/dev/dev_root/php/wordpress/wp_cli
➜  wp_cli php wp-cli.phar --info
OS:    Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
Shell:    /bin/zsh
PHP binary:    /usr/bin/php
PHP version:    7.3.9
php.ini used:
WP-CLI root dir:    phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:    phar://wp-cli.phar/vendor
WP_CLI phar path:    /Users/crifan/dev/dev_root/php/wordpress/wp_cli
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version:    2.4.0
是可以的。
再去加上可执行权限,放到系统目录中,试试,是可以的:
➜  wp_cli chmod +x wp-cli.phar
➜  wp_cli sudo mv wp-cli.phar /usr/local/bin/wp
Password:
Sorry, try again.
Password:
➜  wp_cli wp --info
OS:    Darwin 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64
Shell:    /bin/zsh
PHP binary:    /usr/bin/php
PHP version:    7.3.9
php.ini used:
WP-CLI root dir:    phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:    phar://wp-cli.phar/vendor
WP_CLI phar path:    /Users/crifan/dev/dev_root/php/wordpress/wp_cli
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version:    2.4.0
去安装:
➜  wordpress wp core update --version=5.3.2 wordpress-5.3.2-zh_CN.zip
Error: This does not seem to be a WordPress installation.
Pass --path=`path/to/wordpress` or run `wp core download`.
结果不对。
估计是要:
先切换到WordPress根目录中,再去试试
➜  wordpress wp core update --version=5.3.2 /Users/crifan/dev/dev_root/php/wordpress/wordpress-5.3.2-zh_CN.zip 
Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /Users/crifan/dev/dev_root/crifan.com/mamp
/wordpress/wp-includes/wp-db.php on line 1531
Error: Error establishing a database connection. This either means that the username and password information in your `wp-config.php` file is incorrect or we can’t contact the database server at `localhost`. This could mean your host’s database server is down.
问题依旧。

转载请注明:在路上 » 【未解决】尝试从本地zip直接更新WordPress到新版本

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.178 seconds, using 22.05MB memory