惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
D
DataBreaches.Net
B
Blog RSS Feed
博客园_首页
The GitHub Blog
The GitHub Blog
I
InfoQ
L
LangChain Blog
G
Google Developers Blog
M
MIT News - Artificial intelligence
美团技术团队
腾讯CDC
V
Visual Studio Blog
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗

博客园 - 大洋

在asp.net 项目的bin目录中使用子目录 MVC项目引用备注 OAuth相关备注 手动安装windows的磁盘清理工具 CentOS 笔记 MongoDb 判断字段长度比较好的方法 MongoDb 出现配置服务不同步的处理 Exiting an iOS App with Xamarin Silverlight 离线安装包 批量修改WORD表格属性 搭建高可用mongodb集群(四)—— 分片 如何稳定地使用 Google 搜索https://encrypted.google.com/ widows 2008 同步时间命令 MySql 初始化权限脚本 [转] windows下Svn服务器之必须提交修改注释篇 给编译好的DLL增加签名 Anychart 破解备注 Javascript 日期时间格式正则 MongoDB C# 操作备忘
在CentOS上安装 MongoDB
大洋 · 2017-06-28 · via 博客园 - 大洋

安装是在线安装方式,因此必须先保证能正常上网。

  1. 安装mongodb,官方的安装文档,是在线安装方式:
    https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/#uninstall-mongodb-community-edition
  2.  根据以上安装成功后,配置防火墙端口并重启防火墙:
    firewall-cmd --permanent --add-port=27017/tcp
    systemctl restart firewalld.service
  3. 登陆mongo后有两个警告提示:
    WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
    WARNING: /sys/kernel/mm/transparent_hugepage/drag is 'always'.
  4. 通过以下文档配置后,去掉警告提示
    https://docs.mongodb.com/manual/tutorial/transparent-huge-pages/#transparent-huge-pages-thp-settings

mongodb安装成功,通过客户端连接成功。

posted @ 2017-06-28 14:23  大洋  阅读(174)  评论()    收藏  举报