Deploy database based on docker sudo docker pull influxdb Initialize the mongodb database Enter the mongo image to configure the user password mongo 127.0.0.1 use admin; db.createUser({user: "xxx", pwd: "xxx", roles: [{ role: "root", db: "admin" }]}); db.getUser("xxx") Importing Data Enter the mongo container: Check the import results: mongo 127.0.0.1 show databases; use aaa; db.xxx.find(); Create the bbb database use bbb db db.keynes_record.insert({"name":"test"}) show databases; Initialize InfluxDB Enter the docker container: influx CREATE DATABASE keynes SHOW DATABASES Summarize The above are the common commands for deploying influxdb and mongo using docker introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time! You may also be interested in:
|
<<: MySQL Index Detailed Explanation
>>: Let's talk about destructuring in JS ES6
Table of contents 1. Monitoring port Relationship...
Table of contents 1. Demand 1. Demand 2. SDK para...
Table of contents Manual deployment 1. Create a s...
Install Ubuntu 20.04 Install NVIDIA drivers Confi...
1. Question: I have been doing insert operations ...
Table of contents 1. Prototype 2. Prototype point...
Table of contents 1. beforeCreate & created 2...
This also caused the inability to upload png files...
#include <linux/moduleparam.h> 1. Module pa...
The google.html interface is as shown in the figur...
Map tags must appear in pairs, i.e. <map> .....
Install mysql5.7 under win, for your reference, t...
1. Introduction to docker-maven-plugin In our con...
1. Check the currently installed PHP packages yum...
Table of contents Constructing payment methods us...