Part2:let ' S do "HELLO, world!"
Fire up your favorite text editor or IDE. I like Sublime Text a lot. Point it is at your Nodetest1 directory and open App.js. This is kind of the heart of your, the, and the app. Not a big surprise there. Here ' s a
Download MongoDB's tar packets and I'll put them in the/home directory.
Execute command
Cd/home
tar zxvf your mongodb.tar.gz file.
Then change the folder name to MongoDB to facilitate later operation
MV Your mongodb.tar.gz file MongoDB
Create a
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
One, basic command:
1, view all databases: Show DBS
2, select database Use dbname, if the database does not exist, you will create a new database
3, view all database-related operations (like JavaScript functions) Db.help ()
Use Db.help () to get
The main parameters of Mongod are:
Basic Configuration
--------------------------------------------------------------------------------
--quiet
# quiet Output
--port Arg
# Specify the service port number,
MongoDB is a powerful, flexible, and scalable way of storing data. It expands the relational database and so on. A lot of crap, for a new language or technology, to understand the technical background is one hand, practical practice is also
Just getting started with MongoDB, when doing an application, is affected by the previously used relational database, which takes into account the database connection pool issues.
relational database, we do the connection pool is simply to establish
Not in the official MongoDB documentation, but is actually feasible and requires the following steps
1. Install key
Apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv 7F0CEB10
2. Add a source
echo "Deb Http://repo.mongodb.org/apt/debian
Sometimes, when initializing the data, the number of command bars is too many, directly copy the INSERT statement, paste into the command line execution, very slow (time all spent on the paste above), so put the statement into the script to execute,
MongoDB Shard Cluster What is a shardHigh data volume and throughput of the database application will be a single-machine performance of a large pressure, large query volume will be a single CPU exhausted, large data volume on the single-machine
About MongoDB:??? MongoDB is a product between a relational database and a non-relational database, and is the most versatile and most like relational database in a non-relational database. The data structure he supports is very loose and is a
Then the last chapter在单台服务器资源充分的情况下,可以使用多实例,以便充分使用服务器资源由于我在虚拟机中做的所以恢复了快照开启服务systemctl start mongod.servicenetstat -ntap>show dbs //查看数据库admin 0.000GBlocal 0.000GBconfig 0.000GB>use school //进入school 虽然但是有集合了后会自动创建> for(var i=1;i show dbsadmin
when using MongoDB, you may encounter an issue that causes the client to be unable to connect because the number of mongod connections is full. The maximum number of connections Mongodnet.maxIncomingConnectionsspecifies that the default value is 1000
Concept:MongoDB shards are a way to store data using multiple servers to support huge data storage and data storageAdvantage:1, reduce the number of requests per shard Ouch processing, the cluster can improve their storage capacity and throughput2.
Introduction: Large data volume and throughput of the database will be a single-machine performance of a large pressure, a large number of data query will be a single CPU exhausted, the large amount of data on the single-machine storage pressure,
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 ()
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.