{"componentChunkName":"component---src-templates-blog-post-js","path":"/tech/2018-12-06-Add-Swap/","result":{"data":{"site":{"siteMetadata":{"title":"Thankwsx's Diary"}},"markdownRemark":{"id":"67a3fecb-b959-54a4-8445-d559542f101b","excerpt":"1g内存的主机，设置swap空间为2g。其他酌情处理。","html":"<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">dd if=/dev/zero of=/opt/rh/swap bs=1024 count=2048000\nmkdir /opt/rh\nmkswap /opt/rh/swap \nchmod 600 /opt/rh/swap \nswapon /opt/rh/swap</code></pre></div>\n<p>1g内存的主机，设置swap空间为2g。其他酌情处理。</p>","frontmatter":{"title":"2018-12-06 增加linux系统swap分区","date":"December 06, 2018"}}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"/tech/2018-12-06-Add-Swap/","previous":{"fields":{"slug":"/201812/2018-12-04-Meet/"},"frontmatter":{"title":"2018-12-04 碰头"}},"next":{"fields":{"slug":"/201812/2018-12-05-Return/"},"frontmatter":{"title":"2018-12-05 回归"}}}}}