MongoDB安装问题

lifesucksss 2012-07-31 04:20:14
一直处于这个状态

D:\Program Files\mongodb\bin>mongod --dbpath "D:\Program Files\mongodb\data\db"
Tue Jul 31 15:04:45
Tue Jul 31 15:04:45 warning: 32-bit servers don't have journaling enabled by def
ault. Please use --journal if you want durability.
Tue Jul 31 15:04:45
Tue Jul 31 15:04:46 [initandlisten] MongoDB starting : pid=4796 port=27017 dbpat
h=D:\Program Files\mongodb\data\db 32-bit host=SodaoLeo-PC
Tue Jul 31 15:04:46 [initandlisten]
Tue Jul 31 15:04:46 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are
limited to about 2 gigabytes of data
Tue Jul 31 15:04:46 [initandlisten] ** see http://blog.mongodb.org/post/13
7788967/32-bit-limitations
Tue Jul 31 15:04:46 [initandlisten] ** with --journal, the limit is lower
Tue Jul 31 15:04:46 [initandlisten]
Tue Jul 31 15:04:46 [initandlisten] db version v2.0.6, pdfile version 4.5
Tue Jul 31 15:04:46 [initandlisten] git version: e1c0cbc25863f6356aa4e31375add7b
b49fb05bc
Tue Jul 31 15:04:46 [initandlisten] build info: windows sys.getwindowsversion(ma
jor=6, minor=0, build=6002, platform=2, service_pack='Service Pack 2') BOOST_LIB
_VERSION=1_42
Tue Jul 31 15:04:46 [initandlisten] options: { dbpath: "D:\Program Files\mongodb
\data\db" }
Tue Jul 31 15:04:46 [websvr] admin web console waiting for connections on port 2
8017
Tue Jul 31 15:04:46 [initandlisten] waiting for connections on port 27017
Tue Jul 31 15:05:46 [clientcursormon] mem (MB) res:16 virt:68 mapped:0
Tue Jul 31 15:10:46 [clientcursormon] mem (MB) res:16 virt:65 mapped:0
Tue Jul 31 15:15:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:20:46 [clientcursormon] mem (MB) res:1 virt:65 mapped:0
Tue Jul 31 15:25:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:30:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:35:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:40:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:45:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 15:50:46 [clientcursormon] mem (MB) res:1 virt:65 mapped:0
Tue Jul 31 15:55:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 16:00:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 16:05:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 16:10:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0
Tue Jul 31 16:15:46 [clientcursormon] mem (MB) res:0 virt:65 mapped:0


我该怎么办?
...全文
3704 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
issac_czy 2014-12-03
  • 打赏
  • 举报
回复
8#正解 我的也是这个情况,根据8#说的操作后发现正确
DHMifia 2014-07-11
  • 打赏
  • 举报
回复
你用的版本太新了 换个旧点的版本就行了 我也不知道为什么 刚刚接触Mongo
赵子逸 2014-07-10
  • 打赏
  • 举报
回复
引用 6 楼 SpencerKid 的回复:
[quote=引用 5 楼 qq13381408120 的回复:] 查看是哪个程序占用了这个端口,把哪个程序卸载就可以了。 C:\>netstat -aon|findstr "27017" //查看占用这个端口号的进程号 TCP 127.0.0.1:27017 0.0.0.0:0 LISTENING 2016 C:\>tasklist|findstr "2016" //根据进程号查看程序 tor.exe 2016 Console 0 16,064 K 卸载tor.exe
我检查端口后占用的程序就是mongod.exe,那我应该怎么解决啊?[/quote] 我搞定了,出现上面一行字后在浏览器里输入http://localhost:27017/ 然后浏览器中会出现一行字:It looks like you are trying to access MongoDB over HTTP on the native driver port. 这时候回到dos界面会发现已经有东西了 2014-07-10T23:02:35.655+0800 [initandlisten] waiting for connections on port 270 17 2014-07-10T23:02:50.522+0800 [initandlisten] connection accepted from 127.0.0.1: 4069 #1 (1 connection now open) 2014-07-10T23:02:50.522+0800 [initandlisten] connection accepted from 127.0.0.1: 4070 #2 (2 connections now open) 2014-07-10T23:02:50.522+0800 [conn2] end connection 127.0.0.1:4070 (1 connection now open) 2014-07-10T23:03:35.778+0800 [clientcursormon] mem (MB) res:38 virt:306 2014-07-10T23:03:35.778+0800 [clientcursormon] mapped (incl journal view):160 2014-07-10T23:03:35.778+0800 [clientcursormon] connections:1 不一定要和我这个完全一致,然后你再开启一个dos窗口,进入bin目录(如果没有设置环境变量的话),输入mongo,就看到启动成功了
赵子逸 2014-07-10
  • 打赏
  • 举报
回复
引用 6 楼 SpencerKid 的回复:
[quote=引用 5 楼 qq13381408120 的回复:] 查看是哪个程序占用了这个端口,把哪个程序卸载就可以了。 C:\>netstat -aon|findstr "27017" //查看占用这个端口号的进程号 TCP 127.0.0.1:27017 0.0.0.0:0 LISTENING 2016 C:\>tasklist|findstr "2016" //根据进程号查看程序 tor.exe 2016 Console 0 16,064 K 卸载tor.exe
我检查端口后占用的程序就是mongod.exe,那我应该怎么解决啊?[/quote] 我和你遇到的问题一样,坐等答案。另外,我用的是64位,win7,安装盘改成了D盘,额外添加了环境变量,其它和指导书都一样。你又没有我这里的几个操作?
4LeafClove 2014-07-02
  • 打赏
  • 举报
回复
引用 5 楼 qq13381408120 的回复:
查看是哪个程序占用了这个端口,把哪个程序卸载就可以了。 C:\>netstat -aon|findstr "27017" //查看占用这个端口号的进程号 TCP 127.0.0.1:27017 0.0.0.0:0 LISTENING 2016 C:\>tasklist|findstr "2016" //根据进程号查看程序 tor.exe 2016 Console 0 16,064 K 卸载tor.exe
我检查端口后占用的程序就是mongod.exe,那我应该怎么解决啊?
qq13381408120 2012-12-26
  • 打赏
  • 举报
回复
查看是哪个程序占用了这个端口,把哪个程序卸载就可以了。 C:\>netstat -aon|findstr "27017" //查看占用这个端口号的进程号 TCP 127.0.0.1:27017 0.0.0.0:0 LISTENING 2016 C:\>tasklist|findstr "2016" //根据进程号查看程序 tor.exe 2016 Console 0 16,064 K 卸载tor.exe
fly542 2012-11-19
  • 打赏
  • 举报
回复
处于分配数据文件的状态,查看下磁盘空间是不是满了?
rucypli 2012-08-02
  • 打赏
  • 举报
回复
27017端口被占用了吗
mash5_paul 2012-08-02
  • 打赏
  • 举报
回复
NOTE: when using MongoDB 32 bit, you are
limited to about 2 gigabytes of data
32位的mongodb只要要分配2GB的物理地址 给他,LZ看看硬盘剩余容量呢

1,798

社区成员

发帖
与我相关
我的任务
社区描述
MongoDB相关内容讨论区
社区管理员
  • MongoDB社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧