MongoDB 常见问题 - 解决 brew services list 查看 MongoDB 服务 status 显示 error 的问题
2021-05-30 15:19
1621 查看
问题背景
将 MongoDB 作为服务运行
brew services start mongodb-community@4.4
也显示运行成功了,但是查看服务列表的时候,发现 MongoDB 服务的还是 error,这样是访问不了 MongoDB 的
stackoverflow 上一样的问题
但是没有解决方案
解决方案
- 个人尝试过没问题,但不确定适合每个人
- 总的来说,就是完全卸载和删除干净 MongoDB 的东西
卸载 MongoDB
brew uninstall mongodb-community@4.4
找到 MongoDB 相关的文件
sudo find / -name mongo
删除 MongoDB 相关的文件
rm -rf /usr/local/etc/mongod.conf rm -rf /usr/local/var/log/mongodb rm -rf /usr/local/var/mongodb
还有其他的一起删了就行
重装 MongoDB
brew install mongodb-community@4.4
相关文章推荐
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- WCF分布式开发常见错误解决(1):An error occurred while attempting to find services at...添加服务引用出错
- 问题解决:INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for
- 开发常见错误解决(1)注册.NET EnterpriseServices COM+组件,事务服务不可用
- 解决android中list在ScrollView当中只显示一行的问题
- 解决VS2008 有时右键不显示"查看代码" 选项的问题
- 反编译教程-03(jad 常见问题)解决error
- MyEclipse服务工具不显示: Could not create the view: An unexpected exception was thrown.问题解决
- xsession 登陆失败,查看日志后解决问题 错误为[ERROR] X server -- no display in range is available
- ASP.NET2.0中"无法显示 XML 页。 使用 XSL 样式表无法查看 XML 输入。"问题的解决
- 通用解决方案:解决NHibernate SELECT 多表查询结果List绑定控件显示问题。
- SenchaTouch2中list组件无法绑定存储或者绑定后仍旧无法显示数据问题解决
- 解决常见特殊符号 & ,<, >等在xml文件中显示报错的问题
- Nagios新添加的hosts和services有时显示,有时不显示问题解决
- Python常见问题解决办法之:python indentationerror:expected an indented block
- ASP.NET2.0中"无法显示 XML 页。 使用 XSL 样式表无法查看 XML 输入。"问题的解决
- 开发常见错误解决(1)注册.NET EnterpriseServices COM+组件,事务服务不可用
- 学习 VS6.0 Win32 Application 创建服务程序解决实际项目问题之:SERVICE_STATUS
- Ubuntu上配置SVN,Apache服务以及常见问题解决方法
- 如何解决java的web项目error-page不显示的问题