Centos6.6 install java environment

  centos, java

Install git

Install java8

Installing maven

Install mongodb3.2

Edit/etc/yum.repos.d/mongodb-org-3.2.repo


[mongodb-org-3.2]

name=MongoDB Repository

baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/

gpgcheck=0

enabled=1

Installation


yum install -y mongodb-org

Configure firewall


iptables -A INPUT -p tcp -m tcp --dport 27017 -j ACCEPT

setenforce 0

Follow system startup

chkconfig mongod on

Configuration file

/etc/mongod.conf

Start and close


service mongod stop

service mongod restart