MongoDB 4.0 Installation
MongoDB 4.0 Installation
com/post/how-to-install-mongodb-on-centos-7/
MongoDB installation
vim /etc/yum.repos.d/mongodb-org.repo
[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
Output
4.0.1
-----------------------------------------------------------------------------------
---------
config files
/etc/mongod.conf
log files
tail -f /var/log/mongodb/mongod.log
-----------------------------------------------------------------------------------
---------
Problem 1:
Failed to unlink socket file /tmp/mongodb-27017.sock
Solution 1:
To fix it, delete the /tmp/mongodb-27017.sock file manually and start the mongod
process. Check the /tmp/mongodb-27017.sock permission again, the ownership is
changed to the ‘mongodb’ user.
rm -rf /tmp/mongodb-27017.sock