# Full path to pidfile (ifnotset, no pidfile is created)
pidfilepath = /data/mongodb/mongod.pid
# Log fileto send writeto instead of stdout - has to be a file, not directory
logpath = /data/mongodb/logs/mongod.log
# Directory for datafiles (defaults to /data/db/)
dbpath = /data/mongodb/data
安装MongoDByum install -y mongodb mongodb-server配置vi /etc/mongod.conf# Full path to pidfile (if not set, no pidfile is created)pidfilepath = /data/mongodb/mongod.pid# Log file to send write to instead o