{"id":731,"date":"2023-05-05T13:51:49","date_gmt":"2023-05-05T04:51:49","guid":{"rendered":"https:\/\/shinke1987.net\/?p=731"},"modified":"2023-05-08T22:53:19","modified_gmt":"2023-05-08T13:53:19","slug":"rockylinux-tips","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=731","title":{"rendered":"RockyLinux Tips"},"content":{"rendered":"\n<h2 id=\"toc0\" class=\"wp-block-heading\">Rocky Linux 9 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u4ef6<\/h2>\n\n\n\n<h3 id=\"toc1\" class=\"wp-block-heading\">\u53c2\u8003\u30da\u30fc\u30b8<\/h3>\n\n\n\n<p><a href=\"https:\/\/access.redhat.com\/articles\/rhel-limits\" data-type=\"URL\" data-id=\"https:\/\/access.redhat.com\/articles\/rhel-limits\" target=\"_blank\" rel=\"noreferrer noopener\">Red Hat Enterprise Linux Technology Capabilities and Limits &#8211; Red Hat Customer Portal<\/a><\/p>\n\n\n\n<h3 id=\"toc2\" class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u4ef6\u629c\u7c8b<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30e1\u30e2\u30ea<br>\u30ed\u30fc\u30ab\u30eb\u30e1\u30c7\u30a3\u30a2\u3084NFS\u30b5\u30fc\u30d0\u7528\u3067\u3042\u308c\u3070\u30011.5GiB\u5fc5\u8981\u3002<br>HTTP\u3084FTP\u30b5\u30fc\u30d0\u7528\u3067\u3042\u308c\u3070\u30013GiB\u5fc5\u8981\u3002<\/li>\n\n\n\n<li>\u30c7\u30a3\u30b9\u30af\u30b9\u30da\u30fc\u30b9<br>\u6700\u5c0f10GB\u3002\u63a8\u596820GB\u4ee5\u4e0a\u3002<\/li>\n<\/ul>\n\n\n\n<h2 id=\"toc3\" class=\"wp-block-heading\">free\u30b3\u30de\u30f3\u30c9\uff08\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u78ba\u8a8d\uff09<\/h2>\n\n\n\n<h3 id=\"toc4\" class=\"wp-block-heading\">\u53c2\u8003\u30da\u30fc\u30b8<\/h3>\n\n\n\n<p><a href=\"https:\/\/milestone-of-se.nesuke.com\/sv-basic\/linux-basic\/free-command\/\" data-type=\"URL\" data-id=\"https:\/\/milestone-of-se.nesuke.com\/sv-basic\/linux-basic\/free-command\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux\u306efree \u30b3\u30de\u30f3\u30c9\u306e\u898b\u65b9\u3068\u30aa\u30d7\u30b7\u30e7\u30f3 ~available\u3084buff\/cache\u306e\u5b9a\u7fa9~ | SE\u306e\u9053\u6a19<\/a><\/p>\n\n\n\n<h3 id=\"toc5\" class=\"wp-block-heading\">\u6982\u8981<\/h3>\n\n\n\n<p>free\u30b3\u30de\u30f3\u30c9\u306f\u4f7f\u7528\u6e08\u307f\u30e1\u30e2\u30ea\u3068\u672a\u4f7f\u7528\u30e1\u30e2\u30ea\u7b49\u3092\u8868\u793a\u3059\u308b\u3002<br>total = used + buff\/cache + free<br>available = free + buff\/cache\u306e\u3046\u3061\u89e3\u653e\u53ef\u80fd\u306a\u9818\u57df<\/p>\n\n\n\n<h2 id=\"toc6\" class=\"wp-block-heading\">\u30b3\u30de\u30f3\u30c9<\/h2>\n\n\n\n<h6 id=\"toc7\" class=\"wp-block-heading\">\u4f7f\u7528\u4e2d\u306e\u30dd\u30fc\u30c8\u3092\u78ba\u8a8d\u3059\u308b<\/h6>\n\n\n\n<p>netstat\u304c\u5165\u3063\u3066\u3044\u306a\u304f\u3066\u3082ss\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u304c\u3042\u308b\u3002<br><pre class=\"brush: bash; title: ; notranslate\" title=\"\"># ss -atn<\/pre><\/p>\n\n\n\n<h6 id=\"toc8\" class=\"wp-block-heading\">\u6a19\u6e96\u66f8\u5f0f\u3067RSS\u3092\u542b\u3081\u3066\u8868\u793a\u3059\u308b<\/h6>\n\n\n\n<p>RSS\u306f\u7269\u7406\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u3092KiB\u5358\u4f4d\u3067\u8868\u793a\u3059\u308b\u3002<br><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ ps -eF<\/pre><\/p>\n\n\n\n<h6 id=\"toc9\" class=\"wp-block-heading\">\u6307\u5b9a\u3057\u305f\u30b3\u30de\u30f3\u30c9\uff08\u4f8b\uff1ahttpd\uff09\u3067\u8d77\u52d5\u3055\u308c\u305f\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u30e6\u30fc\u30b6\u540d\u3068RSS\u3092\u8868\u793a\u3059\u308b<\/h6>\n\n\n\n<p>RSS\u306f\u7269\u7406\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u3092KiB\u5358\u4f4d\u3067\u8868\u793a\u3059\u308b\u3002<br><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ ps -C httpd -o euser,rss,comm<\/pre><\/p>\n\n\n\n<h6 id=\"toc10\" class=\"wp-block-heading\">\u4f7f\u7528\u6e08\u307f\u30fb\u672a\u4f7f\u7528\u306e\u30e1\u30e2\u30ea\u30923\u79d2\u3054\u3068\u306b\u66f4\u65b0\u3057\u306a\u304c\u3089\u8868\u793a\u3057\u7d9a\u3051\u308b<\/h6>\n\n\n\n<p><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ free -h -s 3<\/pre><\/p>\n\n\n\n<h6 id=\"toc11\" class=\"wp-block-heading\">awk\u3092\u5229\u7528\u3057\u3066ls -l\u30b3\u30de\u30f3\u30c9\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u3092\u5408\u8a08\u3057\u3066\u8868\u793a\u3059\u308b<\/h6>\n\n\n\n<p><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ ls -l | awk &#039;{ sum += $5 } END { print sum }&#039;<\/pre><\/p>\n\n\n\n<h6 id=\"toc12\" class=\"wp-block-heading\">awk\u3092\u5229\u7528\u3057\u3066ls -l\u30b3\u30de\u30f3\u30c9\u306e1\u5217\u76ee\uff08\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\uff09\u3068\u30d5\u30a1\u30a4\u30eb\u30fb\u30d5\u30a9\u30eb\u30c0\u540d\u3060\u3051\u3092\u8868\u793a\u3059\u308b<\/h6>\n\n\n\n<p><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ ls -l | awk &#039;{ print $1 $9 }&#039;<\/pre><\/p>\n\n\n\n<h6 id=\"toc13\" class=\"wp-block-heading\">\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b<\/h6>\n\n\n\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u6709\u52b9\u30fb\u7121\u52b9\u3082\u8868\u793a\u3055\u308c\u308b\u3002<br><pre class=\"brush: bash; title: ; notranslate\" title=\"\"># dnf repolist all<\/pre><\/p>\n\n\n\n<h6 id=\"toc14\" class=\"wp-block-heading\">\u6307\u5b9a\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30eaID\u3060\u3051\u3092\u6709\u52b9\u306b\u3059\u308b\u3002<\/h6>\n\n\n\n<p>\u30ea\u30dd\u30b8\u30c8\u30eaID\u306frepolist\u3067\u8868\u793a\u3055\u308c\u308bID\u3002<br><pre class=\"brush: bash; title: ; notranslate\" title=\"\"># dnf --repo \u30ea\u30dd\u30b8\u30c8\u30eaID &amp;amp;lt; install or list or etc &amp;gt;<\/pre><\/p>\n\n\n\n<h6 id=\"toc15\" class=\"wp-block-heading\">systemctl\u3067\u6307\u5b9a\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u540d\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u3002<\/h6>\n\n\n\n<p><pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ systemctl list-unit-files<\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rocky Linux 9 \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u8981\u4ef6 \u53c2\u8003\u30da\u30fc\u30b8 Red Hat Enterprise Linux Technology Capabilities and Limits &#8211; Red Hat Cust [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[78],"class_list":["post-731","post","type-post","status-publish","format-standard","hentry","category-rocky-linux","tag-rockylinux"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/731","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=731"}],"version-history":[{"count":10,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/731\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/731\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}