EEE.DOG 呓喵酱の博客 - IoTcat's Blog 2020-06-16T12:06:12.105Z https://www.eee.dog/ IoTcat Hexo hello hexo https://www.eee.dog/tech/hello-hexo/ 2020-06-16T07:43:54.000Z 2020-06-16T12:06:12.105Z 神奇的事情

神奇的事情开始发售了

1
2
3
const home = cooo;

var ee = 1;
]]>
<h2 id="神奇的事情"><a href="#神奇的事情" class="headerlink" title="神奇的事情"></a>神奇的事情</h2><p>神奇的事情开始发售了</p> <p><img src="https://api.yimian.xyz/img" al
Build Nextcloud Server on Centos 7.5 https://www.eee.dog/tech/build-nextcloud-server-on-centos7/ 2020-06-16T07:43:54.000Z 2020-06-16T09:46:10.174Z 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
2
3
$ wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh &&\
$ chmod +x bbr.sh && \
$ bash bbr.sh

Use the code to check the core version. If it’s large than 4.9.0 it’s OK.

1
$ uname -r

Expected return:net.ipv4.tcp_available_congestion_control = bbr cubic reno

1
$ sysctl net.ipv4.tcp_available_congestion_control

Expected return: net.ipv4.tcp_congestion_control = bbr

1
$ sysctl net.ipv4.tcp_congestion_control

Expected return: net.core.default_qdisc = fq

1
$ sysctl net.core.default_qdisc

Expected return: xxxxxxxx tcp_bbr

1
$ lsmod | grep bbr

Install Nginx Service

Pull nginx package from nginx orginzation website.

1
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

Install Nginx.

1
$ yum install -y nginx

Start nginx service.

1
2
$ systemctl start nginx.service
$ systemctl enable nginx.service

Set preference file of nginx. Click here to get recommended nginx.conf file.

1
2
$ cd /etc/nginx
$ vi nginx.conf

Apply ssl certification. Rename it with your_domain.crt(key) and download it to your server: /etc/nginx/ssl/

1
2
3
$ //Use scp -r (my ssl file route on my windows)/your_domain.crt \root@(your server ip): /etc/nginx/ssl
$ //Use scp -r (my ssl file route on my windows)/your_domain.crt root@(your server ip): /etc/nginx/ssl
$ //On WINDOWS BASH

Check and restart nginx service.

1
2
3
4
$ nginx -t

$ //If the return is successful it is ok, othervise there exists error in your nginx.conf file.
$ systemctl restart nginx

Install docker

Pull and install docker service from official website.

1
$ curl -sSL https://get.docker.com/ | sh

Start docker service.

1
2
$ systemctl start docker
$ systemctl enable docker.service

Pull nextcloud and mariadb(simplified mysql database on centos ) images from github.

1
$ docker pull rootlogin/nextcloud && docker pull mariadb:10

Start image mariadb with docker.

1
2
3
$ docker run -d --name nextcloud_db -v /data/mysql:/var/lib/mysql -e \
$ MYSQL_ROOT_PASSWORD=YOUR_PASSWD -e MYSQL_DATABASE=nextcloud \
$ -e MYSQL_USER=nextcloud -e MYSQL_PASSWORD=YOURPASSWD mariadb:10

Start image nextcloud with docker.

1
$ docker run -d --name nextcloud --link nextcloud_db:nextcloud_db -p 127.0.0.1:9001:80 -v /data/nextcloud:/data rootlogin/nextcloud

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/

]]>
<p>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.</p>