{"id":181,"date":"2019-03-11T10:06:39","date_gmt":"2019-03-11T02:06:39","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=181"},"modified":"2019-03-11T10:06:39","modified_gmt":"2019-03-11T02:06:39","slug":"liunx-%e6%96%b0%e6%9c%ba%e5%91%bd%e4%bb%a4%e9%9b%86%e5%90%88","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=181","title":{"rendered":"liunx \u65b0\u673a\u547d\u4ee4\u96c6\u5408"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u5e38\u7528\u547d\u4ee4<\/h2>\n\n\n\n<p>\u672c\u7bc7\u4e0d\u5b9a\u65f6\u66f4\u65b0\u8865\u5145\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5347\u7ea7\u7cfb\u7edf&amp;\u5b89\u88c5\u4f9d\u8d56<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">yum update -y &amp;&amp; yum install tar -y &amp;&amp; yum install gcc -y &amp;&amp; yum install git -y &amp;&amp; yum install wget -y &amp;&amp; yum install vim -y &amp;&amp; yum install screen -y &amp;&amp; yum install curl -y\n \u590d\u5236<\/pre>\n\n\n\n<p><code>sudo -i<\/code>&nbsp;\/\/root\u8d26\u53f7<br><code>yum update<\/code>&nbsp;\/\/\u5347\u7ea7\u8f6f\u4ef6\u548c\u5185\u6838<br><code>tar<\/code>&nbsp;\/\/\u5b89\u88c5\u89e3\u538b\u5de5\u5177<br><code>gcc<\/code>&nbsp;\/\/\u5b89\u88c5\u4f9d\u8d56\u73af\u5883<br><code>git<\/code>&nbsp;\/\/\u7528\u4e8e\u5f00\u6e90\u6e90\u7801<br><code>wget<\/code>&nbsp;\/\/\u4e0b\u8f7d\u5de5\u5177<br><code>vim<\/code>&nbsp;\/\/\u53ef\u89c6\u5316\u7f16\u8f91\u4ee3\u7801<br><code>screen<\/code>&nbsp;\/\/\u591a\u8fdb\u7a0b\uff0c\u4e0d\u6015\u65ad\u7ebf<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5347\u7ea7\u5927\u7248\u672c\u5185\u6838<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">rpm --import https:<em>\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org                     \/\/\u8f7d\u5165\u516c\u94a5<\/em>\nrpm -Uvh http:<em>\/\/www.elrepo.org\/elrepo-release-7.0-3.el7.elrepo.noarch.rpm      \/\/CentOS-7\u6e90<\/em>\nyum --disablerepo=\\* --enablerepo=elrepo-kernel repolist                       <em>\/\/\u8f7d\u5165elrepo-kernel\u5143\u6570\u636e<\/em>\nyum --disablerepo=\\* --enablerepo=elrepo-kernel list kernel*                   <em>\/\/\u67e5\u770b\u53ef\u7528\u7684rpm\u5305<\/em>\nyum --disablerepo=\\* --enablerepo=elrepo-kernel install -y kernel-ml.x86_64    <em>\/\/\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684kernel\u5185\u6838<\/em>\ngrub2-set-default 0                                                            <em>\/\/\u4fee\u6539\u7cfb\u7edf\u5f15\u5bfc<\/em>\ngrub2-mkconfig -o \/etc\/grub2.cfg\nreboot                                                                         <em>\/\/\u91cd\u542f\u7cfb\u7edf<\/em>\n \u590d\u5236<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5f00\u542fBBR\u52a0\u901f<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'net.core.default_qdisc=fq' | sudo tee -a \/etc\/sysctl.conf\necho 'net.ipv4.tcp_congestion_control=bbr' | sudo tee -a \/etc\/sysctl.conf\nsysctl -p\nsysctl net.ipv4.tcp_available_congestion_control                 <em>\/\/\u67e5\u770bbbr\u662f\u5426\u5f00\u542f<\/em>\n<em>\/\/\u8f93\u51fa\u5e94\u4e3a net.ipv4.tcp_available_congestion_control = bbr cubic reno<\/em>\nsysctl -n net.ipv4.tcp_congestion_control\n<em>\/\/\u8f93\u51fa\u5e94\u4e3a bbr<\/em>\nlsmod | grep bbr\n<em>\/\/\u8f93\u51fa\u5e94\u7c7b\u4f3c tcp_bbr  16384  28<\/em>\n \u590d\u5236<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">screen\u5b9e\u73b0\u65ad\u7ebf\u4efb\u52a1<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">screen -S xx     <em>\/\/\u65b0\u5efaxx\u4f1a\u8bdd\u7a97\u53e3<\/em>\n<em>\/\/\u9690\u85cf\u5e76\u4fdd\u7559\u5f53\u524d\u4f1a\u8bdd\u7a97\u53e3\uff1a\u6309Ctrl+A\uff0c\u518d\u6309\"D\"\u952e<\/em>\nscreen -R xx    <em>\/\/#\u6062\u590dxx\u4f1a\u8bdd\u7a97\u53e3<\/em>\n \u590d\u5236<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">lnmp\u4e00\u952e\u7aef<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/lnmp.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">LNMP<\/a><br>lnmp1.5\u6b63\u5f0f\u7248\u4e00\u952e\u5b89\u88c5\uff0c\u5efa\u8bae\u914d\u5408screen\u4f7f\u7528\uff01<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">wget http:\/\/soft.vpser.net\/lnmp\/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz &amp;&amp; tar zxf lnmp1.5.tar.gz &amp;&amp; cd lnmp1.5 &amp;&amp; .\/install.sh lnmp\n \u590d\u5236<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5e38\u7528\u547d\u4ee4 \u672c\u7bc7\u4e0d\u5b9a\u65f6\u66f4\u65b0\u8865\u5145\u3002 \u5347\u7ea7\u7cfb\u7edf&amp;\u5b89\u88c5\u4f9d\u8d56 yum update -y &amp;&amp;  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=181\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cliunx \u65b0\u673a\u547d\u4ee4\u96c6\u5408\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}