在 CentOS 7 下安裝 Nextcloud 20

請先下載並安裝 CentOS 7 最新版本。

yum install epel-release -y
yum update -y
yum install yum-utils unzip curl wget bash-completion bzip2 sqlite -y
yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
yum-config-manager --enable remi-php74
yum update -y
# Nextcloud 核心必要的軟體包
yum install php php-common php-xml php-gd php-json php-mbstring php-process php-pecl-zip php-pdo -y
# 非必要,但安裝這些軟體包可讓 Nextcloud 效能更佳或新增功能
yum install php-intl php-ldap php-smbclient php-imap php-bcmath php-gmp php-pecl-imagick-im7 -y
systemctl start httpd
systemctl enable httpd
cd /var/www/html
wget --no-check-certificate https://download.nextcloud.com/server/releases/nextcloud-20.0.10.zip
unzip nextcloud-20.0.10.zip
chown apache.apache nextcloud -R
cd /var/www/html
wget --no-check-certificate https://github.com/nextcloud/richdocuments/releases/download/v3.8.2/richdocuments.tar.gz
tar zxvf richdocuments.tar.gz -C /var/www/html/nextcloud/apps/
chown apache.apache nextcloud -R

接著請以管理者身份登入 Nextcloud:

然後再回到指令介面執行以下指令:

cd /var/www/html/nextcloud
sudo -u apache php occ config:app:set richdocuments wopi_url --value="http://yourhostip:9980"

Revision #7
Created 8 February 2021 05:43:14 by Jeff Huang
Updated 24 June 2021 02:39:17 by Jeff Huang