{"id":3216,"date":"2020-07-10T14:49:38","date_gmt":"2020-07-10T05:49:38","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=3216"},"modified":"2024-01-16T00:24:54","modified_gmt":"2024-01-15T15:24:54","slug":"post-3216","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/3216","title":{"rendered":"composer\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u30a8\u30e9\u30fc\u5bfe\u5fdc\u65b9\u6cd5"},"content":{"rendered":"<p>composer\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u300cThe following exception is caused by a lack of memory or swap, or not having swap configured\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u304b\u3063\u305f\u3002Google\u7ffb\u8a33\u3092\u901a\u3059\u3068\u30e1\u30e2\u30ea\u3082\u3057\u304f\u306f\u30b9\u30ef\u30c3\u30d7\u4e0d\u8db3\u3068\u306e\u3053\u3068\u3002\u4ee5\u4e0b\u306b\u5bfe\u5fdc\u65b9\u6cd5\u306e\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<p>\u30b5\u30fc\u30d0\u306bSSH\u63a5\u7d9a\u3057\u3066\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3057\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/bin\/dd if=\/dev\/zero of=\/var\/swap.1 bs=1M count=1024\r\n\/sbin\/mkswap \/var\/swap.1\r\n\/sbin\/swapon \/var\/swap.1<\/pre>\n<p>&nbsp;<\/p>\n<h2>PHP\u306e\u30e1\u30e2\u30ea\u4e0a\u9650\u3092\u5897\u3084\u3059\u306e\u306f\uff1f<\/h2>\n<p>\u4e0a\u8a18\u5bfe\u5fdc\u3092\u53d6\u308b\u524d\u306bPHP\u306e\u30e1\u30e2\u30ea\u5272\u308a\u5f53\u3066\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306e32MB\u3068\u304b\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u4e0a\u9650\u3092\u5897\u3084\u305b\u3070\u3044\u3044\u306e\u3067\u306f\uff1f \u3068\u601d\u3044\u3001\u300cmemory_limit = 512M\u300d\u7b49\u306b\u3057\u3066\u307f\u308b\u3082\u6539\u5584\u3055\u308c\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u305d\u3082\u305d\u3082composer\u3063\u3066\u4f55\uff1f<\/h2>\n<p>\u4ee5\u524d\u306b\u3082<a href=\"https:\/\/taitan916.info\/blog\/archives\/3067\">\u6b62\u3080\u306b\u6b62\u307e\u308c\u306c\u4e8b\u60c5\u3067composer\u3092\u4f7f\u7528\u3059\u308b<\/a>\u3053\u3068\u304c\u3042\u3063\u305f\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u305d\u308c\u4ee5\u964d\u306b\u81ea\u8eab\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u306f\u306a\u304f\u30a4\u30de\u30a4\u30c1composer\u304c\u4f55\u306a\u306e\u304b\u3088\u304f\u5206\u304b\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>\u3055\u3059\u304c\u306b\u305d\u308d\u305d\u308d\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u65b9\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u3001composer\u304c\u4f55\u306a\u306e\u304b\u8abf\u3079\u3066\u307f\u305f\u3068\u3053\u308dPHP\u3067\u4f7f\u7528\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30b7\u30b9\u30c6\u30e0\u3068\u306a\u308a\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u4f9d\u5b58\u95a2\u4fc2\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u5168\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3068\u3044\u3046\u4fbf\u5229\u306a\u3082\u306e\u3089\u3057\u3044\u3002<\/p>\n<p>\u4eca\u56de\u306fPHPExcel\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u305f\u304b\u3063\u305f\u306e\u3060\u304cGithub\u304b\u3089\u30bd\u30fc\u30b9\u3092\u4e38\u3054\u3068\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001FTP\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3082\u6b63\u5e38\u306b\u52d5\u304b\u305a\u3001\u6ce3\u304f\u6ce3\u304fcomposer\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u89e3\u6c7a\u3067\u304d\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>composer\u81ea\u4f53\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bcd\u30b3\u30de\u30f3\u30c9\u3067\u79fb\u52d5\u3057\u3066\u304a\u304d\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">curl -sS https:\/\/getcomposer.org\/installer | php<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4eca\u56de\u306fPHPExcel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3044\u3046\u60f3\u5b9a\u3002composer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bcd\u30b3\u30de\u30f3\u30c9\u3067\u79fb\u52d5\u3057\u3066\u304a\u304d\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php composer.phar require phpoffice\/phpexcel<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u53c2\u8003\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"https:\/\/qiita.com\/atwata\/items\/d6f1cf95ce96ebe58010\">https:\/\/qiita.com\/atwata\/items\/d6f1cf95ce96ebe58010<\/a><\/p>\n<p><a href=\"https:\/\/getcomposer.org\/doc\/articles\/troubleshooting.md#proc-open-fork-failed-errors\">https:\/\/getcomposer.org\/doc\/articles\/troubleshooting.md#proc-open-fork-failed-errors<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>composer\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u306b\u300cThe following  ... <\/p>\n","protected":false},"author":1,"featured_media":1085,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2,7],"tags":[],"class_list":["post-3216","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","category-server"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3216","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=3216"}],"version-history":[{"count":0,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3216\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1085"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=3216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=3216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=3216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}