mongoDB 설치 - CentOS 7

  • add mongoDB repository

    # vi /etc/yum.repos.d/mongodb.repo
    [mongodb-4.0]
    name=mongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64
    gpgchecl=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc
  • install nginx

    # yum install -y mongodb-org
  • find mongodb config file

    # cat -n /usr/lib/systemd/system/mongod.service
    ...
    9 Environment="OPTIONS=-f /etc/mongod.conf"
    ...
  • start mongodb service

    # systemctl start mongod

'Programming > Server' 카테고리의 다른 글

[CentOS 7] Nginx 설치  (0) 2019.04.29
[Network] OSI 7계층  (0) 2019.04.03
[Linux] 자주 사용하는 명령어 (grep, find, exec, xargs, awk)  (1) 2019.02.26
[Linux] nohup 사용  (0) 2019.02.01
[Ubuntu] AWS - Ubuntu locale 한글 변경  (0) 2019.01.14

+ Recent posts