Skip to content

Instantly share code, notes, and snippets.

@improve100
Last active June 22, 2018 07:43
Show Gist options
  • Save improve100/3ed011aba8b750a74a204eb1f0fa56df to your computer and use it in GitHub Desktop.
Save improve100/3ed011aba8b750a74a204eb1f0fa56df to your computer and use it in GitHub Desktop.
snap nextcloud
sudo snap set nextcloud ports.http=81 ports.https=444
sudo apt-get update
sudo apt-get install snap
sudo apt-get install snapd
sudo snap install nextcloud
但修改域名后,nextcloud登录有问题,修改这个文件sudo vim /var/snap/nextcloud/7658/nextcloud/config/config.php
'trusted_domains' =>
array (
0 => 'cloud.qq.com',//修改更改域名
),
'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data',
'overwrite.cli.url' => 'http://cloud.qq.com',//修改更改域名
'dbtype' => 'mysql',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment