One: Problem description
These several times perform MongoDB initialization scripts and discover a problem:
When you upload a script from Windows to Linux, the error occurs when you execute it.
Such as:
Mongo-u root-p mongo123 Admin--port 8000
The main parameters of Mongod are:
Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number,
The last few days to participate in a creative marathon, although not take any prize, heavy participation
Finally have the opportunity to practice MongoDB database, used to only configure themselves to play
The wind is coming. Stay Fox
Environment:
CentOS 6.5 Installation MongoDB 2.6Author: Chszs, reprint should be indicated. Blog home: Http://blog.csdn.net/chszs
Below we install the latest MongoDB 2.6.0 version on the CentOS 6.5 x64 system.
The MongoDB v2.4.x version of the software
1. $all means to match an array with multiple elements
2. $slice specify the offset value and the number of elements you want to return
Db.user.find (aa,{"common": {"$slice": 10}})
3. Db.user.ensureIndex ({"Name": 1})
Add index
4. Db.user.drop ()
The main parameters of Mongod are:
Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number,
Reprinted from Http://www.cnlamp.org/linux/417.html
Posted 2 years ago ⁄linux⁄ No Comments
Since the version of MongoDB in the official Ubuntu apt source is older, it is installed with the APT source provided by MongoDB. To use the software on a
I remember a few days ago a small partner to check the MongoDB log, so as to troubleshoot problems, may not find the log where the logs, today, the system said MongoDB log system. There are four main types of logs in MongoDB. are system log, journal
Note: CENOTS7 system does not need to deploy GLIBC, can directly install the start MongoDB databaseThe script is as followsCat mongodbinstall.py#!/usr/bin/env python#coding:utf-8import osimport zipfileimport tarfileimport shutilline =
System environmentServer System: Windows Server2012 R2mongodb:v3.4.4You can view version information by command: mongo-versionScenario: Back up the database smp_maint_2, and revert to the new database Smp_maint_2_restore.MongoDB Database Backup1.
MongoDB replica set expands to Machine shardShard Cluster Composition Description1 replset (replica set, number of data storing shards)2 mongo_config (cluster configuration center, storage metadata you can understand the mycat with various
Using MongoDB under Windows, every time you use it to restart, it's very cumbersome, so how do you start it as a Windows service item? As a system service item is started, it can be used directly after booting.
Create a new folder under the
Because I think there is no need to waste time in such a broken link, so the specific steps and the problems encountered in the list.Lest MongoDB novice +linux novice Encounter such a problem when wasting too much meaningless time.ObjectiveFor a
① Download the installation package mongodb-linux-x86_64-rhel62-3.6.3.tgz② Decompression: tar zxvf mongodb-linux-x86_64-rhel62-3.6.3.tgz③ Renaming: MV mongodb-linux-x86_64-rhel62-3.6.3/mongodb-3.6.3④ Entry directory: CD mongodb-3.6.3/⑤ New directory:
A . MongoDB Connection NumberUnder the Linux platform, either 64-bit or 32-bit MONGODB default maximum connection number is 819,win platform do not know, estimated that no one in the win platform using MONGODB production environment[Email protected]
Overview of deploying MongoDB Shard cluster shardsHigh data volume and throughput of the database application of the performance of a single machine will be more pressure, large query volume will be a single CPU exhausted, large amount of data on
If a long-consuming task is issued to the MONGODB server, the client-forced termination causes the task to continue executing on the server side.MongoDB now provides a way to query and manage the tasks that are being performed.Db.currentop ()
1. Installation Replica Set IntroductionA replica set (Replica set) is a cluster of MongoDB instances consisting of a primary (Primary) server and multiple backup (secondary) servers. With replication, updates to the data are pushed from primary to
Common commands1. Get Help commandsDb.help ()db. Table name. Help ()db. Table name. Find (). Help ()Rs.help ()2. Switch/CREATE DatabaseUse database name NOTE: MongoDB's database can be used first, then created, and when a collection (table) is
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