我已经安装了MongoDB,但发现一些不合逻辑的问题,希望有人能回答我的疑问:
- When I execute "mongo" I get logged into shell
When I execute "mongodb" I get the following errors:
2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] MongoDB starting : pid=7221 port=27017 dbpath=/data/db 64-bit host=debian 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] db version v3.2.7 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] git version: 4249c1d2b5999ebbf1fdf3bc0e0e3b3ff5c0aaf2 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1t 3 May 2016 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] allocator: tcmalloc 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] modules: none 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] build environment: 2016-06-23T22:58:39.302+0000 I CONTROL [initandlisten] distmod: debian71 2016-06-23T22:58:39.303+0000 I CONTROL [initandlisten] distarch: x86_64 2016-06-23T22:58:39.303+0000 I CONTROL [initandlisten] target_arch: x86_64 2016-06-23T22:58:39.303+0000 I CONTROL [initandlisten] options: {} 2016-06-23T22:58:39.325+0000 E NETWORK [initandlisten] listen(): bind() failed errno:98 Address already in use for socket: 0.0.0.0:27017 2016-06-23T22:58:39.325+0000 E NETWORK [initandlisten] addr already in use 2016-06-23T22:58:39.325+0000 E STORAGE [initandlisten] Failed to set up sockets during startup. 2016-06-23T22:58:39.325+0000 I CONTROL [initandlisten] dbexit: rc: 48
mongo和mongodb两个终端命令有何区别?
MongoDB非常棒,因为我的项目是无模式的,但配置它、创建角色、授权等过程总是很糟糕的体验。
谢谢。