{"id":5148,"date":"2024-04-02T00:01:53","date_gmt":"2024-04-01T15:01:53","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=5148"},"modified":"2024-04-02T00:02:34","modified_gmt":"2024-04-01T15:02:34","slug":"post-5148","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/5148","title":{"rendered":"AlmaLinux8&#038;PHP8\u7cfb\u306e\u74b0\u5883\u306bComposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>AlmaLinux8&amp;PHP8\u7cfb\u306e\u74b0\u5883\u306bComposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u3002\u305d\u308c\u3068\u306f\u5225\u306b\u300cDo not run Composer as root\/super user!\u300d\u3068\u300cGitHub API limit (60 calls\/hr) is exhausted\u300d\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u969b\u306e\u5bfe\u5fdc\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h2>\n<p><a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noopener\">https:\/\/getcomposer.org\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Composer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u30b5\u30fc\u30d0\u306bSSH\u63a5\u7d9a\u3057\u4ee5\u4e0b\u306e\u901a\u308a\u9032\u3081\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#(\u5fc5\u8981\u306b\u5fdc\u3058\u3066)wget\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\nsudo dnf -y install wget\r\n\r\n#composer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\r\nwget https:\/\/getcomposer.org\/installer -O composer-installer.php\r\n\r\n#composer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\r\ncomposer-installer.php --filename=composer --install-dir=\/usr\/local\/bin\r\n\r\n#composer\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\r\ncomposer self-update\r\n\r\n#\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\r\ncomposer --version\r\n\r\n#\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\r\nComposer version 2.7.1<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u300cDo not run Composer as root\/super user!\u300d\u306b\u3064\u3044\u3066<\/h2>\n<p>Composer\u3092\u7528\u3044\u3066\u4f55\u3089\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Do not run Composer as root\/super user! See https:\/\/getcomposer.org\/root for details\r\nContinue as root\/super user [yes]?<\/pre>\n<p>\u300c<a href=\"https:\/\/getcomposer.org\/root\" target=\"_blank\" rel=\"noopener\">https:\/\/getcomposer.org\/root<\/a>\u300d\u3092\u898b\u306b\u884c\u304f\u3068\u30b9\u30fc\u30d1\u30fc\u30e6\u30fc\u30b6(root\u7b49)\u3067Composer\u3092\u5b9f\u884c\u3059\u308b\u306e\u306f\u30c0\u30e1\u7684\u306a\u6848\u5185\u304c\u3042\u3063\u305f\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u9069\u5f53\u306a\u30e6\u30fc\u30b6\u306b\u5909\u66f4\u3057\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b\u3053\u3068(FTP\u3067\u63a5\u7d9a\u3059\u308b\u7528\u306e\u30e6\u30fc\u30b6\u304c\u7121\u96e3\uff1f)\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">su \u3010\u30e6\u30fc\u30b6\u540d\u3011<\/pre>\n<p>\u5c1a\u3001\u300cContinue as root\/super user [yes]?\u300d\u306b\u5bfe\u3057\u3066\u300cyes\u300d\u3068\u5165\u529b\u3057\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3059\u3068\u305d\u306e\u307e\u307eComposer\u304c\u5b9f\u884c\u3055\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>GitHub API limit (60 calls\/hr) is exhausted\u300d\u306b\u3064\u3044\u3066<\/h2>\n<p>Composer\u3092\u7528\u3044\u3066\u4f55\u3089\u304b\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u30681\u3064\u76ee\u306f\u554f\u984c\u7121\u304f\u5b9f\u884c\u3067\u304d\u305f\u304c\u30012\u3064\u76ee\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">GitHub API limit (60 calls\/hr) is exhausted, could not fetch https:\/\/api.github.com\/repos\/xxxxxxxxxxxxxx. Create a GitHub OAuth token to go over the API rate limit. You can also wait until 2024-xx-xx 00:19:57 for the rate limit to reset.\r\n\r\nWhen working with _public_ GitHub repositories only, head here to retrieve a token:\r\nhttps:\/\/github.com\/settings\/tokens\/new?scopes=&description=Composer+on+i-53100000541078+2024-xx-xx+2330\r\nThis token will have read-only permission for public information only.\r\nWhen you need to access _private_ GitHub repositories as well, go to:\r\nhttps:\/\/github.com\/settings\/tokens\/new?scopes=repo&description=Composer+on+i-53100000541078+2024-xx-xx+2330\r\nNote that such tokens have broad read\/write permissions on your behalf, even if not needed by Composer.\r\nTokens will be stored in plain text in \"\/root\/.config\/composer\/auth.json\" for future use by Composer.\r\nFor additional information, check https:\/\/getcomposer.org\/doc\/articles\/authentication-for-private-packages.md#github-oauth\r\nToken (hidden):<\/pre>\n<p><a href=\"https:\/\/satopedia.com\/composer-github-api-rate-limit\/\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8<\/a>\u306b\u3088\u308b\u3068\u300ccomposer install \/ update\u300d\u6642\u306b\u88cf\u5074\u3067GitHub\u306eAPI\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3001\u305d\u306e\u969b\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u4e0a\u9650\u3092\u8d85\u3048\u305f\u305f\u3081\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3063\u307d\u3044\u3002<\/p>\n<p>\u5bfe\u5fdc\u65b9\u6cd5\u3068\u3057\u3066GitHub\u3067\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3057\u300cToken (hidden):\u300d\u306b\u5bfe\u3057\u3066\u5f53\u8a72\u30c8\u30fc\u30af\u30f3\u3092\u30da\u30fc\u30b9\u30c8\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3092\u62bc\u3059\u3053\u3068\u3067\u89e3\u6c7a\u3059\u308b\u3002<\/p>\n<p>GitHub\u306e\u30c8\u30fc\u30af\u30f3\u767a\u884c\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306eURL(\u4eca\u56de\u306e\u5834\u5408\u3060\u3068 https:\/\/github.com\/settings\/tokens\/new?scopes=&amp;description=Composer+on+i-53100000541078+2024-xx-xx+2330 )\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u4ee5\u4e0b\u8d64\u67a0\u90e8\u5206\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u300cGenerate token\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><a href=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5151\" src=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-133x300.jpg\" alt=\"\" width=\"133\" height=\"300\" srcset=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-133x300.jpg 133w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-455x1024.jpg 455w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-768x1727.jpg 768w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-683x1536.jpg 683w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1-911x2048.jpg 911w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/001-1.jpg 993w\" sizes=\"auto, (max-width: 133px) 100vw, 133px\" \/><\/a><\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u304c\u6b63\u5e38\u306b\u767a\u884c\u3055\u308c\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30da\u30fc\u30b8\u306b\u9077\u79fb\u3057\u3001\u8d64\u67a0\u90e8\u5206\u306b\u30c8\u30fc\u30af\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u30b3\u30d4\u30fc\u3057\u3001SSH\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8\u4e0a\u306b\u30da\u30fc\u30b9\u30c8\u2192\u30a8\u30f3\u30bf\u30fc\u30ad\u30fc\u3067\u9032\u3081\u3089\u308c\u308b\u7b48\u3002<\/p>\n<p><a href=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/002.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5152\" src=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/002-300x203.jpg\" alt=\"\" width=\"300\" height=\"203\" srcset=\"https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/002-300x203.jpg 300w, https:\/\/taitan916.info\/blog\/wp-content\/uploads\/2024\/03\/002.jpg 699w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux8&amp;PHP8\u7cfb\u306e\u74b0\u5883\u306bComposer\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057 ... <\/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-5148","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\/5148","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=5148"}],"version-history":[{"count":4,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5148\/revisions"}],"predecessor-version":[{"id":5150,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/5148\/revisions\/5150"}],"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=5148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=5148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=5148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}