centos7如何卸载mongodb


  centos7如何卸载centos7卸载mongodb的方法:1、打开centos7终端;2、输入“yum list installed | grep mongo”命令查看已安装的mongodb;3、最后输入“yum erase mongodb-server.x86_64”命令卸载mongodb服务即可。


  
  具体操作步骤:
  
  1、在centos7系统桌面中使用快捷键【Ctrl+Alt+T】打开centos7终端命令行模式。
  
  2、在centos7终端命令行中输入以下命令查看已安装的mongodb。
  
  yum list installed | grep mongo
  
  3、最后输入以下命令卸载mongodb服务即可。
  
  yum erase mongodb-server.x86_64  #这里mongodb-server.x86_64为上一步查出的list
  
  相关命令:
  
  systemctl start mongod.service #开启MongoDB
  
  chkconfig mongod on #加入开机启动
  
  systemctl restart mongod.service #重启MongoDB
  
  ps -aux | grep mongod #查看数据库的进程是否存在
  
  mongo #启动mongoshell
  
  以上就是关于“centos7如何卸载mongodb”的相关介绍如果亲们还有什么不清楚的地方可以直接咨询我们的在线客服!

上一篇:python如何获取字典的值

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


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