Pagoda installation Nextcloud, mounted on Ali cloud oss, create personal / business efficient private cloud disk

The following is not a complete finishing, read read Going ....

Preparation conditions:

1, Ali cloud oss

2, Ali cloud ecs

3, environment: centos7.x

 

step:

1, centos panel mounted pagoda

2, NextCloud download the installation package, upload it to the pagoda, extract

3, Mount Ali in the cloud oss ​​in ecs, here is the key.

  • Established in oss bucket, note the bucket name, AccessKey ID, and Access Key Secret
  • View ecs network access within the domain name corresponding to this bucket, I have here is oss-cn-hangzhou-internal.aliyuncs.com; note is the network address (endpoint)
  • Installation osf record authorization keys:
    cd /usr/local/src
    wget https://github.com/aliyun/ossfs/releases/download/v1.80.0/ossfs_1.80.0_centos7.0_x86_64.rpm
    sudo yum localinstall ossfs_1.80.0_centos7.0_x86_64.rpm
  • echo {bucketname}:{access-key-id}:{access-key-secret}> /etc/passwd-ossfs
    chmod 640 /etc/passwd-ossfs
    mkdir /mydata
    cd /mydata
    mkdir ossfs
    ossfs {bucketname} /mydata/ossfs -ourl=http://oss-cn-shenzhen-internal.aliyuncs.com
  • I am here to mount ecs in: ossfs pan-ifunpm /www/wwwroot/pan.ifunpm.com/nextcloud/ossfy -ourl = http: //oss-cn-hangzhou-internal.aliyuncs.com -ouid = 1000 -ogid = 1000 -oumask = 007 -o allow_other
  • Here is the key to mount address.
  • Automatically mount: vi command to edit / etc / fstab, add the following
    vi / etc / fstab
    ossfs PAN-ifunpm /www/wwwroot/pan.ifunpm.com/nextcloud/ossfy -ourl = HTTP: // oss-CN-o hangzhou -internal.aliyuncs.com -ouid = 1000 -ogid = 1000 -oumask = 007 -o allow_other 0 0

4, Cache

Enable APCU or Redis, modify the config file nextcloud in specific way to correct reference config_sample

Guess you like

Origin www.cnblogs.com/lijiejoy/p/11441221.html