网盘nextcloud 服务端安装


服务端操作系统 ubuntu 16
1,sudo apt-get update
2,sudo apt install snapd
3,sudo snap install nextcloud

4,设置端口
 sudo snap set nextcloud ports.http=7070

5,添加信任域
sudo gedit /var/snap/nextcloud/current/nextcloud/config/config.php

找到 trusted_domains ,参考示例添加域名
 'trusted_domains' => 
  array (
    0 => 'localhost:7070',
    1 => '192.168.145.130:7070',
  )

6,启动nextcloud
sudo snap start nextcloud

7,用高版本的浏览器访问
http://192.168.145.130:7070
 

你可能感兴趣的:(网盘,nextcloud,server,安装,install)