centos7如何开启mongodb服务


  centos7如何开启mongodb服务centos7中启动服务的方法:1、打开centos7终端;2、输入“systemctl start mongod.service”命令启动mongodb服务即可。


  
  具体操作步骤:
  
  1、在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。
  
  2、在centos7终端命令行中输入以下命令启动mongodb服务即可。
  
  ?systemctl start mongod.service
  
  相关命令:
  
  chkconfig mongod on #加入开机启动
  
  systemctl restart mongod.service #重启MongoDB
  
  ps -aux | grep mongod #查看数据库的进程是否存在
  
  mongo #启动mongoshell

上一篇:centos怎么查看mongodb数据库路径

下一篇:vps动态ip和静态ip有什么区别


centos7
Copyright © 2002-2019 测速网 https://www.inhv.cn/ 皖ICP备2023010105号 城市 地区 街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!
热门搜索