by shigemk2

当面は技術的なことしか書かない

CentOSでmongoを入れるときの注意

Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux — MongoDB Manual 2.6.1

公式にはこんなことが書いてある。

You must configure SELinux to allow MongoDB to start on Fedora systems. Administrators have two options: enable access to the relevant ports (e.g. 27017) for SELinux. See Configuration Options for more information on MongoDB’s default ports. disable SELinux entirely. This requires a system reboot and may have larger implications for your deployment.

SELinux - Wikipedia

Linuxのカーネルに強制アクセス制御 (MAC)機能を付加するモジュールの名称

いいのかこれで。

$ getenforce
$ setenforce 0
# reboot