## Control Scripts 

The mongodb-enterprise package includes various control scripts , including the init script /etc/rc.d/init.d/mongod . 

The package configures MongoDB using the /etc/mongod.conf file in conjunction with the control scripts. See the Configuration File reference for documentation of settings available in the configuration file. 

As of version 3.0.4, there are no control scripts for mongos . The mongos process is used only in sharding (page 667). You can use the mongod init script to derive your own mongos control script. 

## Considerations 

MongoDB only provides Enterprise packages for 64-bit builds of Red Hat Enterprise Linux and CentOS Linux ver- sions 5, 6, and 7. 

Use the provided distribution packages as described in this page if possible. These packages will automatically install all of MongoDB’s dependencies, and are the recommended installation method. 

To manually install all dependencies, run the appropriate command for your Red Hat/CentOS version. 

## Version 5 

yum install perl cyrus-sasl-lib krb5-libs lm_sensors net-snmp-libs openssl \ popt rpm-libs tcp_wrappers zlib 

## Version 6 

yum install cyrus-sasl-lib krb5-libs net-snmp-libs openssl 

## Version 7 

yum install cyrus-sasl-lib krb5-libs lm_sensors-libs net-snmp-agent-libs \ net-snmp-libs openssl-libs rpm-libs tcp_wrappers-libs 

The default /etc/mongod.conf configuration file supplied by the 3.0 series packages has bind_ip set to 127.0.0.1 by default. Modify this setting as needed for your environment before initializing a replica set . 

Changed in version 2.6: The package structure and names have changed as of version 2.6. For instructions on instal- lation of an older release, please refer to the documentation for the appropriate version. 

## Install MongoDB Enterprise 

When you install the packages for MongoDB Enterprise, you choose whether to install the current release or a previous one. This procedure describes how to do both. 

Step 1: Configure repository. Create an /etc/yum.repos.d/mongodb-enterprise.repo file so that you can install MongoDB enterprise directly, using yum . 

Use the following repository file to specify the latest stable release of MongoDB enterprise. 

[mongodb-enterprise] name=MongoDB Enterprise Repository baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/stable/$basearch/ gpgcheck=0 enabled=1 

