Nextcloud 21.0.0 稳定版终于更新了,令人期待的性能优化更新来了(详见:Nextcloud更新日志)
如果没有收到更新,可以在设置中将更新通道设置为“Beta测试版”后再次检查更新。因为 Nextcloud 发布新的稳定版本后,并不会在第一时间向所有用户推送更新,而是分批次给所有用户慢慢推送新版本,而这个过程会持续几个月之久,甚至会出现本地的 Nextcloud 版本和官网的最新稳定版相隔一个小版本的情况出现(举例:本地的版本为 20.0.7,官网先是发布了 20.0.8,然后隔了一段时间又发布了 21.0.0,但本地的 Nextcloud 更新程序依然告知最新的稳定版是 20.0.7)
Nextcloud 本身的更新程序不会直接进行跨版本的升级,比如目前版本如果是 20.0.7,升级程序会先将 Nextcloud 更新到 20.0.8,再进入设置页面检查更新,才会通知可以升级到 21.0.0,更新完成后记得将更新通道切换回“稳定版”。
系统要求方面,相对以前的版本也有所变化
操作系统要求:
Ubuntu 20.04 LTS (recommended)
Red Hat Enterprise Linux 8 (recommended)
Debian 10 (Buster)
SUSE Linux Enterprise Server 15
openSUSE Leap 42.1+
CentOS 8
数据库要求:
MySQL 8.0+ or MariaDB 10.2+ (recommended)
Oracle Database 11g (only as part of an enterprise subscription)
PostgreSQL 9.6/10/11
SQLite (only recommended for testing and minimal-instances)
Web 服务器要求:
Apache 2.4 with mod_php or php-fpm (recommended)
nginx with php-fpm
PHP 要求:(官方这里没写,但从 Nextcloud 21.0.0 开始实际已支持 PHP 8 )
7.3
7.4 (recommended)
以上资料出自 Nextcloud 管理员手册 – 系统要求。
更新到 Nextcloud 21.0.0 后不会所料果然又出现了新的警告,目前只解决了一个。
1.您的安装没有设置默认的电话区域。这对验证配置设定中没有国家代码的电话号码而言是必需的。要允许没有国家代码的电话号码,请添加带区域相应的 ISO 3166-1 code ↗ 的“默认_电话_区域”到你的配置文件中。
在网站配置文件中添加如下代码后保存即可
'default_phone_region' => 'CN',
2.您的网页服务器未正确设置以解析“/.well-known/webfinger”。更多信息请参见文档。
您的网页服务器未正确设置以解析“/.well-known/nodeinfo”。更多信息请参见文档。
解决方法来自 Nextcloud 管理员手册 – NGINX configuration。
在网站 Nginx 配置中添加下述代码即可解决:
location ^~ /.well-known {
# The rules in this block are an adaptation of the rules
# in `.htaccess` that concern `/.well-known`.
location = /.well-known/carddav { return 301 /remote.php/dav/; }
location = /.well-known/caldav { return 301 /remote.php/dav/; }
location /.well-known/acme-challenge { try_files $uri $uri/ =404; }
location /.well-known/pki-validation { try_files $uri $uri/ =404; }
# Let Nextcloud's API for `/.well-known` URIs handle all other
# requests by passing them to the front-end controller.
return 301 /index.php$request_uri;
}
也可以尝试关掉此项检查警告,方法为在 Nextcloud 目录下 /config/config.php 文件中添加一行
'check_for_working_wellknown_setup' => false,
更新记录:
2022.5.1 根据 @Gu Zhaowei 的邮件内容,增加第二个报错的官方解决方法,谢谢。