is not the same for Ubuntu and CentOS installation softwareFor Ubuntu is apt-get install + software nameBut for CentOS it'sYum install + software nameSo the Ubunu remote connection is a little more troublesome.1, first$sudo Apt-get Install Openssh-server2 Then start SSH$sudo/etc/init.d/ssh StartThere's the "OK" ssh-server start.3, $ifconfigTo view your own IP address4 Open putty in your windows.Enter your IP address to connect5, there are other users
php extensions for MongoDB and mongoDB
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
MongoDB beginners must read (both concepts and practices)
MongoDB Installation Guide for Ubunu 14.04
MongoDB authoritative Guide (The Definitive Guide) in English [PDF]
Nagios monitoring MongoDB sharded cluster service practice
Build MongoDB Service Based on CentOS 6.5 Operating System
3. Set up a MongoDB Database1.
://pecl.php.net/get/mongo-1.4.0.tgz
2. Installation
Assume that the extracted directory is a mongo-1.4.0
Go to the mongo-1.4.0 directory and execute:
Phpize
./Configure
Make
Make install
After the installation is successful, you will receive a message similar to the following:
Installing shared extensions:/usr/lib/php5/20121212/mongo. so (or other directory files)
In this directory, you will find mongo. so
3. Modify php configuration
Add in php. ini
Extension =/usr/lib/php5/20121212/mongo.
Ubunu12.04 reported the flash plug-in crash solution my ubuntu12.04 reported the installation of installflashplugin for a long time, but I failed to download and install it online. So I don't have to worry about it. The problem arises. you can watch the video today, but open Baidu Library and report fl...
Ubunu 12.04 reported flash plug-in crash solution my ubuntu12.04 reported that installflash plug-in needs to be installed very early, but I failed
package
Sudo apt-get install mongodb-10gen
Complete the installation!
Configure MongoDB
Run the command vi/etc/mongodb. conf in the/etc/directory of the configuration file.
Mongodb users are running, MongoDB database files are in, and database log files are in/var/log/mongodb
Run MongoDB
Sudo service mongodb start
Stop MongoDB
Sudo service mongodb stop
Restart MongoDb
Sudo service mongodb restart
Install PHP extensions for MongoDB
1. Download and decompress the source code
Source package addres
sharding Based on Field hash:Sh. shardCollection ("qiaodazhao. resume_meta_data", {_ id: "hashed "})
Set table sharding Based on fields (note that this form works the same as above ):Db. runCommand ({"shardcollection": "qiaodazhao. things", "key": {"_ id": 1 }})
Print the database shard information:Db. printShardingStatus ()
Print Server Information:Db. serverStatus ()
Create a table index:Db. resume_meta_data.ensureIndex ({"org_name": 1 },{ "background": true })
View table indexes:Db. resume_m
Obtaining the list of file names of all files in the folder is still very useful. For example, I recently used NDK to write Android. mk files need to put all the files under Multiple folders *. add the file name of c... in Windows, use cmd to locate the folder to be operated, and enter reference dir *. c/B> c:/cfile.txt parameter meaning: (1 )*. c indicates that the filter suffix is. c file (2)/B is the output mode. Reference/B only contains the file name/w file name and Folder Information/s fil
following links:
MongoDB 3.0 official version released and downloaded
CentOS compilation and installation of MongoDB
CentOS compilation and installation of php extensions for MongoDB and mongoDB
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
MongoDB beginners must read (both concepts and practices)
MongoDB Installation Guide for Ubunu 14.04
MongoDB authoritative Guide (The Definitive Guide) in English
instances
For more information about MongoDB, see the following links:
MongoDB 3.0 official version released and downloaded
CentOS compilation and installation of MongoDB
CentOS compilation and installation of php extensions for MongoDB and mongoDB
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
MongoDB beginners must read (both concepts and practices)
MongoDB Installation Guide for Ubunu 14.04
MongoDB
Obtaining the list of file names of all files in the folder is still very useful. for example, I recently used NDK to write Android. mk files need to put all the files under multiple folders *. add the file name of c... in Windows, use cmd to locate the folder to be operated and enter... obtaining the list of file names of all files in the folder is still very useful. for example, I recently used NDK to write Android. mk files need to put all the files under multiple folders *. add the file name
the following information to your schema. xml:
2. Configure
Start mongo-connector
Method 1: Start with a command line
Nohup sudo mongo-connector-m localhost: 27019-t http: // localhost: 8983/solr/card-o oplog_progress.txt-n example. card-u _ id-d solr_doc_manager> mongo-connector.out 2> 1
Method 2: Start a service
Service mongo-connector start
Solr deletes all indexes
Http: // 192.168.11.52: 8983/solr/card/update /? Stream. body = % 3 Cdelete % 3E % 3 Cquery % 3E *: * % 3C/query % 3E % 3C/de
performance in the NUMA environment may sometimes slow down, especially when the process load is very high.
------------------------------------------ Split line ------------------------------------------
CentOS 6 install MongoDB and server configuration using yum
Install MongoDB2.4.3 in Ubuntu 13.04
MongoDB beginners must read (both concepts and practices)
MongoDB Installation Guide for Ubunu 14.04
MongoDB authoritative Guide (The Definitive Guide)
": 27017" in a browser to view the relevant information.
Add a MongoDB service to a windows Service
To avoid the tedious startup of services using commands such as cd and mongod every time MongoDB is used, we can add it to the windows Service. The specific commands are as follows:
D: \ mongodb \ bin> mongod -- dbpath = D: \ data \ db -- logpath = D: \ mongodb \ logs \ mongod. log -- install -- serviceName MongoDBD: \ mongodb \ bin> net start MongoDBMongoDB service has been started successfull
, set D: \ nodejsdemo \ node_modules \ mongodb \ node_modules \ bson \ ext \ index. bson = require ('.. /build/Release/bson ') change to bson = require ('bson') and run it again.
However, this only solves the problem of the first two rows, and is surrounded by =."Please ensure that you set the default write concern for the database" solution
From the last sentence "This message will disappear when the default safe is set on the driver Db", we can see the solution to This problem, as long as the
Dbpath =/home/mongodb/data/
Logpath =/home/mongodb/log/mongodb. log
Logappend = true
Fork = true
Note: The function here is to facilitate the start of the mongodb service. You can directly use mongod-f mongodb. conf to start
6. Configure Environment Variables
Cd $ HOME
Add two lines after file. bash_profile
Export MONGODB_HOME =/home/mongodb
Export PATH = $ MONGODB_HOME/bin: $ PATH
Annotation: 1. re-open a login interface; or load the file. bash_profile; source. bash_profile
2. You do not need
official attitude is that after a large amount of information is collected, this layout provides a better user experience, A good idea is that he has conducted a voting survey on the Forum (forgot the original address). He is used to having 3/4 of people in the original Windows layout, and developers may not be able to withstand the user pressure, the OSX window layout is officially adopted. This also involves the remark of Mark Shuttleworth, the initiator of Ubuntu: Open Source is not a democr
installation of php extension http://www.linuxidc.com/Linux/2012-02/53833.htm for MongoDB and mongoDB
CentOS 6 install MongoDB with yum and configure http://www.linuxidc.com/Linux/2012-08/68196.htm on the server side
Install MongoDB2.4.3 http://www.linuxidc.com/Linux/2013-05/84227.htm in Ubuntu 13.04
MongoDB entry must read (both concepts and practices) http://www.linuxidc.com/Linux/2013-07/87105.htm
MongoDB Installation Guide http://www.linuxidc.com/Linux/2014-08/105364.htm in
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.