In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to use Docker to build nextcloud personal network disk". In daily operation, I believe many people have doubts about how to use Docker to build nextcloud personal network disk. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to use Docker to build nextcloud personal network disk". Next, please follow the editor to study!
I. brief introduction
Nextcloud is a very easy to use network disk system, powerful plug-ins are complete, very suitable for personal network disk and enterprise network disk construction.
II. Deployment environment
Server system: CentOS7
Docker version: 20.10.10
III. Tools
Use tools: Docker 20.10.10
IV. Deployment process
1. Create a Nextcloud folder for the host, and the Nextcloud folder is used to map the storage path of the Nextcloud container.
Mkdir-p / home/docker/nextcloud
2. Build the mysql container.
Docker run-d-name mysql\-restart=always\-p 3306 MYSQL_ROOT_PASSWORD=hzbb@123321 3306\-e MYSQL_ROOT_PASSWORD=hzbb@123321\ mysql
Detailed description of the command:
-name mysql container named mysql
-restart=always starts the container automatically when it starts the docker service
-p 3306virtual 3306 container port 3306 is mapped to host port 3306
-e MYSQL_ROOT_PASSWORD=hzbb@123321 sets the password of the mysql service root user
Mysql pull and use mysql image
3. Enter the mysql container to create a nextcloud database
Docker exec-it mysql / bin/bashmysql-uroot-phzbb@123321create database nextcloud
4. Build Nextcloud container
Docker run-d-name nextcloud\-restart=always\-p 80:80\-v / home/docker/nextcloud/:/var/www/html/\ nextcloud
Detailed description of the command:
-name nextcloud container named nextcloud
-restart=always starts the container automatically when it starts the docker service
-p 80:80 Host port 80 is mapped to container port 80
-v / home/docker/nextcloud/:/var/www/html/ Host / home/docker/nextcloud folder is mapped to / var/www/html folder within the container
Nextcloud pull and use nextcloud image
5. Access the host IP through web to complete the initialization and installation of Nextcloud. The host IP tested here is 192.168.102.103.
[build completed]
[error handling]
Execute mysql-uroot-phzbb@123321 Times error, ERROR 2002 (HY000): Can't connect to local MySQL server through socket'/ var/run/mysqld/mysqld.sock' (2)
The mysql service is not fully started. Wait a while and then execute it again.
At this point, the study on "how to use Docker to build nextcloud personal network disk" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 237
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.