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
Navigation bar creation: Technical requirements: ...
Using the clear property to clear floats is a comm...
1. Cancel the dotted box when the button is press...
<br />The website access speed can directly ...
1 Stored Procedure 1.1 What is a stored procedure...
1. What is the hyperlink icon specification ?<...
Typical layout examples As shown in the above pic...
Vue stores storage with Boolean values I encounte...
nginx Nginx (engine x) is a high-performance HTTP...
This article records the installation and configu...
Index merging is an intelligent algorithm provide...
Table of contents 1. ACID Characteristics Transac...
· 【Scene description】 After HTTP1.1, the HTTP pro...
1. How MySQL uses indexes Indexes are used to qui...
As a tester, you may often need to install some s...