Today we have to install the MongoDB bar, this is a database, in order to lazy, this article on the use of Yum installation, after all, yum convenient, rely on the package will be installed, unless it is a separate entire DB server to compile the
Recently, the security team detected that some Aliyun users exist MongoDB database unauthorized access vulnerabilities, vulnerabilities serious, easy to lead to database leaks. In order to ensure your business and application of security, please the
First enable the MongoDB HttpinterfaceModify Mongodb.confComment this row
The code is as follows
Copy Code
#nohttpinterface = True
Httpinterface Port is MongoDB Port +1000If the default port for MongoDB is 27018
Download path: Http://downloads.mongodb.org/win32/mongodb-win32-i386-1.7.0.zip
Put a DB folder I was put to D disk, path: Ddb
Extract Mongodb-win32-i386-1.7.0.zip rename it to MongoDB put it in D disk
Open cmd input: d:mongodbbinmongod.exe–dbpath=
MongoDB does not require a password after the default installation. At this point you show DBS will see that there is only one local database, the so-called admin does not exist. MongoDB has no root, only the user who can manage the user
MongoDB Data BackupIn MongoDB we use the Mongodump command to back up MongoDB data. The command can export all data to the specified directory.The Mongodump command allows you to specify the server to which the exported data can be dumped by
Mongodb# similar to the in or or operation in SQL mulites field query: db.cool.find ({$or: [{field1: ' val '},{' field2 ': ' Val '} ...]})# Similar to SQL Db.coo.find (' name ':/m/) = = SQL like Pymongo using {' field ': {$regex: keyword}}http://
---------------------MongoDB basic Operation---------------------1. MongoDB CREATE DATABASEUse database name: Switch to the specified database and create the corresponding database when inserting the first bar data. Show DBS: Displays all the
MongoDB CREATE database;The syntax format for MongoDB database creation is as follows:Use database_nameIf the database does not exist, create the database, or switch to the specified database.If you want to see all the databases, you can use the
mongodb3.0.x Installation Tutorial Online A lot, here is mainly about the installation of 3.2.5Linux ISO in \\10.10.10.1\ShareDoc\User\yipengzhi\ISO\Centos7.0 this installation does not introduceMongoDB 3.2.5 installation package inLinux version: \\1
In a MongoDB cluster, if exists orphaned documents and chunk migration, the count query may result in an incorrect query result, such as I was stepping on the pit, first not talking, see the result:Skip can only get to 54631, and count found out 77,3
1.MongoDB Permissions IntroductionA in the previous article, we configured the MONGODB environment under Linux and set it to start with the service randomization, so the next article we will briefly talk about the management of the login user rights
Installing MongoDB
sudo apt-get install MongoDB... ...
Setting up client connections
Open File/etc/mongodb.conf Note permissionsModify bind_ip=127.0.0.1 to bind_ip=0.0.0.0
Setting the connection user name and password and
"The development process of the essay summary, you are welcome to review, you can do more rigorous "Introduction:MongoDB NoSQL Database Document type databaseA few days ago, to do a log collation of the project when the persistent storage with
MongoDB replica Set Maintenance main work:1. View replica set status (cluster status, synchronization delay, single library run status Mongostate)2, delete nodes, stop node shutdownMongoDB replica set cluster synchronization mechanism
The
1. First to the official website (http://www.mongodb.org/downloads) Download the appropriate installation package, the current version is 2.6Installation package has zip and MSI format, it is recommended to download the ZIP format, the MSI is
"Note: MongoDB automatically sets the _id field as the primary key"--------------------------------------------------------------------------------------------------------------- -----------------------------------------------------------------------
Today, in a demo environment, our products experienced the entire engine room power outage, there is a MongoDB binary file corruption, the following is a breakdown of the analysis of the recording process:1. In the customer support colleagues found
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service