{"id":5710,"date":"2021-05-18T13:46:00","date_gmt":"2021-05-18T13:46:00","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=5710"},"modified":"2021-09-29T08:56:15","modified_gmt":"2021-09-29T08:56:15","slug":"how-to-add-swap-space-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/","title":{"rendered":"How To Add Swap Space On Ubuntu"},"content":{"rendered":"\n<p>In this post, I will guide you on&nbsp;<strong>How To Add Swap Space On Ubuntu<\/strong>. Use the hard disk as temporary memory to supplement physical memory (RAM) when handling tasks that are larger than the capacity of existing RAM.<\/p>\n\n\n\n<p>To start, you should prepare yourself a VPS running Ubuntu operating system. We choose to use VPS provided by Vultr to bring speed and stability to the website. If you have not used any VPS service, please click <a href=\"https:\/\/www.vultr.com\/?ref=8377863-6G\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">here<\/a> to sign up for an account and get $100 for free.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Swap Space?<\/h2>\n\n\n\n<p>Swap space is a space on the hard disk which is a substitute of physical memory\u2026 Virtual memory is a combination of RAM and disk space that running processes can use. Swap space is the portion of virtual memory that is on the hard disk, used when RAM is full.<\/p>\n\n\n\n<p>Swap is not considered a replacement for physical memory. Since swap space is part of the hard drive, it has a slower access time than physical memory by about 10 to 1000 times. If your system is constantly running out of memory, you should add more RAM.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps To Add Swap Space On Ubuntu<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Note: Use \u200broot or user with sudo privileges can activate the swap file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>I will create a&nbsp;<strong>4GB<\/strong>&nbsp;swap file. You can add a swap file with the size you want.<\/p>\n\n\n\n<p>1. Create a swap file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo fallocate -l 4G \/swapfile\n<\/pre><\/div>\n\n\n<p>If&nbsp;<code>faillocate<\/code>&nbsp;is not installed or an error message saying&nbsp;<code>fallocate failed: Operation not supported<\/code>&nbsp;then use the following command to create the swap file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo dd if=\/dev\/zero of=\/swapfile bs=1024 count=4194304\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Note:&nbsp;<strong>bs<\/strong>=1024 means read and write up to 1024 bytes at a time and&nbsp;<strong>count<\/strong>=(1024 x 4096)MB size of the file.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>2. Set the file permissions to 600 for the swap file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo chmod 600 \/swapfile\n<\/pre><\/div>\n\n\n<p>3. Create a swap area on the file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mkswap \/swapfile\n<\/pre><\/div>\n\n\n<p>You should see the output like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSetting up swapspace version 1, size = 4 GiB (4294963200 bytes)\nno label, UUID=9888e511-ff44-4cb3-a999-c9b072a75a67\n<\/pre><\/div>\n\n\n<p>4. Enable the swap file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo swapon \/swapfile\n<\/pre><\/div>\n\n\n<p>To make the change permanent open the&nbsp;<code>\/etc\/fstab file<\/code>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/etc\/fstab\n<\/pre><\/div>\n\n\n<p>Paste the following line:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/swapfile swap swap defaults 0 0\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"153\" data-attachment-id=\"6150\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/paste-the-following-line-to-fstab-file\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?fit=1100%2C211&amp;ssl=1\" data-orig-size=\"1100,211\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Paste-the-following-line-to-fstab-file\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?fit=300%2C58&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?fit=800%2C153&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?resize=800%2C153&#038;ssl=1\" alt=\"Paste the following line to fstab file\" class=\"wp-image-6150\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?w=1100&amp;ssl=1 1100w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?resize=300%2C58&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?resize=1024%2C196&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Paste-the-following-line-to-fstab-file.jpg?resize=768%2C147&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>5. Now verify the swap file was created by using the swapon command.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo swapon --show\n<\/pre><\/div>\n\n\n<p>You should see the output like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nNAME      TYPE SIZE USED PRIO\n\/swapfile file   4G   0B   -2\n<\/pre><\/div>\n\n\n<p>Using the&nbsp;<strong>free<\/strong>&nbsp;command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo free -h\n<\/pre><\/div>\n\n\n<p>You should see the output like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n              total        used        free      shared  buff\/cache   available\nMem:          1.9Gi       885Mi       189Mi        61Mi       912Mi       849Mi\nSwap:         4.0Gi          0B       4.0Gi\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Adjusting The Swappiness Value<\/h2>\n\n\n\n<p>You can check the current swappiness value by typing the following command:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncat \/proc\/sys\/vm\/swappiness\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nOutput:\n60\n<\/pre><\/div>\n\n\n<p>To set how often the kernel can use the swap file, open the file \/etc\/sysctl.conf.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo nano \/etc\/sysctl.conf\n<\/pre><\/div>\n\n\n<p>And add the line below:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvm.swappiness=10\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"348\" data-attachment-id=\"6152\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/set-kernel-for-the-swap-file\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?fit=1100%2C478&amp;ssl=1\" data-orig-size=\"1100,478\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;1&quot;}\" data-image-title=\"Set-kernel-for-the-swap-file\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?fit=300%2C130&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?fit=800%2C348&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?resize=800%2C348&#038;ssl=1\" alt=\"Set kernel for the swap file\" class=\"wp-image-6152\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?w=1100&amp;ssl=1 1100w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?resize=300%2C130&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?resize=1024%2C445&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/Set-kernel-for-the-swap-file.jpg?resize=768%2C334&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Note: The default value of how frequent swap space can be used is 60 (maximum value is 100). The higher the number, the more frequent swap space utilization by the kernel.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Removing a Swap File<\/h2>\n\n\n\n<p>1. Deactivate the swap space:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo swapoff -v \/swapfile\n<\/pre><\/div>\n\n\n<p>2. Remove&nbsp;<code>\/swapfile swap swap defaults 0 0<\/code>&nbsp;line has been entered from the&nbsp;<code>\/etc\/fstab<\/code>&nbsp;file.<\/p>\n\n\n\n<p>3. Remove swapfile file.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo rm \/swapfile\n<\/pre><\/div>\n\n\n<p>This is the end of the&nbsp;<strong>How To Add Swap Space On Ubuntu<\/strong>.<\/p>\n\n\n\n<p>Follow us for the more helpful posts!<\/p>\n\n\n\n<p>We hope this is a useful post for you.<\/p>\n\n\n\n<p>You can read more useful posts like&nbsp;<strong><a href=\"https:\/\/www.magetop.com\/blog\/display-magento-2-module-list\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Display Magento 2 Module List<\/a><\/strong>.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>n this post, I will guide you on\u00a0How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM) when handling tasks that are larger than the capacity of existing RAM.<\/p>\n","protected":false},"author":106,"featured_media":6155,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[1530,1532,1533,1531,1534],"class_list":["post-5710","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-add-swap-space","tag-add-swap-space-on-ubuntu","tag-how-to-add-swap-space-on-ubuntu","tag-swap-space","tag-swap-space-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Add Swap Space On Ubuntu - Magetop Blog<\/title>\n<meta name=\"description\" content=\"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Add Swap Space On Ubuntu - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-18T13:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-29T08:56:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1755\" \/>\n\t<meta property=\"og:image:height\" content=\"1032\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"How To Add Swap Space On Ubuntu\",\"datePublished\":\"2021-05-18T13:46:00+00:00\",\"dateModified\":\"2021-09-29T08:56:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\"},\"wordCount\":493,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1\",\"keywords\":[\"Add Swap Space\",\"Add Swap Space On Ubuntu\",\"How To Add Swap Space On Ubuntu\",\"Swap Space\",\"Swap Space Ubuntu\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\",\"name\":\"How To Add Swap Space On Ubuntu - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1\",\"datePublished\":\"2021-05-18T13:46:00+00:00\",\"dateModified\":\"2021-09-29T08:56:15+00:00\",\"description\":\"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1\",\"width\":1755,\"height\":1032,\"caption\":\"How To Add Swap Space On Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Add Swap Space On Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Add Swap Space On Ubuntu - Magetop Blog","description":"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How To Add Swap Space On Ubuntu - Magetop Blog","og_description":"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)","og_url":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2021-05-18T13:46:00+00:00","article_modified_time":"2021-09-29T08:56:15+00:00","og_image":[{"width":1755,"height":1032,"url":"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"How To Add Swap Space On Ubuntu","datePublished":"2021-05-18T13:46:00+00:00","dateModified":"2021-09-29T08:56:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/"},"wordCount":493,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","keywords":["Add Swap Space","Add Swap Space On Ubuntu","How To Add Swap Space On Ubuntu","Swap Space","Swap Space Ubuntu"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/","url":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/","name":"How To Add Swap Space On Ubuntu - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","datePublished":"2021-05-18T13:46:00+00:00","dateModified":"2021-09-29T08:56:15+00:00","description":"In this post, I will guide you on How To Add Swap Space On Ubuntu. Use the hard disk as temporary memory to supplement physical memory (RAM)","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","width":1755,"height":1032,"caption":"How To Add Swap Space On Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/how-to-add-swap-space-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Add Swap Space On Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Add-Swap-Space-On-Ubuntu.png?fit=1755%2C1032&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-1u6","jetpack-related-posts":[{"id":5745,"url":"https:\/\/www.magetop.com\/blog\/them-bo-nho-swap-trong-ubuntu\/","url_meta":{"origin":5710,"position":0},"title":"H\u01b0\u1edbng d\u1eabn th\u00eam b\u1ed9 nh\u1edb Swap trong Ubuntu","author":"Callula Huy","date":"June 14, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y, m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n\u00a0c\u00e1ch th\u00eam b\u1ed9 nh\u1edb Swap(Swap Space) tr\u00ean Ubuntu.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn th\u00eam b\u1ed9 nh\u1edb Swap trong Ubuntu","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-them-bo-nho-Swap-trong-Ubuntu.png?fit=750%2C422&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-them-bo-nho-Swap-trong-Ubuntu.png?fit=750%2C422&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-them-bo-nho-Swap-trong-Ubuntu.png?fit=750%2C422&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-them-bo-nho-Swap-trong-Ubuntu.png?fit=750%2C422&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5717,"url":"https:\/\/www.magetop.com\/blog\/host-multiple-websites-on-one-apache-server-on-ubuntu\/","url_meta":{"origin":5710,"position":1},"title":"Host Multiple Websites On One Apache Server On Ubuntu","author":"Aaron LX","date":"May 19, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0Host Multiple Websites On One Apache Server On Ubuntu. Use Apache Virtual Host to configure different domains on your Apache Server.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Host Multiple Websites On One Apache Server On Ubuntu","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Host-Multiple-Websites-On-One-Apache-Server-On-Ubuntu.png?fit=1200%2C710&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Host-Multiple-Websites-On-One-Apache-Server-On-Ubuntu.png?fit=1200%2C710&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Host-Multiple-Websites-On-One-Apache-Server-On-Ubuntu.png?fit=1200%2C710&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Host-Multiple-Websites-On-One-Apache-Server-On-Ubuntu.png?fit=1200%2C710&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/Host-Multiple-Websites-On-One-Apache-Server-On-Ubuntu.png?fit=1200%2C710&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10355,"url":"https:\/\/www.magetop.com\/blog\/how-to-limit-resources-for-docker-containers\/","url_meta":{"origin":5710,"position":2},"title":"How To Limit Resources For Docker Containers","author":"Aaron LX","date":"June 9, 2025","format":false,"excerpt":"Resource control is crucial when running multiple containers on shared infrastructure. Without proper limits, a single container can consume all available memory or CPU, affecting system stability. This guide shows you how to limit resources for Docker Containers with real-world examples. Why Set Resource Limits? By default, Docker containers can\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Limit Resources For Docker Containers","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/06\/How-To-Limit-Resources-For-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/06\/How-To-Limit-Resources-For-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/06\/How-To-Limit-Resources-For-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/06\/How-To-Limit-Resources-For-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/06\/How-To-Limit-Resources-For-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5481,"url":"https:\/\/www.magetop.com\/blog\/install-apache-on-ubuntu-20-04\/","url_meta":{"origin":5710,"position":3},"title":"How To Install Apache On Ubuntu 20.04","author":"Aaron LX","date":"May 5, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Install Apache On Ubuntu 20.04. Apache is the most widely used web server in the world.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Install Apache On Ubuntu 20.04","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Install-Apache-On-Ubuntu-20.04.jpg?fit=750%2C446&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Install-Apache-On-Ubuntu-20.04.jpg?fit=750%2C446&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Install-Apache-On-Ubuntu-20.04.jpg?fit=750%2C446&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Install-Apache-On-Ubuntu-20.04.jpg?fit=750%2C446&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":10507,"url":"https:\/\/www.magetop.com\/blog\/how-to-fix-no-space-left-on-device-in-docker\/","url_meta":{"origin":5710,"position":4},"title":"How To Fix \u201cNo Space Left On Device\u201d In Docker","author":"Aaron LX","date":"July 23, 2025","format":false,"excerpt":"Running into a no space left on device error while using Docker can be frustrating \u2014 especially when your disk seems fine. This guide explains what causes it, and how to clean up Docker properly with a real example. The Error You might see something like this when building or\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Fix \u201cNo Space Left On Device\u201d In Docker","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-No-Space-Left-On-Device-In-Docker.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-No-Space-Left-On-Device-In-Docker.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-No-Space-Left-On-Device-In-Docker.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-No-Space-Left-On-Device-In-Docker.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-No-Space-Left-On-Device-In-Docker.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":9872,"url":"https:\/\/www.magetop.com\/blog\/how-to-install-multiple-php-versions-on-ubuntu\/","url_meta":{"origin":5710,"position":5},"title":"How To Install Multiple PHP Versions On Ubuntu","author":"Aaron LX","date":"February 20, 2025","format":false,"excerpt":"Managing multiple PHP versions on Ubuntu is essential for developers working with different applications requiring specific PHP versions. By setting up multiple PHP versions, you can easily switch between them without conflicts. This guide will show you How To Install Multiple PHP Versions On Ubuntu. Steps To Install Multiple PHP\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Install Multiple PHP Versions On Ubuntu","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/02\/How-To-Install-Multiple-PHP-Versions-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/02\/How-To-Install-Multiple-PHP-Versions-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/02\/How-To-Install-Multiple-PHP-Versions-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/02\/How-To-Install-Multiple-PHP-Versions-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/02\/How-To-Install-Multiple-PHP-Versions-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=5710"}],"version-history":[{"count":4,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5710\/revisions"}],"predecessor-version":[{"id":7494,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/5710\/revisions\/7494"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/6155"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=5710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=5710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=5710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}