Site Tools


mongodb

https://doc.ubuntu-fr.org/mongodb

root@db2:/home/data/SIRENE/2019/03# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
Executing: /tmp/apt-key-gpghome.x6Cp2SfaKh/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
gpg: key D68FA50FEA312927: public key "MongoDB 3.2 Release Signing Key <packaging@mongodb.com>" imported
gpg: key C3B786F0EA312927: public key "Totally Legit Signing Key <mallory@example.org>" imported
gpg: Total number processed: 2
gpg:               imported: 2
root@db2:/home/data/SIRENE/2019/03#
systemctl start mongod.service

root@db2:/etc# cat /etc/mongod.conf
# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /var/lib/mongodb
  journal:
    enabled: true
#  engine:
#  mmapv1:
#  wiredTiger:

# where to write logging data.
systemLog:
  destination: file
  logAppend: true
  path: /var/log/mongodb/mongod.log

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1


#processManagement:

#security:

#operationProfiling:

#replication:

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:
root@db2:/etc#
root@db2:/etc# mongo
MongoDB shell version: 3.2.22
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
        http://docs.mongodb.org/
Questions? Try the support group
        http://groups.google.com/group/mongodb-user
> show dbs
local  0.000GB
> exit
bye
root@db2:/etc#
mongodb.txt · Last modified: 2019/03/12 09:29 (external edit)