{"id":5226,"date":"2014-03-23T17:13:08","date_gmt":"2014-03-23T08:13:08","guid":{"rendered":"http:\/\/www.webcyou.com\/?p=5226"},"modified":"2014-03-23T17:17:46","modified_gmt":"2014-03-23T08:17:46","slug":"%e3%81%95%e3%81%8f%e3%82%89vps%ef%bc%88%e4%bb%ae%e6%83%b3%e5%b0%82%e7%94%a8%e3%82%b5%e3%83%bc%e3%83%90%ef%bc%89%e3%81%ae%e8%a8%ad%e5%ae%9a%e6%96%b9%e6%b3%95-%e3%81%9d%e3%81%ae2-virtualhostphpmysqln","status":"publish","type":"post","link":"https:\/\/www.webcyou.com\/?p=5226","title":{"rendered":"\u3055\u304f\u3089VPS\uff08\u4eee\u60f3\u5c02\u7528\u30b5\u30fc\u30d0\uff09\u306e\u8a2d\u5b9a\u65b9\u6cd5 \u305d\u306e2 VirtualHost,PHP,MySQL,node\u8a2d\u5b9a"},"content":{"rendered":"<p>\u524d\u56de\u306e<a href=\"https:\/\/www.webcyou.com\/?p=5197\">\u3055\u304f\u3089VPS\uff08\u4eee\u60f3\u5c02\u7528\u30b5\u30fc\u30d0\uff09\u306e\u8a2d\u5b9a\u65b9\u6cd5<\/a>\u306e\u7d9a\u304d\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>VirtualHost\u8a2d\u5b9a<\/h4>\n<p>\u307e\u305a\u306f\u3001VirtualHost\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3068\u306f\u3001Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u306e\u6a5f\u80fd\u306e\u4e00\u3064\u3067\u30011\u53f0\u306eWeb\u30b5\u30fc\u30d0\u3067\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u306eWeb\u30b5\u30a4\u30c8\u3092\u904b\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>1\u3064\u306eIP\u30a2\u30c9\u30ec\u30b9\u306b\u8907\u6570\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u306b\u3088\u308a\u30011\u53f0\u306eWeb\u30b5\u30fc\u30d0\u3067\u8907\u6570\u306eWeb\u30b5\u30a4\u30c8\u3092\u540c\u6642\u306b\u904b\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3092\u5229\u7528\u3059\u308c\u3070\u4f55\u53f0\u3082\u30b5\u30fc\u30d0\u3092\u7528\u610f\u305b\u305a\u306b\u6e08\u307f\u307e\u3059\u3002<\/p>\n<p>\u300cdev.example.com\u300d\u3068\u3044\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mkdir -p \/var\/www\/dev.example.com\/public_html\/<\/pre>\n<p>\u4f5c\u696d\u8005\u306b\u6a29\u9650\u3092\u4ed8\u4e0e\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">chown -R webcyou:webcyou \/var\/www\/dev.example.com\/public_html\/<\/pre>\n<p>\/etc\/httpd\/conf.d\/\u5185\u306b\u300cdev.example.com.conf\u300d\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\/etc\/httpd\/conf.d\/\u5185\u306b .conf\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u53c2\u7167\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vim \/etc\/httpd\/conf.d\/dev.example.com.conf<\/pre>\n<p>\u4ee5\u4e0b\u306e\u69d8\u306a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8a18\u8ff0\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;VirtualHost *:80&gt;\r\n   ServerName dev.example.com\r\n   DocumentRoot &quot;\/var\/www\/dev.example.com\/public_html&quot;\r\n   DirectoryIndex index.html index.php\r\n   ErrorLog \/var\/log\/httpd\/dev.example.com_error_log\r\n   CustomLog \/var\/log\/httpd\/dev.example.com_access_log combined\r\n   AddDefaultCharset UTF-8\r\n   &lt;Directory &quot;\/var\/www\/dev.example.com\/public_html&quot;&gt;\r\n       Allow from all\r\n   &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>\/etc\/httpd\/conf\/\u5185\u306e httpd.conf \u3092\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vim \/etc\/httpd\/conf\/httpd.conf<\/pre>\n<p>\/NameVirtualHost \u3067\u691c\u7d22\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">#NameVirtualHost *:80<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">NameVirtualHost *:80<\/pre>\n<p>syntax error \u7b49\u304c\u7121\u3044\u304btest\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">service httpd configtest<\/pre>\n<p>\u554f\u984c\u7121\u3051\u308c\u3070httpd\u3092\u518d\u8d77\u52d5\u3057\u3001\u4fee\u6b63\u5185\u5bb9\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">service httpd restart<\/pre>\n<p>\u4f55\u3067\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001test\u3068\u3057\u3066html\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vim \/var\/www\/dev.example.com\/public_html\/index.html<\/pre>\n<p>\u8a2d\u5b9a\u30d1\u30bf\u30fc\u30f3\u3092\u4fdd\u5b58\u3067\u304d\u308bHosts\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u63db\u3048mac\u7528\u30a2\u30d7\u30ea<strong>\u300cHoster\u300d<\/strong>\u3092\u4f7f\u3063\u3066host\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h5>Hoster<\/h5>\n<p><a title=\"Hoster \u516c\u5f0f\u30da\u30fc\u30b8\" href=\"http:\/\/www.redwinder.com\/macapp\/hoster\/\" target=\"_blank\">Hoster \u516c\u5f0f\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a><\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e61eef1bfbc7e44e9fa34b8455a2c661.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e61eef1bfbc7e44e9fa34b8455a2c661.png\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-23 5.11.38\" width=\"114\" height=\"132\" class=\"alignnone  wp-image-5234\" \/><\/a><\/p>\n<p>\u53f3\u306eDownload\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/680bc2dac3035ef50f94a0402107a127.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/680bc2dac3035ef50f94a0402107a127.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-23 5.11.46\" width=\"137\" height=\"113\" class=\"alignnone size-full wp-image-5235\" \/><\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001\u30db\u30b9\u30c8\u306e\u8ffd\u52a0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u69d8\u306a\u611f\u3058\u3067\u3001<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e002ebc2357796e4a747d89dca4a96d6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/e002ebc2357796e4a747d89dca4a96d6.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-23 16.08.05\" width=\"271\" height=\"167\" class=\"alignnone size-full wp-image-5238\" \/><\/a><\/p>\n<p>\u7dd1\u30e9\u30f3\u30d7\u304c\u9069\u5fdc\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u3067\u3059\u3002\u7dd1\u8272\u3067\u306a\u3044\u5834\u5408\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/f5b85058db8ea44bf7dff675ec9b19e7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/f5b85058db8ea44bf7dff675ec9b19e7.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-23 0.51.06\" width=\"118\" height=\"62\" class=\"alignnone size-full wp-image-5233\" \/><\/a><\/p>\n<p>\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3002\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3057\u305fURL\u3092\u53e9\u3044\u3066\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">http:\/\/dev.example.com\/<\/pre>\n<\/p>\n<p>\u8ffd\u52a0\u3057\u305fhtml\u304c\u8868\u793a\u51fa\u6765\u308c\u3070OK\uff01<\/p>\n<p><a href=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d6da3d98528b33090de707f736c950e8.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.webcyou.com\/wp-content\/uploads\/d6da3d98528b33090de707f736c950e8.png\" alt=\"\" title=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2014-03-23 5.09.13\" width=\"255\" height=\"43\" class=\"alignnone size-full wp-image-5232\" \/><\/a><\/p>\n<h4>PHP,MySQL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>PHP\u3068MySQL\u306e\u8a2d\u5b9a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e00\u901a\u308a\u3001yum\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">yum install php php-devel php-mysql php-gd php-mbstring<\/pre>\n<p>php.ini\u3092\u4fee\u6b63\u3059\u308b\u305f\u3081\u3001\/etc\/php.ini.org\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u3068\u308a\u3001<\/p>\n<p>\/etc\/php.ini\u3092\u4fee\u6b63\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">cp \/etc\/php.ini \/etc\/php.ini.org<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vim \/etc\/php.ini<\/pre>\n<p>error_log\u3092\u4fee\u6b63\u3059\u308b\u306e\u3067 \/error_log\u3067\u691c\u7d22\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/error_log<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;error_log\u00a0=\u00a0php_errors.log<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">error_log\u00a0=\u00a0var\/log\/php_errors.log<\/pre>\n<p>\u65e5\u672c\u8a9e\u8a2d\u5b9a\u3002\/mbstring\u3067\u691c\u7d22\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/mbstring<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;mbstring.language = Japanese<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mbstring.language = Japanese<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;mbstring.internal_encoding =\u00a0EUC-JP<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mbstring.internal_encoding =\u00a0UTF-8<\/pre>\n<p>\/http_input\u3067\u691c\u7d22\u3002\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;mbstring.http_input\u00a0= auto<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mbstring.http_input\u00a0= auto<\/pre>\n<p>mbstring.detect_order \u3082auto\u306b\u3057\u307e\u3059\u306e\u3067\u3001\/detect_order\u3067\u691c\u7d22\u3002\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3092\u5916\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/detect_order<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;mbstring.detect_order\u00a0= auto<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mbstring.detect_order\u00a0= auto<\/pre>\n<p>\/expose_php\u3067\u691c\u7d22\u3002On\u3092Off\u306b\u5909\u66f4\u3002<\/p>\n<p><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/expose_php<\/pre>\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">expose_php\u00a0=\u00a0On<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">expose_php\u00a0=\u00a0Off<\/pre>\n<p>timezone\u306e\u8a2d\u5b9a\u3082\u8ffd\u52a0\u3002\/timezone\u3067\u691c\u7d22\u3057\u3001date.timezone\u00a0=\u00a0Asia\/Tokyo \u306b\u5909\u66f4\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\/timezone<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">;date.timezone\u00a0=<\/pre>\n<p>\u2193<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">date.timezone\u00a0=\u00a0Asia\/Tokyo<\/pre>\n<p>\u3053\u3053\u307e\u3067\u4fee\u6b63\u3057\u305f\u3089\u3001\u4fdd\u5b58\u7d42\u4e86\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">:wq<\/pre>\n<p>httpd\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">service httpd restart<\/pre>\n<h5>MySQL \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>\u7d9a\u3044\u3066\u3001MySQL\u3092yum\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">yum install mysql-server<\/pre>\n<p>\u3053\u3061\u3089\u3082\u540c\u69d8\u3001mycnf\u3092\u7de8\u96c6\u3057\u3066\u3044\u304f\u306e\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3057\u4fee\u6b63\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">cp \/etc\/my.cnf \/etc\/my.cnf.org<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">vim\u00a0\/etc\/my.cnf<\/pre>\n<p>\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">character_set_server=utf8\r\ndefault-storage-engine=InnoDB\r\ninnodb_file_per_table\r\n&#x5B;mysql]\r\ndefault-character-set=utf8\r\n&#x5B;mysqldump]\r\ndefault-character-set=utf8<\/pre>\n<p>\u8ffd\u52a0\u3057\u305f\u3089\u3001\u4fdd\u5b58\u7d42\u4e86\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">:wq<\/pre>\n<p>mysqld\u3092\u518d\u8d77\u52d5\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">service mysqld start<\/pre>\n<p>MySQL\u306e\u521d\u56de\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u3059\u308b\u3068\u3088\u3044\u30b3\u30de\u30f3\u30c9mysql_secure_installation \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>MySQL Server\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u521d\u671f\u8a2d\u5b9a\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u7518\u3044\u8a2d\u5b9a\u3068\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u7c21\u5358\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u30fbroot\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4<\/strong><\/p>\n<p><strong>\u30fbroot\u306e\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u304b\u3089\u306e\u30ed\u30b0\u30a4\u30f3\u7981\u6b62<\/strong><\/p>\n<p><strong>\u30fb\u533f\u540d\u30e6\u30fc\u30b6\u306e\u524a\u9664<\/strong><\/p>\n<p><strong>\u30fbtest\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u524a\u9664<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql_secure_installation<\/pre>\n<p>\u4efb\u610f\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3001\u5f8c\u306f y \u30ea\u30bf\u30fc\u30f3\u3067\u5927\u4e08\u592b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><p>MySQL\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u306echkconfig mysqld on\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">chkconfig mysqld on<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u3089\u3001\u00a0mysql -u root -p\u3067\u30ed\u30b0\u30a4\u30f3\u51fa\u6765\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">mysql -u root -p<\/pre>\n<h4>rvm sqlite Ruby on Rails node.js etc..\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>\u7d9a\u3044\u3066\u3001node.js\u3084ruby\u3001sqlite\u3092yum\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304f\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>Ruby on Rails \u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u306e\u3067\u3001ruby\u306e\u6700\u65b0\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u3001rvm\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">yum install zlib-devel openssl-devel sqlite-devel<\/pre>\n<p>\u6a29\u9650\u304c\u306a\u3044\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001sudo\u30b3\u30e1\u30f3\u30c9\u3067\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo\u00a0yum install zlib-devel openssl-devel sqlite-devel<\/pre>\n<p>rvm\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">curl -L\u00a0https:\/\/get.rvm.io\u00a0| bash -s stable<\/pre>\n<p>rvm\u3092\u5b9f\u884c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">source \/home\/webcyou\/.rvm\/scripts\/rvm<\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057rvm\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">rvm install 1.9.3<\/pre>\n<p>ruby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u30011.9.3\u3067\u3042\u308c\u3070\u6210\u529f\u3002<\/p>\n<p>\uff08\u78ba\u8a8d\u53d6\u308c\u306a\u3044\u5834\u5408\u306f\u4e00\u65e6\u3001VPS\u304b\u3089\u629c\u3051\u3066\u518d\u5ea6\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u826f\u3044\u304b\u3082\u3067\u3059\u3002\uff09<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">ruby -v<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">gem -v<\/pre>\n<p>sqlite\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">gem install --no-ri --no-rdoc sqlite3<\/pre>\n<p>&#8211;no-ri &#8211;no-rdoc\u30aa\u30d7\u30b7\u30e7\u30f3\u4ed8\u4e0e\u3067\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u306a\u3044\u69d8\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<h5>node.js \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>\u7d9a\u3044\u3066\u3001node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306f\u4ee5\u4e0b\u304b\u3089\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><strong>node.js<\/strong><\/p>\n<p><a href=\"http:\/\/nodejs.org\/\">http:\/\/nodejs.org<\/a><\/p>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u306e\u30ea\u30f3\u30af\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306bCentOS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u8a18\u8f09\u3055\u308c\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/joyent\/node\/wiki\/Installing-Node.js-via-package-manager#rhelcentosscientific-linux-6\">https:\/\/github.com\/joyent\/node\/wiki\/Installing-Node.js-via-package-manager#rhelcentosscientific-linux-6<\/a><\/p>\n<p><strong>RHEL\/CentOS\/Scientific Linux 6<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">yum repolist\r\nrpm -Uvh http:\/\/download-i2.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\nsudo yum install nodejs npm --enablerepo=epel\r\nsudo yum install npm --enablerepo=epel<\/pre>\n<p>\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u3051\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">node -v<\/pre>\n<h5>Ruby on Rails \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n<p>Ruby on Rails\u306fgem\u30b3\u30de\u30f3\u30c9\u3092\u7528\u3044\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">gem install rails<\/pre>\n<p>Ruby on Rails\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u3001\u30dd\u30fc\u30c83000\u756a\u3092\u4f7f\u7528\u3059\u308b\u70ba\u30013000\u756a\u306e\u30dd\u30fc\u30c8\u3092\u5229\u7528\u51fa\u6765\u308b\u3088\u3046\u306b \/etc\/sysconfig\/iptables \u306b\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo vim \/etc\/sysconfig\/iptables<\/pre>\n<p>\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057 iptables\u3092\u518d\u8d77\u52d5\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">-A SERVICES -p tcp --dport 3000 -j ACCEPT<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">sudo service iptables restart<\/pre>\n<p>rails\u30b3\u30de\u30f3\u30c9\u3067app\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u751f\u6210\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">rails new apptest<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">cd apptest<\/pre>\n<p>3000\u756a\u30dd\u30fc\u30c8\u3092\u5229\u7528\u3057\u305f rails server\u304c\u8d77\u52d5\u3059\u308b\u304b\u78ba\u8a8d\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">rails server<\/pre>\n<p>\u3068\u3044\u3063\u305f\u611f\u3058\u306b\u3001\u300c\u3055\u304f\u3089VPS\u300d\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3067\u3057\u305f\u3002\u3067\u306f\u3067\u306f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u3055\u304f\u3089VPS\uff08\u4eee\u60f3\u5c02\u7528\u30b5\u30fc\u30d0\uff09\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306e\u7d9a\u304d\u3068\u306a\u308a\u307e\u3059\u3002 VirtualHost\u8a2d\u5b9a \u307e\u305a\u306f\u3001VirtualHost\uff08\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\uff09\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002 \u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3068\u306f\u3001Web\u30b5\u30fc\u30d0\u30bd\u30d5\u30c8\u306e\u6a5f\u80fd\u306e\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[59,107,180,173,150,161,44,45,39,78,114,118],"class_list":{"0":"post-5226","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-tool","7":"tag-android-sdk","8":"tag-mamp","9":"tag-mysql","10":"tag-php","11":"tag-vagrant","12":"tag-vps","13":"tag-web","15":"tag-39","16":"tag-78","17":"tag-114","18":"tag-118"},"_links":{"self":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5226"}],"version-history":[{"count":13,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5226\/revisions"}],"predecessor-version":[{"id":5246,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=\/wp\/v2\/posts\/5226\/revisions\/5246"}],"wp:attachment":[{"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcyou.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}