1   首先查看mongodb的安装路径  

     find /* -name mogod

2   然后在安装的bin下执行启动命令   (本主安装的路径为/usr/local/mongodb下)

     ./mongod --config=mongd.conf   

注:(如果安装的时候没定义Mongo.conf文件,那么启动命令就为./mongod ,若是发现关闭终端Mongo进程就中断,那么就将启动命令放到后台执行)

    nohup command > myout.file 2>&1 &  (command为执行的命令)

相关文章:

  • 2021-09-07
  • 2022-12-23
  • 2021-06-20
  • 2022-01-29
  • 2021-11-19
  • 2021-12-06
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2021-05-29
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-04-17
相关资源
相似解决方案