当我在终端输入“mongo”时 它无法运行并显示这些东西
MongoDB shell版本:2.4.9 非法指令(核心倾销)
然后什么也没发生。我在arch linux中安装了mongodb。 我有创建/ data / db。
答案 0 :(得分:1)
这是什么类型的处理器?过去一直存在一些问题,在一些较旧的处理器架构上没有实现指令。
您可以使用gdb检查核心文件,或者在gdb下启动mongo进程并重现问题,并确定
答案 1 :(得分:0)
你先启动mongod --dbpath“db location”吗? - 昨天尤金P
您是从系统包管理器还是其他地方获得MongoDB? - 昨天sudo_O
这听起来像是腐败,如果无法访问MongoDB服务器,新版本的mongo shell应该会产生另一个错误。 - 昨天的Sammaye
我使用了mongod --dbpath / data / db。 我从pacakge经理那里得到mongodb,我试图从源代码编译,它也一样。
Tue Feb 25 13:27:46.024
Tue Feb 25 13:27:46.027 warning: 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
Tue Feb 25 13:27:46.032
Tue Feb 25 13:27:46.128 [initandlisten] MongoDB starting : pid=23705 port=27017 dbpath=/data/db 32-bit host=xeraph.hk
Tue Feb 25 13:27:46.129 [initandlisten]
Tue Feb 25 13:27:46.131 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary .
Tue Feb 25 13:27:46.133 [initandlisten] ** 32 bit builds are limited to le ss than 2GB of data (or less with --journal).
Tue Feb 25 13:27:46.134 [initandlisten] ** Note that journaling defaults t o off for 32 bit and is currently off.
Tue Feb 25 13:27:46.136 [initandlisten] ** See http://dochub.mongodb.org/c ore/32bit
Tue Feb 25 13:27:46.138 [initandlisten]
Tue Feb 25 13:27:46.139 [initandlisten] db version v2.4.9
Tue Feb 25 13:27:46.140 [initandlisten] git version: nogitversion
Tue Feb 25 13:27:46.141 [initandlisten] build info: Linux root-armv6-copy 3.4.76 -1-ARCH #1 SMP PREEMPT Wed Jan 15 15:31:14 MST 2014 armv7l BOOST_LIB_VERSION=1_5 5
Tue Feb 25 13:27:46.141 [initandlisten] allocator: system
Tue Feb 25 13:27:46.142 [initandlisten] options: { dbpath: "/data/db" }
Tue Feb 25 13:27:46.227 [websvr] admin web console waiting for connections on po rt 28017
Tue Feb 25 13:27:46.228 [initandlisten] waiting for connections on port 27017
终端暂停,然后我登录到另一个ssh终端,
也是非法指令。