mongodb操作备忘

安装

  1. Configure dnf Repository

    sudo vi /etc/yum.repos.d/mongodb.repo
    
    [Mongodb]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/amazon/2/mongodb-org/4.2/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
  2. Install MongoDB on Fedora

    sudo dnf install mongodb-org -y
  3. Start MongoDB Service

    #sudo systemctl enable mongod.service
    sudo systemctl start mongod.service
  4. Enable Mongo Client to Run

    sudo mkdir /var/log/mongo
    sudo chmod 777 /var/log/mongo

操作

待续。