vps中lnmp 搭建nextcloud私人云服务

搭建私有云同步服务。

nextCloud由ownCloud团队开发,相比其他云服务,使用php编写,支持服务端加密存贮,支持多客户端,ui美观,功能完善,安装使用起来也很方便。

可以docker搭建,也可以手动lnmp下搭建。这里介绍lnmp下搭建步骤。

安装lnmp

参考lnmp.org

环境细节配置不多赘述

下载源码

1
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.5.zip

解压并授权,不授权会报错

1
2
unzip nextcloud-12.0.5.zip
chmod -R 777 nextcloud

配置nginx

1
2
3
4
5
6
7
8
9
server{
        listen 80;
        #这里用自己的域名,没有域名用就写localhost或者127.0.0.1
        server_name cloud.nextcloud.com;
        root /home/wwwroot/nextcloud;
        index index.php index.html index.htm;
        #不使用include enable-php.conf,因为会有伪静态问题,安装后页面404
        include enable-php-pathinfo.conf;
    }

访问安装界面

浏览器输入域名即可访问,没有域名用ip访问

enter image description here

转载使用注明出处。原文链接 https://heimo-he.github.io/linux/2018/03/30/build-nextcloud/