网站建设资讯

NEWS

网站建设资讯

OpenSUSE13.1安装MongoDB-创新互联

添加数据库源:OpenSUSE13.1安装Mo
ngoDB
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即可进入命令行。


名称栏目:OpenSUSE13.1安装MongoDB-创新互联
文章路径:http://njwzjz.com/article/deosih.html