{"id":1094,"date":"2013-03-18T04:03:55","date_gmt":"2013-03-17T19:03:55","guid":{"rendered":"http:\/\/helloidea.org\/?p=1094"},"modified":"2014-02-22T22:17:54","modified_gmt":"2014-02-22T13:17:54","slug":"raspberry-pi-%e3%81%a7-mongodb","status":"publish","type":"post","link":"https:\/\/helloidea.org\/index.php\/archives\/1094.html","title":{"rendered":"Raspberry Pi \u3067 mongodb"},"content":{"rendered":"<p><a href=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/mongoDB.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/mongoDB.png\" alt=\"mongoDB\" width=\"175\" height=\"54\" class=\"aligncenter size-full wp-image-1205\" \/><\/a><br \/>\nmongodb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u51c4\u304f\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u30d0\u30a4\u30ca\u30ea\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059<\/p>\n<div>\u30b3\u30f3\u30d1\u30a4\u30eb\u4e2d\u306bSD\u30ab\u30fc\u30c9(4G)\u306e\u5bb9\u91cf\u304c\u8db3\u308a\u306a\u304f\u306a\u308b\u3068\u304b\u3042\u308a\u307e\u3057\u305f<\/div>\n<div>\n<div>\u30cd\u30c3\u30c8\u3067mongodb\u306e\u4f7f\u3044\u65b9\u3092\u8abf\u3079\u308b\u3068\u3001Raspberry Pi[ARMv6]\u7528\u306b\u7528\u610f\u3055\u308c\u305f\u3001<\/div>\n<div>&#8220;mongo-nonx86&#8221; \u3068 &#8220;mongopi&#8221; \u306e\uff12\u3064\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u304c\u00a0mongopi\u306e\u65b9\u304c\u65b0\u3057\u3044\u3067\u3059(MongoDB 2.1.1)<\/div>\n<\/div>\n<div><strong><span class=\"hi-c-orange\">\u30b3\u30f3\u30d1\u30a4\u30eb\u65b9\u6cd5<\/span><\/strong><\/div>\n<div><a title=\"https:\/\/github.com\/RickP\/mongopi\" href=\"https:\/\/github.com\/RickP\/mongopi\">https:\/\/github.com\/RickP\/mongopi<\/a><\/div>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get install git-core build-essential scons libpcre++-dev xulrunner-dev libboost-dev libboost-program-options-dev libboost-thread-dev libboost-filesystem-dev\r\n$ git clone git:\/\/github.com\/RickP\/mongopi.git\r\n$ cd mongopi\r\n$ scons\r\n$ sudo scons --prefix=\/opt\/mongo install\r\n<\/pre>\n<div>\n<div><span class=\"hi-c-orange\"><strong>\u30c7\u30fc\u30e2\u30f3\u306e\u7d42\u4e86\u65b9\u6cd5<\/strong><\/span><\/div>\n<div>mongod \u306e\u8d77\u52d5\u65b9\u6cd5\u306f &#8211;dbpath \u30aa\u30d7\u30b7\u30e7\u30f3\u3060\u3051\u3067\u8d77\u52d5\u3057\u307e\u3059\u304c\u3001<\/div>\n<div>\u30c7\u30fc\u30e2\u30f3\u3067\u8d77\u52d5\u3057\u3066\u3044\u308b\u5834\u5408\u306f kill -2 \u304b kill -15 \u3067\u7d42\u4e86\u3055\u305b\u307e\u3059<\/div>\n<div>\u4e00\u756a\u4e0b\u8fba\u308a &#8220;Sending a UNIX INT or TERM Signal&#8221;<\/div>\n<div><a title=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/manage-mongodb-processes\/\" href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/manage-mongodb-processes\/\">http:\/\/docs.mongodb.org\/manual\/tutorial\/manage-mongodb-processes\/<\/a><\/div>\n<p>\u30d7\u30ed\u30bb\u30b9ID\u306e\u63a2\u3057\u65b9\u306f\u3053\u3093\u306a\u611f\u3058\u3067<a href=\"http:\/\/stackoverflow.com\/questions\/11774887\/how-to-stop-mongo-db-in-one-command\">\u7d39\u4ecb\u3055\u308c\u3066\u307e\u3059<\/a><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nps -ef | grep 'mongod' | grep -v grep | awk '{print $2}'\r\n<\/pre>\n<\/div>\n<div><span class=\"hi-c-orange\"><strong>binary<\/strong><\/span><\/div>\n<div><a title=\"mongopi2.1.1.tar.gz\" href=\"http:\/\/helloidea.org\/wp-content\/uploads\/2013\/03\/mongopi2.1.1.tar.gz\">mongopi2.1.1.tar.gz<\/a><\/p>\n<div>\u203b \/opt\/mongo\/bin\/\u306e\u4e2d\u8eab\u3067\u306f\u306a\u304f strip\u7d50\u679c\u3067\u3059<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>mongodb\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u51c4\u304f\u6642\u9593\u304c\u304b\u304b\u3063\u305f\u306e\u3067\u30d0\u30a4\u30ca\u30ea\u3092\u7f6e\u3044\u3066\u304a\u304d\u307e\u3059 \u30b3\u30f3\u30d1\u30a4\u30eb\u4e2d\u306bSD\u30ab\u30fc\u30c9(4G)\u306e\u5bb9\u91cf\u304c\u8db3\u308a\u306a\u304f\u306a\u308b\u3068\u304b\u3042\u308a\u307e\u3057\u305f \u30cd\u30c3\u30c8\u3067mongodb\u306e\u4f7f\u3044\u65b9\u3092\u8abf\u3079\u308b\u3068\u3001Raspberry Pi[ARMv \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-1094","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/comments?post=1094"}],"version-history":[{"count":26,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":1248,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1094\/revisions\/1248"}],"wp:attachment":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media?parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/categories?post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/tags?post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}