{"id":4234,"date":"2017-06-15T18:45:00","date_gmt":"2017-06-15T09:45:00","guid":{"rendered":"https:\/\/kumapress.com\/wp\/?p=4234"},"modified":"2017-06-15T19:17:00","modified_gmt":"2017-06-15T10:17:00","slug":"node%e3%82%92%e3%83%87%e3%83%bc%e3%83%a2%e3%83%b3%e5%8c%96%e3%81%97%e3%81%a6nginx%e3%82%92%e3%83%aa%e3%83%90%e3%83%bc%e3%82%b9%e3%83%97%e3%83%ad%e3%82%ad%e3%82%b7%e3%81%a8%e3%81%97%e3%81%a6%e9%80%a3","status":"publish","type":"post","link":"https:\/\/kumapress.com\/?p=4234","title":{"rendered":"node\u3092\u30c7\u30fc\u30e2\u30f3\u5316\u3057\u3066nginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u9023\u52d5\u3055\u305b\u308b"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">Node.js\u30a2\u30d7\u30ea\u3092Nginx\u3068\u9023\u52d5\u3055\u305b\u3066\u307f\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u3084\u308b\u3053\u3068\u306f\uff12\u3064<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30fbnode.js\u3092\u30c7\u30fc\u30e2\u30f3\u5316\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">\u30fbnginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u7a3c\u50cd\u3055\u305b\u307e\u3059\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4227\" src=\"https:\/\/kumapress.com\/wp\/wp-content\/uploads\/2017\/06\/190102.jpg\" alt=\"\" width=\"199\" height=\"179\" \/><\/p>\n<h2>nginx\u306b\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u8a2d\u5b9a\u3092\u3059\u308b<\/h2>\n<h3>conf.d\u306ehoge.com.conf\u3092\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p><span style=\"font-size: 14pt;\">#vi conf.d\/hoge.com.conf<\/span><\/p>\n<pre><span style=\"font-size: 14pt;\">upstream backend_node {<\/span>\r\n<span style=\"font-size: 14pt;\"> ip_hash;<\/span>\r\n<span style=\"font-size: 14pt;\"> server 127.0.0.1:3000;<\/span>\r\n<span style=\"font-size: 14pt;\">}<\/span>\r\n\r\n<span style=\"font-size: 14pt;\">server {<\/span>\r\n<span style=\"font-size: 14pt;\"> listen 80;<\/span>\r\n<span style=\"font-size: 14pt;\"> server_name hoge.com;<\/span>\r\n<span style=\"font-size: 14pt;\">:<\/span>\r\n<span style=\"font-size: 14pt;\">:<\/span>\r\n<span style=\"font-size: 14pt;\"> #---- To redirect setting<\/span>\r\n<span style=\"font-size: 14pt;\">proxy_redirect off;<\/span>\r\n<span style=\"font-size: 14pt;\">proxy_set_header Host $http_host;<\/span>\r\n<span style=\"color: #0000ff;\"><span style=\"font-size: 14pt;\">localhost\u3092nginx\u304c\u53d7\u3051\u53d6\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30db\u30b9\u30c8\u540d\u306b\u66f8\u304d\u76f4\u3059<\/span>\r\n<span style=\"font-size: 14pt;\">proxy_redirect default;\u3067\u3053\u306e\u8a2d\u5b9a\u306a\u3057\u3060\u3068\u3001\u3069\u3053\u304b\u3089\u304d\u3066\u3082localhost\u306b\u306a\u3063\u3066\u3057\u307e\u3046(^^;<\/span><\/span>\r\n\r\n<span style=\"font-size: 14pt;\">proxy_set_header X-Real-IP $remote_addr;<\/span>\r\n<span style=\"color: #0000ff;\"><span style=\"font-size: 14pt;\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u60c5\u5831\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3084\u30d7\u30ed\u30ad\u30b7\u3092\u7d4c\u7531\u3059\u308b\u6642\u306b\u9001\u4fe1\u5143\u3092\u5224\u5225\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">x-real-ip\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8IP\u3092\u8a2d\u5b9a\u3057\u3066API\u3078\u6e21\u3059\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">$remote_addr\u306f\u30a2\u30af\u30bb\u30b9\u5143\u306eIP\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u5c64\u306e\u60c5\u5831\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">\u57fa\u672c\u7684\u306b\u76f4\u524d\u306eIP\u3092\u4fdd\u6301\u3057\u3066\u3044\u308b\u3002<\/span><\/span>\r\n\r\n<span style=\"font-size: 14pt;\">proxy_set_header X-Forwarded-Host $host;<\/span>\r\n<span style=\"font-size: 14pt;\">proxy_set_header X-Forwarded-Server $host;<\/span>\r\n<span style=\"color: #0000ff;\"><span style=\"font-size: 14pt;\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u60c5\u5831\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">\u30db\u30b9\u30c8\u540d\u3092\u6e21\u3059<\/span><\/span>\r\n\r\n<span style=\"font-size: 14pt;\">proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<\/span>\r\n<span style=\"color: #0000ff;\"><span style=\"font-size: 14pt;\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5c64\u306e\u60c5\u5831\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3084\u30d7\u30ed\u30ad\u30b7\u3092\u7d4c\u7531\u3059\u308b\u6642\u306b\u9001\u4fe1\u5143\u3092\u5224\u5225\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3002<\/span>\r\n<span style=\"font-size: 14pt;\">x-forwarded-for\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092API\u3078\u6e21\u3059\u3002<\/span><\/span>\r\n\r\n<span style=\"font-size: 14pt;\">prosy_set_header X-NginX-Proxy true;<\/span>\r\n<span style=\"font-size: 14pt;\">:<\/span>\r\n<span style=\"font-size: 14pt;\">:<\/span>\r\n<span style=\"font-size: 14pt;\"> location \/ {<\/span>\r\n<span style=\"font-size: 14pt;\">  root \/opt\/www\/ngxtst.kumakake.com\/html;<\/span>\r\n<span style=\"font-size: 14pt;\">  index index.html index.htm;<\/span><\/pre>\n<pre># \u5b58\u5728\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u304c\u6307\u5b9a\u3055\u308c\u305f\u6642\u306fnginx\u3067\u51e6\u7406\u3059\u308b\r\n<span style=\"font-size: 14pt;\">  if ( -f $request_filename ) {<\/span>\r\n<span style=\"font-size: 14pt;\">   break;<\/span>\r\n<span style=\"font-size: 14pt;\">  }<\/span><\/pre>\n<pre># \u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u304c\u5b58\u5728\u3057\u306a\u3044\u6642\u306fbackend_node\u3067\u51e6\u7406\u3059\u308b\r\n<span style=\"font-size: 14pt;\">  if ( !-f $request_filename ) {<\/span>\r\n<span style=\"font-size: 14pt;\">   proxy_pass http:\/\/backend_node;<\/span>\r\n<span style=\"font-size: 14pt;\">   break;<\/span>\r\n<span style=\"font-size: 14pt;\">  }<\/span>\r\n<span style=\"font-size: 14pt;\"> }\r\n\r\n\u203bif\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306fif\u3068(\u306e\u9593\u306f\u7a7a\u767d\u3092\u3042\u3051\u308b\u3053\u3068\r\nif ( xxxx\r\nif( xxx\u3068\u3059\u308b\u3068\r\nnginx: [emerg] unknown directive \"prosy_set_header\" in \/etc\/nginx\/conf.d\/hoge.com.conf:21\r\n\u3063\u3066\u6012\u3089\u308c\u307e\u3059(^^;<\/span><\/pre>\n<h2>node\u3092forever\u3067\u30c7\u30fc\u30e2\u30f3\u5316\u3059\u308b<\/h2>\n<h3>forever\u3092npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059<\/h3>\n<p><span style=\"font-size: 14pt;\"># npm install forever -g<\/span><\/p>\n<pre><span style=\"font-size: 14pt;\">\/usr\/local\/bin\/forever -&gt; \/usr\/local\/lib\/node_modules\/forever\/bin\/forever<\/span>\r\n<span style=\"font-size: 14pt;\">\/usr\/local\/lib<\/span>\r\n<span style=\"font-size: 14pt;\">`-- forever@0.15.3<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- cliff@0.1.10<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- colors@1.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- eyes@0.1.8<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- clone@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- colors@0.6.2<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- flatiron@0.4.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- broadway@0.3.6<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- cliff@0.1.9<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- winston@0.8.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- director@1.2.7<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- optimist@0.6.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- prompt@0.2.14<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- read@1.0.7<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- mute-stream@0.0.7<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- revalidator@0.1.8<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- forever-monitor@1.7.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- chokidar@1.7.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- anymatch@1.3.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- arrify@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- micromatch@2.3.11<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- arr-diff@2.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- arr-flatten@1.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- array-unique@0.2.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- braces@1.8.5<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | +-- expand-range@1.8.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | `-- fill-range@2.2.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | +-- is-number@2.1.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | +-- isobject@2.1.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | +-- randomatic@1.1.7<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | | +-- is-number@3.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | | | `-- kind-of@3.2.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | | `-- kind-of@4.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | `-- repeat-string@1.6.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | +-- preserve@0.2.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- repeat-element@1.1.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- expand-brackets@0.1.5<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- is-posix-bracket@0.1.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- extglob@0.3.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- filename-regex@2.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- kind-of@3.2.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- is-buffer@1.1.5<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- normalize-path@2.1.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- remove-trailing-separator@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- object.omit@2.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | +-- for-own@0.1.5<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | | `-- for-in@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- is-extendable@0.1.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- parse-glob@3.0.4<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | +-- glob-base@0.3.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | | `-- is-dotfile@1.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- regex-cache@0.4.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- is-equal-shallow@0.1.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- is-primitive@2.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- async-each@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- glob-parent@2.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- inherits@2.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- is-binary-path@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- binary-extensions@1.8.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- is-glob@2.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- is-extglob@1.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- readdirp@2.1.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- graceful-fs@4.1.11<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- readable-stream@2.2.11<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- core-util-is@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- isarray@1.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- process-nextick-args@1.0.7<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- safe-buffer@5.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | +-- string_decoder@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | | `-- util-deprecate@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- set-immediate-shim@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- minimatch@3.0.4<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- brace-expansion@1.1.8<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- balanced-match@1.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- concat-map@0.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- ps-tree@0.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- event-stream@0.5.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- optimist@0.2.8<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- nconf@0.6.9<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- async@0.2.9<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- ini@1.3.4<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- optimist@0.6.0<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- nssocket@0.5.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- eventemitter2@0.4.14<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- lazy@1.0.11<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- object-assign@3.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- optimist@0.6.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- minimist@0.0.10<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- wordwrap@0.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- path-is-absolute@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- prettyjson@1.2.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- colors@1.1.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- minimist@1.2.0<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- shush@1.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- caller@0.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- tape@2.3.3<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- deep-equal@0.1.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- defined@0.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- jsonify@0.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | +-- resumer@0.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- through@2.3.8<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- strip-json-comments@0.1.3<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- timespan@2.3.0<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- utile@0.2.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- async@0.2.10<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- deep-equal@1.0.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- i@0.3.5<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- mkdirp@0.5.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- minimist@0.0.8<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- ncp@0.4.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- rimraf@2.6.1<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- glob@7.1.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- fs.realpath@1.0.0<\/span>\r\n<span style=\"font-size: 14pt;\"> | +-- inflight@1.0.6<\/span>\r\n<span style=\"font-size: 14pt;\"> | | `-- wrappy@1.0.2<\/span>\r\n<span style=\"font-size: 14pt;\"> | `-- once@1.4.0<\/span>\r\n<span style=\"font-size: 14pt;\"> `-- winston@0.8.3<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- cycle@1.0.3<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- isstream@0.1.2<\/span>\r\n<span style=\"font-size: 14pt;\"> +-- pkginfo@0.3.1<\/span>\r\n<span style=\"font-size: 14pt;\"> `-- stack-trace@0.0.10<\/span><\/pre>\n<p><span style=\"font-size: 14pt;\">npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\/forever\/node_modules\/chokidar\/node_modules\/fsevents):<\/span><br \/>\n<span style=\"font-size: 14pt;\">npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {&#8220;os&#8221;:&#8221;darwin&#8221;,&#8221;arch&#8221;:&#8221;any&#8221;} (current: {&#8220;os&#8221;:&#8221;linux&#8221;,&#8221;arch&#8221;:&#8221;x64&#8243;})<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong># which forever<\/strong><\/span><br \/>\n<span style=\"font-size: 14pt;\">\/usr\/local\/bin\/forever<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u8d77\u52d5\u3057\u307e\u3059<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">$ forever start www<\/span><br \/>\n<span style=\"font-size: 14pt;\">warn: &#8211;minUptime not set. Defaulting to: 1000ms<\/span><br \/>\n<span style=\"font-size: 14pt;\">warn: &#8211;spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms<\/span><br \/>\n<span style=\"font-size: 14pt;\">info: Forever processing file: www<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">$ forever list<\/span><br \/>\n<span style=\"font-size: 14pt;\">info: Forever processes running<\/span><br \/>\n<span style=\"font-size: 14pt;\">data: uid command script forever pid id logfile uptime<\/span><br \/>\n<span style=\"font-size: 14pt;\">data: [0] ML5b \/usr\/local\/bin\/node www 23978 23984 \/home\/kumakake\/.forever\/ML5b.log 0:0:0:14.581<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u505c\u6b62\u3057\u307e\u3059<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">\u30e2\u30b8\u30e5\u30fc\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308b<\/span><br \/>\n<span style=\"font-size: 14pt;\">$ forever stop www<\/span><br \/>\n<span style=\"font-size: 14pt;\">error: Forever cannot find process with id: www<\/span><br \/>\n<span style=\"font-size: 14pt;\">uid\u3092\u6307\u5b9a\u3059\u308b<\/span><br \/>\n<span style=\"font-size: 14pt;\">$ forever stop 23978<\/span><br \/>\n<span style=\"font-size: 14pt;\">error: Forever cannot find process with id: 23978<\/span><\/p>\n<h3><span style=\"font-size: 14pt;\">\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059<\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">$ forever list<\/span><br \/>\n<span style=\"font-size: 14pt;\">info: No forever processes running<\/span><\/p>\n<aside class=\"row veu_insertAds after\"><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 2\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"5379270693\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><div class=\"col-md-6\"><script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<!-- \u7b2c 1 \u9762 - 1\uff08www.kumapress.com\uff09 -->\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-5987681888830890\"\r\n     data-ad-slot=\"7353370294\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script><\/div><\/aside>","protected":false},"excerpt":{"rendered":"<p>Node.js\u30a2\u30d7\u30ea\u3092Nginx\u3068\u9023\u52d5\u3055\u305b\u3066\u307f\u307e\u3059\u3002 \u3084\u308b\u3053\u3068\u306f\uff12\u3064 \u30fbnode.js\u3092\u30c7\u30fc\u30e2\u30f3\u5316\u3057\u307e\u3059\u3002 \u30fbnginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u7a3c\u50cd\u3055\u305b\u307e\u3059\u3002 nginx\u306b\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u8a2d\u5b9a\u3092\u3059\u308b conf.d\u306e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"vkexunit_cta_each_option":"","footnotes":""},"categories":[143,126],"tags":[142,41,134],"class_list":["post-4234","post","type-post","status-publish","format-standard","hentry","category-node-js","category-blog-memo","tag-forever","tag-nginx","tag-node-js"],"_links":{"self":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4234"}],"version-history":[{"count":7,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4234\/revisions"}],"predecessor-version":[{"id":4242,"href":"https:\/\/kumapress.com\/index.php?rest_route=\/wp\/v2\/posts\/4234\/revisions\/4242"}],"wp:attachment":[{"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kumapress.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}