{"id":1238,"date":"2019-06-25T10:52:53","date_gmt":"2019-06-25T01:52:53","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=1238"},"modified":"2019-06-25T10:52:53","modified_gmt":"2019-06-25T01:52:53","slug":"post-1238","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2019\/06\/25\/post-1238\/","title":{"rendered":"Laravel\uff1aLinax\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<h2>Laravel\uff1aLinax\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u308b\u65b9\u6cd5<\/h2>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u3060\u3044\u3076\u51fa\u6765\u4e0a\u304c\u308a\u3001API\u306e\u60c5\u5831\u53d6\u5f97\u3084\u3089\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084\u3089\u306e\u30d1\u30fc\u30c8\u3092\u66f8\u3044\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3002<br \/>\n\u3053\u308c\u3089\u306e\u30d1\u30fc\u30c4\u3063\u3066\u66f8\u304d\u65b9\u9593\u9055\u3048\u3066\u30e1\u30e2\u30ea\u4f7f\u3044\u307e\u304f\u3063\u3066\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u73fe\u8c61\u3092\u6bce\u65e5\u30af\u30ea\u30a2\u3057\u3088\u3046\u3068Cron\u306b\u5b9a\u6642Reboot\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3057\u305f\u3089Laravel\u304c\u8d77\u52d5\u3057\u3066\u3053\u306a\u3044\uff01<\/p>\n<p>\u305d\u308a\u3083\u306d\u3001\u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a\u3057\u3066\u306a\u3044\u304b\u3089\u5f53\u305f\u308a\u524d\u306a\u3093\u3067\u3059\u3051\u3069...\u3002<br \/>\n\u3068\u8a00\u3046\u4e8b\u3067\u3001Laravel\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u306e\u5099\u5fd8\u9332\u3067\u3059\u3002<br \/>\n\u203bPython\u3082\u540c\u3058\u5834\u6240\u306b\u8a18\u8f09\u3059\u308c\u3070\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u6642\u306e\u81ea\u52d5\u8d77\u52d5\u3092\u6307\u793a\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u8a2d\u5b9a\u5834\u6240\u306f \/etc\/rc .local<\/h3>\n<p>\u66f8\u304d\u8fbc\u3080\u305f\u3081\u306b\u306froot\u6a29\u9650\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001sudo\u3067vi\u3092\u7acb\u3061\u4e0a\u3052\u307e\u3059\u3002<\/p>\n<div class=\"borderBox\">$ sudo vi \/etc\/rc.local<\/div>\n<pre class=\"lang:default decode:true\">#!\/bin\/sh\r\n#\r\n# This script will be executed *after* all the other init scripts.\r\n# You can put your own initialization stuff in here if you don't\r\n# want to do the full Sys V style init stuff.\r\n\r\ntouch \/var\/lock\/subsys\/local\r\nsetterm -blank<\/pre>\n<p>\u3053\u3093\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3002<\/p>\n<p>\u4f55\u3082\u8a18\u8f09\u3055\u308c\u3066\u306a\u3044\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u305f\u5834\u5408\u3001\u8aad\u307f\u8fbc\u3080\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u9593\u9055\u3048\u3066\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070 sudo vi \/etc.rc.local \u306b\u306a\u3063\u3066\u308b\u3068\u304b\u3002<\/p>\n<h3>\u8a18\u8f09\u3059\u308b\u5185\u5bb9\u306fSSH\u304b\u3089\u8d77\u52d5\u3059\u308b\u6642\u3068\u540c\u3058<\/h3>\n<p>\u300cvi\u7acb\u3061\u4e0a\u3052\u3066\u3082\u3069\u3046\u66f8\u3051\u3070\u3044\u3044\u304b\u89e3\u3089\u306a\u3044\u3002\u300d<\/p>\n<p>\u5b89\u5fc3\u3057\u3066\u304f\u3060\u3055\u3044SSH\u3067\u6307\u793a\u3059\u308b\u5185\u5bb9\u3068\u5168\u304f\u540c\u3058\u3067\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>cd \u3067Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5165\u3063\u305f\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3066\u3001artisan server \u3067\u8d77\u52d5\u3055\u305b\u308b\u3044\u3064\u3082\u306e\u30a2\u30ec\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">#!\/bin\/sh\r\n#\r\n# This script will be executed *after* all the other init scripts.\r\n# You can put your own initialization stuff in here if you don't\r\n# want to do the full Sys V style init stuff.\r\n\r\ntouch \/var\/lock\/subsys\/local\r\nsetterm -blank 0\r\n\r\n#Laravel Restart \u203b\u8ffd\u52a0\u3057\u305f\u9805\u76ee\r\ncd \/usr\/local\/~~LaravelProject\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0~~\r\nnohup php artisan serve --host 0.0.0.0 &gt; out.log 2&gt; err.log &lt; \/dev\/null &amp;cd<\/pre>\n<p>vi\u306f\u3010i\u30dc\u30bf\u30f3\u3011\u3092\u62bc\u3059\u3068\u7de8\u96c6\u753b\u9762(INSERT)\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<br \/>\n\u7d42\u4e86\u3059\u308b\u6642\u306f\u307e\u305a\u3010Esc\u30dc\u30bf\u30f3\u3011\u3092\u62bc\u3057\u3066\u7de8\u96c6\u753b\u9762\u304b\u3089\u629c\u3051\u307e\u3059\u3002<br \/>\n\u6b21\u306b\u3010\uff1a\uff57\uff51\u3011\u3092\u8a18\u8f09\u3001\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3059\u3068\u7de8\u96c6\u3092\u4fdd\u5b58\u3057\u3066vi\u3092\u7d42\u4e86\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u77e5\u3063\u3066\u3057\u307e\u3048\u3070\u8d85\u7c21\u5358\u3002<br \/>\n\u77e5\u3089\u306a\u3044\u3068\u3044\u3064\u307e\u3067\u3082\u30e2\u30e4\u30e2\u30e4\u3068\u3044\u3046\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3002<\/p>\n<p>\u4ed5\u639b\u3051\u3061\u3083\u3046\u3068\u307b\u3093\u3068\u697d\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\uff1aLinax\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u8d77\u52d5\u3055\u305b\u308b\u65b9\u6cd5 \u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u3060\u3044\u3076\u51fa\u6765\u4e0a\u304c\u308a\u3001API\u306e\u60c5\u5831\u53d6\u5f97\u3084\u3089\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3084\u3089\u306e\u30d1\u30fc\u30c8\u3092\u66f8\u3044\u3066\u3044\u308b\u4eca\u65e5\u3053\u306e\u9803\u3002 \u3053\u308c\u3089\u306e\u30d1\u30fc\u30c4\u3063\u3066\u66f8\u304d\u65b9\u9593\u9055\u3048\u3066\u30e1\u30e2\u30ea\u4f7f\u3044\u307e\u304f\u3063\u3066\u305f\u308a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":265,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_lightning_design_setting":[],"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[75],"tags":[383,153,136,384,58,45,385],"class_list":["post-1238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code-of-serverside","tag-conte","tag-laravel","tag-linax","tag-web","tag-58","tag-45","tag-385"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/08\/upsale.jpg","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=1238"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/265"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}