RHEL / CentOS 7 install MongoDB
来源:互联网 发布:java 静态方法 泛型 编辑:程序博客网 时间:2024/06/06 02:29
1. 加入 MongoDB Repository
建立檔案 /etc/yum.repos.d/mongodb.repo
根據系統類型加入以下內容:
3. 啟動 MongoDB 及設定開機自動啟動
建立檔案 /etc/yum.repos.d/mongodb.repo
根據系統類型加入以下內容:
64-Bit
[mongodb]name=MongoDB Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/gpgcheck=0enabled=1
32-Bit
[mongodb]name=MongoDB Repositorybaseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/gpgcheck=0enabled=1
上面建立了 MongoDB Repository 後, 用 YUM 安裝 MongoDB 就會很簡單:
yum -y install mongodb-org mongodb-org-server
3. 啟動 MongoDB 及設定開機自動啟動
systemctl start mongod
啟動 MongoDB 後, 可以用以下指令檢查 MongoDB 正在執行:
ps auxw | grep mongodsystemctl status mongod
如果一切正常, 現在可以用 mongo 客戶端連接到 MongoDB Server, 只要輸入以下指令就可以:
mongo
0 0
- RHEL / CentOS 7 install MongoDB
- Install xrdp on CentOS 7 / RHEL 7
- Install EPEL repo on CentOS 7 and RHEL 7
- Install KVM (QEMU) on CentOS 7 / RHEL 7
- Install KVM (QEMU) on CentOS 7 / RHEL 7
- Install MySQL Server 5.6 on CentOS 7 / RHEL 7
- How to Install PHP 7 on CentOS/RHEL 7.1 & 6.7
- Install ProcessMaker 3.1 or 3.2 in CentOS/RHEL 7
- Rhel 7 nfs install
- Install Cockpit on Fedora/CentOS/RHEL
- How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
- Install and use CentOS 7 or RHEL 7 as KVM virtualization host
- Install Adobe Reader on Fedora 20/19, CentOS/RHEL 7/6.5/5.10
- How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- How to Install Tomcat 7.0.68 Server on CentOS/RHEL 7/6/5
- How to Install Subversion (SVN) 1.8.15 on CentOS/RHEL 7/6/5
- How to Install PostgreSQL 9.5 on CentOS/RHEL 7/6/5 and Fedora 23/22
- 操作系统分类
- 4816: [Sdoi2017]数字表格
- Android Studio插件bug终结者——findbugs精解
- redis3.2.8安装和配置,及常用命令简介
- Codeforces 796D Police Stations (bfs+思维)
- RHEL / CentOS 7 install MongoDB
- 圆环形TextView+旋转动画
- Skynet服务器框架(三) Mac OS X环境安装
- java io 文件的拷贝2
- 编写一个lcd驱动并移植为platform_driver(待续)
- 二叉树的最小深度
- eclipse 在线安装反编译插件
- Markdown自用手册
- HaBer管理