yum install mongodb-server
systemctl start mongod
systemctl status mongod //查看狀態
... # Directory for datafiles (defaults to /data/db/) dbpath = /var/lib/mongodb ...
... # Comma separated list of ip addresses to listen on (all local ips by default) #bind_ip = 127.0.0.1 ...