Basic operation of the service/etc/init.d/sendmail Start # Launch service/etc/init.d/sendmail Stop # Close Service/etc/init.d/sendmail Status # View the current status of the service/date/mysql/bin/mysqld_safe--user=mysql # start MySQL background
Description
There are three servers, the MONGODB database has been installed, the specific information as follows:
MongoDB version: mongodb-linux-x86_64-2.6.11
MongoDB installation directory:/usr/local/mongodb
It's written in front.
This article has already assumed that you have installed the MongoDB (2.6) and has opened the auth.
User
First we add the users needed to back up and recover the data, and this user needs to have ReadWrite and Useradmin
MongoDB Master-Slave synchronization settingsabout MongoDB installation and start-up parameter description can refer to my previous reprint of the "Ubuntu installation MongoDB" and "mongodb Start command Mongod parameters description"
Master and
Database backup –mongodump
Back up all local MongoDB databases:
Copy Code code as follows:
# mongodump-h 127.0.0.1--port 27017-o/root/db/alldb
To back up a remote specified database:
Copy Code code as follows:
Master and slave configurationMongoDB's Master-slave mode configuration is as follows1.keyFileGenerate Key_file
OpenSSL rand-base64 741 > Mongo_key
Place Mongo_key in the places where master and slave MongoDB user can access.Set
MongoDB database backup and recovery under Windows
I can tell the data back to the C:\data\dump directory, first create this path. And then go under the Bin directory of MongoDB.
Mine is:
C:\Program Files\mongodb\bin
The backup
Interested in the MongoDb document database, to install the understanding.
To the official download win version http://www.mongodb.org/display/DOCS/Downloads is currently the latest stable version of 1.2.4. Extract to f:/sofr/mongodb-win32-i386-1.2.
Intro
MongoDB itself is already a more mature and widely used NoSQL product. The best way to know the product is of course the official website, considering the network and language habits, some with Chinese stations will give us greater
Above: http://blog.csdn.net/u013205877/article/details/75957573Pymongo is a low-level MongoDB python drive (which I call a client) that encapsulates the MongoDB API and communicates with MongoDB via JSON, Pymongo maps MongoDB data into Python's
# Use the following command to view the service's startup parameters Mongod--help or mongod-h # Other command parameters * Basic Configuration---------------------------------------------------------- ---------------------Quiet # quiet output--port
Description
Operating system: CentOS 5.X 64-bit
IP Address: 192.168.21.130
To achieve the purpose:
Install Configuration MongoDB Database
Specific actions:
First, close the SELinux,
MongoDB Download
MongoDB provides a precompiled binary package for 32-bit and 64-bit systems that you can download from MongoDB website, MongoDB precompiled binary package download address: http://www.mongodb.org/downloads
Note: The Windows XP
MongoDB Service Configuration series issues
To Configure a service by configuring a file:
Dbpath=f:\program\data\mongo\db #数据存储路径
logpath=f:\program\data\mongo\logs\mongo.log #日志存储路劲
logappend= True #日志写入方式: Append
port=27017 #端口
#auth =true #是否认证
Supplementary Note:If we need to be able to access the Nodejs Web site through the browser, generally use Nginx to establish a server, and then set a reverse proxy vhostserver{Listen 80;server_name meizi.im www.meizi.im d.meizi.im
The main parameters of Mongod are:
Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number,
Official website http://mongoc.org/libmongoc/current/tutorial.html
Download wget https://github.com/mongodb/mongo-c-driver/releases/download/1.6.3/mongo-c-driver-1.6.3.tar.gz$ tar xzf mongo-c-driver-1.6.3.tar.gz$ CD
The following installation methods are not recommended. See my other blogs, Debian and Ubuntu installation MongoDB
1. Download installation package
32-digit: wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-3.2.7.tgz 64:
wget
Database Concepts
Databases: Warehouses for data storage
Database is a convenient management of data for us a platform, such as data storage, modification, query and so are very convenient. Database Classification
There are a lot of database
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.