OpenSUSE13.1安装MongoDB

添加数据库源:

sudo zypper ar http://download.opensuse.org/repositories/server:/database/openSUSE_13.1/server:database.repo

刷新源:

sudo zypper refresh

然后搜索一下源中的MongoDB

  zypper se mongodb

恩,源中有了

正在加载软件源数据...
正在读取已安装的软件包... S | 名称 | 摘要 | 类型
--+---------------------+--------------------------------------------------------+---------
i | mongodb | High-performance, schema-free document-oriented data-> | 软件包
| mongodb | High-performance, schema-free document-oriented data-> | 源代码包
| mongodb-debuginfo | Debug information for package mongodb | 软件包
| mongodb-debugsource | Debug sources for package mongodb | 软件包
| mongodb-devel | High-performance, schema-free document-oriented data-> | 软件包

安装:

sudo zypper in mongodb

启动:

sudo /usr/sbin/mongod
/usr/sbin/mongod --help for help and startup options
Fri Oct 31 22:08:34.280 [initandlisten] MongoDB starting : pid=11004 port=27017 dbpath=/var/lib/mongodb/ 64-bit host=linux-utem.site
Fri Oct 31 22:08:34.280 [initandlisten] db version v2.4.10
Fri Oct 31 22:08:34.280 [initandlisten] git version: nogitversion
Fri Oct 31 22:08:34.280 [initandlisten] build info: Linux cloud105 3.11.6-4-default #1 SMP Wed Oct 30 18:04:56 UTC 2013 (e6d4a27) x86_64 BOOST_LIB_VERSION=1_49
Fri Oct 31 22:08:34.280 [initandlisten] allocator: tcmalloc
Fri Oct 31 22:08:34.280 [initandlisten] options: {}
Fri Oct 31 22:08:34.365 [initandlisten] journal dir=/var/lib/mongodb/journal
Fri Oct 31 22:08:34.365 [initandlisten] recover begin
Fri Oct 31 22:08:34.365 [initandlisten] info no lsn file in journal/ directory
Fri Oct 31 22:08:34.365 [initandlisten] recover lsn: 0
Fri Oct 31 22:08:34.365 [initandlisten] recover /var/lib/mongodb/journal/j._0
Fri Oct 31 22:08:34.445 [initandlisten] recover cleaning up
Fri Oct 31 22:08:34.445 [initandlisten] removeJournalFiles
Fri Oct 31 22:08:34.498 [initandlisten] recover done
Fri Oct 31 22:08:34.498 [initandlisten] preallocating a journal file /var/lib/mongodb/journal/prealloc.0
Fri Oct 31 22:08:37.016 [initandlisten] File Preallocator Progress: 754974720/1073741824 70%
Fri Oct 31 22:08:40.059 [initandlisten] File Preallocator Progress: 1027604480/1073741824 95%
Fri Oct 31 22:08:50.844 [websvr] admin web console waiting for connections on port 28017
Fri Oct 31 22:08:50.844 [initandlisten] waiting for connections on port 27017
Fri Oct 31 22:09:04.397 [initandlisten] connection accepted from 127.0.0.1:45348 #1 (1 connection now open)

之后打开新的终端运行mongo即可进入命令行。

上一篇:The formal parameters of the method


下一篇:Asp.NetMVC和WebForm的请求生命周期