添加数据库源:

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的更多相关文章

  1. OpenSUSE13.2安装MongoDB

    真是一个悲伤的故事,就是你解决过得问题没有记住,却需要再通过搜索引擎来找一遍,幸运的是曾经你做过记录,搜索帮你找到了. 这是我一个Wordpress博客整理记录的,好久没在那里更新了,两个月的时间,我 ...

  2. 【先定一个小目标】Windows下安装MongoDB 3.2

    1.MongoDB 安装 官网提供了三个版本下载: - MongoDB for Windows 64-bit 适合 64 位的 Windows Server 2008 R2, Windows 7 , ...

  3. Windows 下安装 MongoDB

    Windows 下安装 MongoDB 的步骤:1.官网www.mongodb.com下载安装包或zip包2.解压下载的文件到文件夹 D:\mongo .3.使用管理员权限打开CMD,导航到目录 D: ...

  4. windows 安装 mongodb

    windows 安装 mongodb 下载 首先到官网下载合适的安装包,下载地址为 https://www.mongodb.com/download-center MongoDB for Window ...

  5. Python: Win7 64位如何安装MongoDB?

    Windows 7 64位安装MongoDB 官网tutorial:  https://docs.mongodb.com/v3.0/tutorial/install-mongodb-on-window ...

  6. CentOS7 编译安装 Mongodb (实测 笔记 Centos 7.0 + Mongodb 2.6.6)

    环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.准备 1.1 显示系统版 ...

  7. 搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展

    上一篇:搭建LNAMP环境(五)- PHP7源码安装Redis和Redis拓展 一.安装MongoDB 1.创建mongodb用户组和用户 groupadd mongodb useradd -r -g ...

  8. 在 CentOS7 上安装 MongoDB

    在 CentOS7 上安装 MongoDB 1 通过 SecureCRT 连接至 CentOS7 服务器: 2 进入到 /usr/local/ 目录: cd /usr/local 3 在当前目录下创建 ...

  9. 2.0 (1)安装MongoDB

    (官网:www.mongodb.com) ——————————(1)Mac安装MongoDB———————— 1)安装homebrew (官网地址,brew.sh) ruby -e "$(c ...

随机推荐

  1. WPF学习(3)布局

    今天我们来说说WPF的布局.我们知道WinForm的布局主要是采用基于坐标的方式,当窗口内容发生变化时,里面的控件不会随之动态调整,这就造成了一个很不好的用户体验.而WPF为了避免这个缺点,采用了基于 ...

  2. SQL Tuning Health-Check Script (SQLHC)

    1. 纯手工打造 工具:程序员的双手 特点:手写客户端与服务器端验证代码 2. 半手工半自动 工具:jquery.validate(客户端) + DataAnnotations & DataA ...

  3. curl 要么 file_get_contents 获得授权页面的方法的必要性

    今天,需要工作,需要使用 curl / file_get_contents 获得授权的必要性(Authorization)的页面内容.解决后写了这篇文章分享给大家. php curl 扩展,可以在se ...

  4. asp.net mvc实现rest风格返回json

    实现类似:http://localhost:1799/rest/person/1方式返回一个json内容: 在asp.net mvc中新建一个control rest,然后在其中新增方法: publi ...

  5. fastjson经常用法

    首先,JSON究竟是什么? JSON就是一串字符串 仅仅只是元素会使用特定的符号标注. {} 双括号表示对象 [] 中括号表示数组 "" 双引號内是属性或值 : 冒号表示后者是前者 ...

  6. Intelli idea 常用快捷键汇总

    To navigate to the implementation(s) of an abstract method, position the caret at its usage or its n ...

  7. 深和学习导航CSS样式

    一个很容易理解,具体导航栏CSS授课风格 诚奉献给朋友: 原文地址:点击这里.

  8. MLAPP——概率机器学习知识汇总

    <机器学习>课程使用Kevin P. Murphy图书<Machine Learning A Probabilistic Perspective>本英语教材,本书从一个独特的数 ...

  9. The maximum string content length quota (8192) has been exceeded while reading XML data

    原文:The maximum string content length quota (8192) has been exceeded while reading XML data 问题场景:在我们W ...

  10. 解决Gradle minifyEnabled无法找到错误

    Android studio最新版0.9支持proguard minify,shrinkResources ,尝试了下,提示找不到minifyEnabled方法 Error:(29, 0) Gradl ...