MongoDB, master and slave configuration
A MongoDB installation
The code is as follows
Copy Code
[Root@zabbix_server src]# wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.0.0.tgz[Root@zabbix_server src]# tar
MongoDB is a database based on distributed file storage. Written by the C + + language. Designed to provide scalable, high-performance data storage solutions for Web applications.MongoDB is a product between relational database and non relational
Today, when I use MongoDB to manipulate aggregation, I want to format dates like "2013-10-17 04:41:37 UTC" into "October 17",
Copy Code code as follows:
' FDate ' => {' $concat ' => [' $date. Month ', ' month ', ' $date. Day ', ' th ']}
Tag: Push data sharing unsafe time format automatically deletes class init data typeIn the project, the date type is created in MONGO, and the MONGO set expiration is automatically deleted based on the date type. and the date type in MONGO, using
1. Connect to the Linux system first.2. Download the appropriate MongoDB install compression package to the MongoDB website.Download page:.Here i download the Linux 64-bit legacy: https://www.qixoo.qixoo.com.fastdl.mongodb.org/linux/mongodb-linux-x86
This does not require disk scan statistics, but rather the use of database statistics. This allows you to accurately record what files are available to the current user.Two methods:1. After the client uploads the file successfully, the HTTP post
For a long time did not send blog ~ today came a ~ nonsense less say ~goon.A: Homebrew Introduction and InstallationIntroduction: Is the software package management tools on Mac, easy to install and uninstall.Installation: Open terminal, enter the
Recently installed mongodb3.1.4, and enabled authorization authentication, in DOS window operation without any problems, in order to maintain the convenience of downloading a client tool Robomongo 0.8.5, user name, password, such as configuration
SummaryThe previous article introduced CRUD operations, which will basically do a lot of work. However, if you encounter the operation of statistical classes, then you need to learn the contents of this article.Related articlesGetting started with
MongodbPHP ExtensionsThis tutorial will show you how to install MongoDB extensions on Linux, Windows, MAC platforms.
Installing MongoDB PHP extensions on Linux on the terminalYou can install MongoDB's PHP extension driver by executing the
1. Download the installation packagewget http://fastdl.mongodb.org/linux/mongodb-linux-i686-1.8.2.tgzUnzip the package after download is completeTar zxf mongodb-linux-i686-1.8.2.tgz2. Install ready to move MongoDB to the/usr/local/server/mongdb
command to start the database
1
mongod --dbpath C:\MongoDb\data\db -logpath C:\MongoDB\data\log\mongolog.log
Common commands for several databases
use DATABASE_NAME // 创建数据库
>db //
In some scenarios, MongoDB has an irreplaceable advantage over traditional relational databases and NoSQL databases.For example, I recently needed to categorize a large collection of sites. The reality is that a site may have multiple tags at the
CRUD operations Create, read, update, and delete documents.Create OperationsCreate or Insert operations Add new documents to a collection. If The collection does not currently exist, insert operations would create the collection.MongoDB provides the
MongoDB version 3.2 (currently up-to-date), the demo is the Linux under the MongoDB authorization authenticationFirst logon does not start authorization (MONGO default does not
MongoDB as a Windows service startup
Windows version Installation
MongoDB Official Download Station is http://www.mongodb.org/downloads, can go up to download the latest corresponding version, there are 32-bit, 64-bit.
Set the
MongoDB DownloadMONGODB provides pre-compiled binaries for both 32-bit and 64-bit systems, which you can download from MongoDB website, MongoDB precompiled binary package: Http://www.mongodb.org/downloads
Note: Windows XP systems are no
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