Loading... ## 部署 lnmp 的安装自行 google ```sh # 添加一个站点 sudo lnmp vhost add # 下载 nextcloud 的网站包到站点目录 cd ~/tmp wget https://download.nextcloud.com/server/releases/nextcloud-22.2.0.zip unzip nextcloud-22.2.0.zip cp -r nextcloud/ /home/wwwroot/nextcloud.wecook.top/ ``` > 注意 `cp` 要加 `r`,`mv` 不需要加 `r`,不同于 `rsync`,只能形成 target/sourse,如果要形成 target/*,请用 ```sh cp -r source/* target rsync -a source/ target # 对应的 rsync,有无斜杠来形成不同结构目录的转移 ``` > 出现 php 版本问题 This version of Nextcloud requires at least PHP 7.3 You are currently running 7.2.34. Please update your PHP version. 因为之前 lnmp 安装 PHP 的版本过低,需要升级安装,lnmp 自带升级脚本。 这里吐槽一下编译的速度,慢。 > 出现 Internal Server Error 问题 参考 [https://conimi.com/archives/69/](https://conimi.com/archives/69/) 解决方案,创建脚本,修改一些变量,给权限,运行 ```sh #!/bin/bash # permission.sh ########### # please modify parameters below ocpath='/home/wwwroot/nextcloud.wecook.top/' htuser='www' htgroup='www' rootuser='root' ########### printf "Creating possible missing Directories\n" mkdir -p $ocpath/data mkdir -p $ocpath/assets mkdir -p $ocpath/updater printf "chmod Files and Directories\n" find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 printf "chown Directories\n" chown -R ${rootuser}:${htgroup} ${ocpath}/ chown -R ${htuser}:${htgroup} ${ocpath}/apps/ chown -R ${htuser}:${htgroup} ${ocpath}/assets/ chown -R ${htuser}:${htgroup} ${ocpath}/config/ chown -R ${htuser}:${htgroup} ${ocpath}/data/ chown -R ${htuser}:${htgroup} ${ocpath}/themes/ chown -R ${htuser}:${htgroup} ${ocpath}/updater/ chmod +x ${ocpath}/occ printf "chmod/chown .htaccess\n" if [ -f ${ocpath}/.htaccess ] then chmod 0644 ${ocpath}/.htaccess chown ${rootuser}:${htgroup} ${ocpath}/.htaccess fi if [ -f ${ocpath}/data/.htaccess ] then chmod 0644 ${ocpath}/data/.htaccess chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess fi ``` ## 客户端获取 [https://nextcloud.com/install/#install-clients](https://nextcloud.com/install/#install-clients) ## 使用体验 很爽,自己的数据在自己手上的感觉! - 我用它的 Webdav 功能同步 Zotero 的文献,因为坚果云的上下流量有限,我的文献挺多的。 - Webdav 配合 ipad 的 foxit,可以直接在 ipad 同步修改,效果不逊色 icloud, 就是速度慢了点。 最后修改:2022 年 01 月 18 日 07 : 08 PM © 允许规范转载 赞赏 如果觉得我的文章对你有用,请随意赞赏 赞赏作者 支付宝微信