{"id":1762,"date":"2014-07-09T18:53:49","date_gmt":"2014-07-09T09:53:49","guid":{"rendered":"http:\/\/taitan916.info\/blog\/?p=1762"},"modified":"2024-01-24T15:30:32","modified_gmt":"2024-01-24T06:30:32","slug":"post-1762","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/1762","title":{"rendered":"ServersMan\u306eVPS\u306bRuby on Rails\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Ruby on Rails\u3092\u5c0e\u5165\u3057\u305f\u969b\u306e\u30e1\u30e2\u3002Cens OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f6.3\u306764bit\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>\u5fc5\u8981\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">yum install zlib-devel openssl-devel sqlite-devel\r\ncurl -L https:\/\/get.rvm.io | bash -s stable\r\nsource \/etc\/profile.d\/rvm.sh\r\nrvm install 1.9.3\r\ngem install --no-ri --no-rdoc sqlite3\r\nrpm --import https:\/\/fedoraproject.org\/static\/0608B895.txt\r\nrpm -Uvh http:\/\/download-i2.fedoraproject.org\/pub\/epel\/6\/i386\/epel-release-6-8.noarch.rpm\r\nyum install nodejs npm --enablerepo=epel\r\nyum install npm --enablerepo=epel\r\ngem install rails<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>iptable\u30673000\u756a\u30dd\u30fc\u30c8\u306e\u958b\u653e<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">vi \/etc\/sysconfig\/iptables\r\n-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT\r\nservice iptables restart<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>\u4e00\u65e6\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">reboot<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>Ruby on Rails\u304c\u3061\u3083\u3093\u3068\u5165\u3063\u305f\u304b\u78ba\u8a8d<\/strong><\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">rails -v<\/pre>\n<p>&nbsp;<\/p>\n<h2><strong>\u53c2\u8003\u30b5\u30a4\u30c8<\/strong><\/h2>\n<p><a href=\"http:\/\/dotinstall.com\/lessons\/basic_sakura_vps\/\" target=\"_blank\" rel=\"noopener\">http:\/\/dotinstall.com\/lessons\/basic_sakura_vps\/<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/joyent\/node\/wiki\/Installing-Node.js-via-package-manager\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/joyent\/node\/wiki\/Installing-Node.js-via-package-manager<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ruby on Rails\u3092\u5c0e\u5165\u3057\u305f\u969b\u306e\u30e1\u30e2\u3002Cens OS\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f6.3 ... <\/p>\n","protected":false},"author":1,"featured_media":1768,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[46,42],"tags":[],"class_list":["post-1762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps","category-ruby"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/1762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=1762"}],"version-history":[{"count":2,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/1762\/revisions"}],"predecessor-version":[{"id":4325,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/1762\/revisions\/4325"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1768"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=1762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=1762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=1762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}