How to install mongodb on redhat 7.7
下载rpm:
- mongodb-enterprise-server-6.0.3-1.el7.x86_64.rpm
- mongodb-org-server-6.0.4-1.el7.x86_64.rpm
- mongodb-mms-6.0.9.100.20230201T2148Z.x86_64.rpm
rpm -ivh mongodb-org-server-6.0.4-1.el7.x86_64.rpm
rpm -ivh mongodb-mms-6.0.9.100.20230201T2148Z.x86_64.rpm
rpm -ivh mongodb-mms-6.0.9.100.20230201T2148Z.x86_64.rpm
systemctl start mongod
systemctl status mongod
systemctl start mongodb-mms.service
systemctl status mongodb-mms.service
systemctl status mongodb-mms.service
systemctl status mongod
ps -ef|grep mongo
netstat -tlnp|grep 8080
mkdir /s3test/mongodb_head
cd /s3test/mongodb_head/
sudo chown mongod:mongod /s3test/mongodb_head/
chmod 777 mongodb_head/
cd mongodb_head/