Build Nextcloud Server on Centos 7.5
Nextcloud is an open-source software project coded with PHP. It had provided a ideal private cloud-storage solution which was considered to be reliable and stable. This blog aims to present a Nextcloud Building instruction step by step for the purpose of helping freshman and future reviewing. Nextcloud is an open-source software project coded with PHP. It had provided a ideal private cloud-storage solution which was considered to be reliable and stable. This blog aims to present a Nextcloud Building instruction step by step for the purpose of helping freshman and future reviewing. Nextcloud is an open-source software project coded with PHP. It had provided a ideal private cloud-storage solution which was considered to be reliable and stable. This blog aims to present a Nextcloud Building instruction step by step for the purpose of helping freshman and future reviewing.
Change linux core to BBR vision
If your server is a new one, it is strongly recommended to update it to an upper version supporting bbr mode, which is a senior centos system core provide by google and it could make your server more efficient.
Firstly download and install bbr core from github.
1 |
|
Use the code to check the core version. If it’s large than 4.9.0 it’s OK.
1 |
|
Expected return:net.ipv4.tcp_available_congestion_control = bbr cubic reno
1 |
|
Expected return: net.ipv4.tcp_congestion_control = bbr
1 |
|
Expected return: net.core.default_qdisc = fq
1 |
|
Expected return: xxxxxxxx tcp_bbr
1 |
|
Install Nginx Service
Pull nginx package from nginx orginzation website.
1 |
|
Install Nginx.
1 |
|
Start nginx service.
1 |
|
Set preference file of nginx. Click here to get recommended nginx.conf file.
1 |
|
Apply ssl certification. Rename it with your_domain.crt(key) and download it to your server: /etc/nginx/ssl/
1 |
|
Check and restart nginx service.
1 |
|
Install docker
Pull and install docker service from official website.
1 |
|
Start docker service.
1 |
|
Pull nextcloud and mariadb(simplified mysql database on centos ) images from github.
1 |
|
Start image mariadb with docker.
1 |
|
Start image nextcloud with docker.
1 |
|
That is the last step on server. Now let’s start http://YOUR_DOMAIN/ with your explorer.
Recommend to substitute the “localhost” to “nextcloud_db”.
Reference List:
https://www.moerats.com/archives/420/
https://my.oschina.net/yule526751/blog/799004
https://www.moerats.com/archives/420/
Author: IoTcat
Link: https://www.eee.dog/tech/build-nextcloud-server-on-centos7/
License: 知识共享署名-非商业性使用 4.0 国际许可协议