

No need to edit your php.ini and to add something like mongo. Now we have to install the php mongo (pecl) extension, this package contains the MongoDB database drivers used by php to communicate with MongoDB # yum install php-pecl-mongo If you get this error: "Error: couldn't connect to server" probably mongod is not started: # service mongod start

When you start mongo it creates a socket /tmp/mongodb-27017.sock If you need more information about configuration options i recommend to read the mongodb configuration pageĪdd chkconfig rule: chkconfig -levels 235 mongod on Then next option that i changed is the "auth" option, i have set the authentification to true auth = true Installing MongoDB on Linux rootcentos config vi nf NetBrain Database configuration file Note: other than the database username and password. The first option i did modify was the "port" option which i commented, because i have a dedicated server an will use the mongodb socket instead of the port, i don't need access from outside to that port either #port = 27017 # Slave only: specify a single database to replicate # in replicated mongo databases, specify here whether this is a slave or master # Ping interval for Mongo monitoring server. Let’s enable MongoDB to start after reboot: For CentOS 6: chkconfig mongod on. # Server name for Mongo monitoring server. This commandw will install MongoDB server on your cPanel dedicated or vps server. # Accout token for Mongo monitoring server. Any query that would do a table scan fails. # Disable the HTTP interface (Defaults to localhost:27018). Configure yum package to install mongodb centos 2.
INSTALL MONGODB CENTOS 6 HOW TO
# Inspect all client data for validity on receipt (useful for How to Install MongoDB 3.2 on CentOS 6.5 or Redhat Enterprise Linux 1. # Enables periodic logging of CPU utilization and I/O wait Pidfilepath = /var/run/mongodb/mongod.pid The default location on centos6 is: /etc/nfĬonfigure mongodb conf: # vi /etc/nf Now we can use yum to install the mongodb server: # yum install mongo-10gen mongo-10gen-server Press the escape key to exit from the edit mode
