Remember a Centos7.x Docker installation and deployment private cloud disk NextCloud

1. Introduction

Nextcloud is an engineering education platform based on cloud technology, which uses cloud technology to improve the efficiency and effect of teaching, experimentation and innovation in the process of engineering education. Every nextcloud user can log in as a teacher or student, so that everyone can impart knowledge and learn knowledge, truly achieving a new vision of engineering education any time, any where.

1. Official website

https://nextcloud.com/

2. Download

https://nextcloud.com/install/

3. Docker deployment

https://hub.docker.com/_/nextcloud

2. Basic environment

1. System description

System: CentOS-7-x86_64-Minimal-1708

download link: 

 http://archive.kernel.org/centos-vault/7.4.1708/isos/x86_64/   

2. Install the virtual machine

Refer to the installation process:

https://blog.csdn.net/llwy1428/article/details/89328381

3. Tools: xshell5

4. VMware version: VMware Workstation Pro15

Three, installation and deployment

1. Install basic tools

[root@localhost ~]# sudo yum install vim net-tools nmap tree lrzsz lsof -y

2. Add Ali docker source

[root@localhost ~]# wget -P /etc/yum.repos.d/ https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

3. Install docker-ce (ce is free community edition)

[root@localhost ~]# yum -y install docker-ce

4. Configure Ali image acceleration (solve the slow pull image)

[root@localhost ~]# vim /etc/docker/daemon.json
  {
     "registry-mirrors": ["https://bcd6gwnb.mirror.aliyuncs.com"]
   }

5. Docker startup and self-start

systemctl start docker.service
systemctl enable docker.service

6. The first one to search for the mirror is

[root@localhost ~]# docker search nextcloud

7. Pull the Docker image

[root@localhost ~]# docker pull nextcloud

8. Create a new storage data directory

[root@localhost ~]# mkdir /data/nextcloud -p

9, start the mirror

[root@localhost ~]# docker run --name nextcloud -p 80:80   -v /data/nextcloud:/var/www/html/data -d nextcloud
# 如果宿主机 80 端口被占用,可以更改成其他端口  例如:9999
# 更改后命令如下:
[root@localhost ~]# docker run --name nextcloud -p 9999:80   -v /data/nextcloud:/var/www/html/data -d nextcloud

Four, browser viewing, initialization, function display

1. Enter http://192.168.11.16:9999/ in the address bar of the browser       (  192.168.11.16  is the IP of my virtual machine)

2. Initialization

Enter ip address/index.php to enter the homepage

3. Finish Enter the system homepage

4. Function display

 

So far, Centos7.x Docker installation and deployment of private cloud disk NextCloud is complete!

Guess you like

Origin blog.csdn.net/llwy1428/article/details/106774973