Server for MongoDB icon

Server for MongoDB

在菜单栏一键启动、停止、重启 MongoDB

Start, stop, and restart MongoDB server right from your menu bar

核心功能

Features

一键启停

One-Click Control

菜单栏点击即可启动、停止、重启 MongoDB 服务(默认端口 27017)。

Start, stop, or restart MongoDB with a single click from the menu bar (default port 27017).

端口自动避让

Port Auto-Avoidance

优先使用配置文件中用户指定的端口;若该端口被占用,自动从操作系统获取一个随机空闲端口,无需手动干预。

Prefer the user-specified port in the config file. If it is occupied, automatically allocate a random free port from the OS — no manual intervention needed.

仅本地访问

Local Access Only

默认开启,仅允许本机访问,以增强安全性;可关闭限制可供局域网设备访问,点击后服务自动重启生效。

Restrict connections to localhost (127.0.0.1) for enhanced security.

开机自启动

Launch at Login

支持开机后自动启动应用,保持服务随时可用。

Automatically launch the app when you log in to macOS.

一键复制连接 URI

Copy Connection URI

点击菜单栏端口项,即可复制 mongodb://127.0.0.1:XXXXX 连接串。

Click the port item to copy the mongodb://127.0.0.1:XXXXX connection string.

工作目录快捷访问

Working Directory Access

一键打开包含数据库文件、日志、MongoDB 程序的工作目录。

Quickly open the working directory containing data, logs, and MongoDB binaries.

实时状态指示

Live Status Indicator

菜单栏图标通过透明度直观显示服务运行状态。

The menu bar icon visually reflects the running state through opacity.

无数据收集

No Data Collection

完全在本地运行,不连接任何远程服务器,不收集任何用户数据。

Runs entirely on your machine. No remote servers, no data collection.

使用方式

How to Use

点击菜单栏中的应用图标打开菜单
点击 Start 启动 MongoDB 服务
点击 Stop 停止服务,Restart 重启服务
点击菜单栏端口项,即可复制 http://127.0.0.1:XXXXX 访问地址。
开启 Local Access Only 限制仅本机访问
Click the app icon in the menu bar to open the menu
Click Start to launch MongoDB
Click Stop to stop, Restart to restart
Click the port item to copy the http://127.0.0.1:XXXXX access URL
Enable Local Access Only to restrict to localhost

常见问题

FAQ

MongoDB 无法启动?
退出程序后,通过 Working Directory 打开工作目录,删除Server for MongoDB 文件夹(注意备份配置文件和日志),然后重启程序,或者查看 logs/ 下的日志确认具体原因。
连接被拒绝?
确认服务已启动,检查浏览器访问的端口是否与菜单中显示的端口项一致,确认 Local Access Only 状态是否与当前所需的访问状态一致,确认防火墙是否允许该端口的访问。
实际端口与我配置文件里的不一样?
配置文件中的端口被占用时,应用会临时切换到下一个可用端口(菜单中端口前会出现 ⚠ 告警),下次重新启动仍会优先尝试您配置的端口。如需使用配置文件中的端口访问,请先确定配置文件中的端口是否被占用,解决端口占用问题之后重启软件即可。
开启 Local Access Only 后无法远程连接?
这是预期行为,该选项仅允许本机访问。如需局域网访问连接,请关闭该选项。
MongoDB won't start?
Check if the port is already in use. The app auto-avoids, but you can inspect the logs to verify.
Connection refused?
Make sure the service is running and the port you're connecting to matches the one shown in the menu bar.
Why is the actual port different from what's in my config file?
When your configured port is occupied, the app temporarily switches to the next free one (a ⚠ appears before Port in the menu). This is never written back to the config — the next launch will still prefer your configured port first.
Can't connect remotely after enabling Local Access Only?
This is expected — the option restricts access to localhost. Disable it to allow remote connections.