{"id":992,"date":"2024-04-16T04:55:35","date_gmt":"2024-04-15T19:55:35","guid":{"rendered":"http:\/\/inwelly.com\/?p=992"},"modified":"2024-04-16T04:55:35","modified_gmt":"2024-04-15T19:55:35","slug":"linux-%ec%8a%a4%ec%99%91swap-%eb%a9%94%eb%aa%a8%eb%a6%ac-%ec%82%ac%ec%9a%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=992","title":{"rendered":"LINUX \uc2a4\uc651(SWAP) \uba54\ubaa8\ub9ac \uc0ac\uc6a9\ubc95"},"content":{"rendered":"\n<p><strong>\uc2a4\uc651\ud30c\uc77c \ub9cc\ub4e4\uae30<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$>  sudo fallocate -l 2G \/swapfile  \u2192 swapfile \uc0dd\uc131\n$>  sudo chmod 600 \/swapfile \u2192 root \uc0ac\uc6a9\uc790\ub9cc \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \uad8c\ud55c \ubcc0\uacbd\n$>  sudo mkswap \/swapfile  \u2192 \uc2a4\uc651\uba54\ubaa8\ub9ac\ub85c \ubcc0\uacbd\n$>  sudo swapon \/swapfile  \u2192 \uc2a4\uc651\uba54\ubaa8\ub9ac \ud65c\uc131\ud654<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\uc7ac\ubd80\ud305 \ud6c4\uc5d0\ub3c4 \uacc4\uc18d \uc2a4\uc651 \uba54\ubaa8\ub9ac\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 \/etc\/fstab\uc5d0&nbsp; \ub9c8\uc6b4\ud2b8 \ub0b4\uc6a9\uc744 \ucd94\uac00<\/p>\n\n\n\n<p>sudo vi \/etc\/fstab<\/p>\n\n\n\n<p>\uc785\ub825\ub0b4\uc6a9 \u2192 \/swapfile swap swap default 0 0<\/p>\n<\/blockquote>\n\n\n\n<p><strong>\uc2a4\uc651\uba54\ubaa8\ub9ac \uc81c\uac70\ud558\uae30<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vi \/etc\/fstab \u2192 \uc790\ub3d9\ub9c8\uc6b4\ud2b8 \ub0b4\uc6a9 \uc81c\uac70 \ubc0f \uc8fc\uc11d\ucc98\ub9ac\nsudo swapoff -v \/swapfile\nsudo swapoff on \/swapfile\nsudo rm -r \/swapfile<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc2a4\uc651\ud30c\uc77c \ub9cc\ub4e4\uae30 \uc7ac\ubd80\ud305 \ud6c4\uc5d0\ub3c4 \uacc4\uc18d \uc2a4\uc651 \uba54\ubaa8\ub9ac\uac00 \ud544\uc694\ud55c \uacbd\uc6b0 \/etc\/fstab\uc5d0&nbsp; \ub9c8\uc6b4\ud2b8 \ub0b4\uc6a9\uc744 \ucd94\uac00 sudo vi \/etc\/fstab \uc785\ub825\ub0b4\uc6a9 \u2192 \/swapfile swap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-992","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=992"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/992\/revisions"}],"predecessor-version":[{"id":993,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/992\/revisions\/993"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}