logo

mongodbのインストール

[mongodb-org] name=MongoDB Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ gpgcheck=0 enabled=1

yum install mongodb-org

vim /etc/mongod.conf

  • nojournal=true

chkconfig mongod on

service mongod start

事前にDBやCollection(テーブル)を作成しなくてもOKだそうです。無い場合は作成されるようです。

One minute to read

monit

Process 'httpd' status Running monitoring status Monitored pid 16903 parent pid 1 uid 0 effective uid 0 gid 0 uptime 3m children 8 memory 11.4 MB memory total 66.1 MB memory percent 0.3% memory percent total 2.2% cpu percent 0.0% cpu percent total 0.0% port response time 0.003s to [サイトURLがここに表示]:80 type TCP/IP protocol HTTP data collected Wed, 16 Dec 2015 17:40:48 postfix [#le9f0edc]

Process 'httpd' status Not monitored monitoring status Not monitored data collected Wed, 16 Dec 2015 17:13:43 サマリー確認 [#bca0a28a]

2 minutes to read

monitでプロセスの監視と再起動

Process 'httpd' status Running monitoring status Monitored pid 16903 parent pid 1 uid 0 effective uid 0 gid 0 uptime 3m children 8 memory 11.4 MB memory total 66.1 MB memory percent 0.3% memory percent total 2.2% cpu percent 0.0% cpu percent total 0.0% port response time 0.003s to [サイトURLがここに表示]:80 type TCP/IP protocol HTTP data collected Wed, 16 Dec 2015 17:40:48 postfix [#le9f0edc]

One minute to read

motion

One minute to read

MySQL

One minute to read