{"id":806,"date":"2013-06-15T22:41:38","date_gmt":"2013-06-15T13:41:38","guid":{"rendered":"http:\/\/www.nightmare-yk.com\/?p=806"},"modified":"2016-02-24T08:11:23","modified_gmt":"2016-02-23T23:11:23","slug":"node-js-%e7%ac%ac1%e5%bc%be%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"http:\/\/www.nightmare-yk.com\/?p=806","title":{"rendered":"Node.js \u7b2c1\u5f3e(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb)"},"content":{"rendered":"<p>Node.js\u3068\u306f\u3001\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u306eJavaScript\u3067\u3059\u3002\u3072\u3087\u3093\u306a\u3053\u3068\u304b\u3089Node.js\u306b\u8208\u5473\u3092\u6301\u3063\u3066\u3001\u81ea\u5206\u306e\u30b5\u30fc\u30d0\u3067\u3044\u3058\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3061\u306a\u307f\u306bNode.js\u306f\u4eca\u307e\u3067\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3069\u3046\u9055\u3046\u304b\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>\u5f93\u6765\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(PHP\u3084Perl)\u306fApache\u7b49\u306eweb\u30b5\u30fc\u30d0\u3092\u7d4c\u7531\u3057\u3066\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u304c\u6b86\u3069\u3067\u3057\u305f\u3002<br \/>\nNode.js\u306fNode.js\u81ea\u4f53(Node.js\u306b\u542b\u307e\u308c\u308bweb\u30b5\u30fc\u30d0\u30e2\u30b8\u30e5\u30fc\u30eb)\u304c\u76f4\u63a5\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306e\u3084\u308a\u53d6\u308a\u3092\u884c\u3046\u305f\u3081web\u30b5\u30fc\u30d0\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u306a\u304f\u3001Node.js\u306e\u307f\u3067web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f5c\u308c\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png\"><img data-attachment-id=\"811\" data-permalink=\"http:\/\/www.nightmare-yk.com\/?attachment_id=811\" data-orig-file=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?fit=1010%2C606\" data-orig-size=\"1010,606\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"node.js-1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?fit=300%2C180\" data-large-file=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?fit=1010%2C606\" loading=\"lazy\" class=\"aligncenter wp-image-811\" src=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?resize=580%2C348\" alt=\"node.js-1\" width=\"580\" height=\"348\" srcset=\"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?w=1010 1010w, https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?resize=300%2C180 300w, https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/06\/node.js-1.png?resize=500%2C300 500w\" sizes=\"(max-width: 580px) 100vw, 580px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>\u6700\u7d42\u7684\u306b\u4f55\u304b\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u3044\u3044\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u305a\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u65b9\u6cd5\u3092\u30e1\u30e2\u30e1\u30e2\u3006(.. )<\/p>\n<p>&#8230;\u3068\u8a00\u3063\u3066\u3082\u3001\u3044\u305f\u3063\u3066\u7c21\u5358\u3067\u3059\u3002yum\u3067\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 \u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><br \/>\nnode.js\u306e\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre>$ wget http:\/\/nodejs.org\/dist\/node-latest.tar.gz<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>node.js\u3092\u5c55\u958b\u3057\u307e\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre>$ tar zxf node-latest.tar.gz<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>node.js\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre>$ .\/configure\r\n$ make<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3082\u3057\u304b\u3057\u305f\u3089\u3001python\u306e\u30a8\u30e9\u30fc\u3060\u3063\u305f\u308a\u3001glibc\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u969b\u306f\u5408\u308f\u305b\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u6700\u5f8c\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre># make install\r\nmake -C out BUILDTYPE=Release V=1\r\nmake[1]: \u30c7\u30a3\u30ec\u30af\u30c8\u30ea `\/home\/komeyama\/src\/node-v0.10.5\/out' \u306b\u5165\u308a\u307e\u3059\r\nmake[1]: `all' \u306b\u5bfe\u3057\u3066\u884c\u3046\u3079\u304d\u4e8b\u306f\u3042\u308a\u307e\u305b\u3093.\r\nmake[1]: \u30c7\u30a3\u30ec\u30af\u30c8\u30ea `\/home\/komeyama\/src\/node-v0.10.5\/out' \u304b\u3089\u51fa\u307e\u3059\r\nln -fs out\/Release\/node node\r\n\/usr\/bin\/python tools\/install.py install\r\ninstalling \/usr\/local\/bin\/node\r\ninstalling \/usr\/local\/lib\/dtrace\/node.d\r\n:\r\n:<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002\u672c\u5f53\u306b\u7c21\u5358\u3067\u3059\u306d\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre>$ node -v\r\nv0.10.5<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><br \/>\nnode.js\u3092yum\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3046\u305f\u3081\u306b\u306f\u3001epel\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u203b \u3061\u306a\u307f\u306b\u3001CentOS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u306f\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre># wget http:\/\/ftp-srv2.kddilabs.jp\/Linux\/distributions\/fedora\/epel\/6\/x86_64\/epel-release-6-8.noarch.rpm\r\n# rpm -ivh epel-release-6-8.noarch.rpm<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u305d\u306e\u5f8c\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre># yum install nodejs<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u51fa\u529b\u3055\u308c\u308c\u3070\u307e\u30fc\u554f\u984c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<table style=\"table-layout: fixed;\">\n<tbody>\n<tr>\n<td>\n<div style=\"overflow-x: auto;\">\n<pre>$ rpm -qa | grep nodejs\r\n:\r\n:<\/pre>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7b2c2\u5f3e\u306f\u5b9f\u969b\u306b\u52d5\u304b\u3059\u3068\u3053\u308d\u3092\u3084\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305a\u306fHTML\u306e\u51fa\u529b\u304f\u3089\u3044\u3067\u3059\u304b\u306d\u3002<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/www.nightmare-yk.com\/?p=806\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/www.nightmare-yk.com\/?p=806\" ><\/g:plusone><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Node.js\u3068\u306f\u3001\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u306eJavaScript\u3067\u3059\u3002\u3072\u3087\u3093\u306a\u3053\u3068\u304b\u3089Node.js\u306b\u8208\u5473\u3092\u6301\u3063\u3066\u3001\u81ea\u5206\u306e\u30b5\u30fc\u30d0\u3067\u3044\u3058\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u3061\u306a\u307f\u306bNode.js\u306f\u4eca\u307e\u3067\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3069\u3046\u9055\u3046\u304b\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 \u5f93\u6765\u306eweb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3(PHP\u3084Perl)\u306fApache\u7b49\u306ew [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[22,99],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/806"}],"collection":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=806"}],"version-history":[{"count":11,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/806\/revisions"}],"predecessor-version":[{"id":1908,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/806\/revisions\/1908"}],"wp:attachment":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=806"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}