{"id":2253,"date":"2026-01-28T10:35:49","date_gmt":"2026-01-28T02:35:49","guid":{"rendered":"https:\/\/sanyiqin.com\/?p=2253"},"modified":"2026-03-03T11:06:40","modified_gmt":"2026-03-03T03:06:40","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8sing-box%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac%e6%90%ad%e5%bb%ba%e4%bb%a3%e7%90%86%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/sanyiqin.com\/?p=2253","title":{"rendered":"\u5982\u4f55\u4f7f\u7528sing-box\u4e00\u952e\u5b89\u88c5\u811a\u672c\u642d\u5efa\u4ee3\u7406\u73af\u5883"},"content":{"rendered":"<p>sing-box \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7edf\u4e00\u7f51\u7edc\u4ee3\u7406\u6838\u5fc3\uff0c\u652f\u6301 REALITY, TUIC, Hysteria2, VLESS, VMess, Shadowsocks \u7b49\u591a\u79cd\u534f\u8bae\u3002<code>233boy\/sing-box<\/code> \u662f\u4e00\u4e2a\u5e7f\u53d7\u6b22\u8fce\u7684\u4e00\u952e\u5b89\u88c5\u548c\u7ba1\u7406\u811a\u672c\uff0c\u5b83\u6781\u5927\u5730\u7b80\u5316\u4e86\u5728 Linux \u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u548c\u914d\u7f6e sing-box \u7684\u8fc7\u7a0b\u3002<\/p>\n<h3>\u811a\u672c\u7279\u70b9<\/h3>\n<ul>\n<li><strong>\u5feb\u901f\u90e8\u7f72\uff1a<\/strong> \u81ea\u52a8\u5316\u5b89\u88c5\u548c\u914d\u7f6e\u6d41\u7a0b\u3002<\/li>\n<li><strong>\u534f\u8bae\u652f\u6301\uff1a<\/strong> \u9ed8\u8ba4\u652f\u6301 VLESS-REALITY\uff0c\u5e76\u652f\u6301 TUIC, Hysteria2, Trojan, VMess, Shadowsocks 2022 \u7b49\u51e0\u4e4e\u6240\u6709\u4e3b\u6d41\u534f\u8bae\u3002<\/li>\n<li><strong>\u81ea\u52a8 TLS\uff1a<\/strong> \u53ef\u81ea\u52a8\u4e3a\u60a8\u7684\u57df\u540d\u7533\u8bf7\u548c\u7eed\u7b7e TLS \u8bc1\u4e66\u3002<\/li>\n<li><strong>\u7b80\u6613\u7ba1\u7406\uff1a<\/strong> \u63d0\u4f9b\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u884c\u7ba1\u7406\u9762\u677f (<code>sing-box<\/code> \u6216 <code>sb<\/code>)\uff0c\u7528\u4e8e\u6dfb\u52a0\u3001\u5220\u9664\u3001\u4fee\u6539\u548c\u67e5\u770b\u914d\u7f6e\u3002<\/li>\n<li><strong>\u8f85\u52a9\u529f\u80fd\uff1a<\/strong> \u5185\u7f6e BBR \u542f\u7528\u3001\u4f2a\u88c5\u7f51\u7ad9\u66f4\u6539\u7b49\u529f\u80fd\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>1. \u51c6\u5907\u5de5\u4f5c\uff1a\u5b89\u88c5 Wget<\/h3>\n<p>\u5728\u6267\u884c\u5b89\u88c5\u811a\u672c\u4e4b\u524d\uff0c\u60a8<strong>\u5fc5\u987b<\/strong>\u786e\u4fdd\u60a8\u7684\u670d\u52a1\u5668\u4e0a\u5df2\u5b89\u88c5 <code>wget<\/code> \u5de5\u5177\u3002<\/p>\n<ul>\n<li>\n<p><strong>\u5bf9\u4e8e Debian \/ Ubuntu \u7cfb\u7edf\uff1a<\/strong><\/p>\n<pre><code class=\"language-bash\">sudo apt update &amp;&amp; sudo apt install wget -y\n<\/code><\/pre>\n<\/li>\n<li>\n<p><strong>\u5bf9\u4e8e CentOS \/ RHEL \u7cfb\u7edf\uff1a<\/strong><\/p>\n<pre><code class=\"language-bash\">sudo yum install wget -y\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2. \u6267\u884c\u5b89\u88c5\u811a\u672c<\/h3>\n<p>\u5728\u786e\u4fdd <code>wget<\/code> \u5df2\u5b89\u88c5\u540e\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fd0\u884c\u4e00\u952e\u5b89\u88c5\u811a\u672c\uff1a<\/p>\n<pre><code class=\"language-bash\">bash &lt;(wget -qO- -o- https:\/\/github.com\/233boy\/sing-box\/raw\/main\/install.sh)\n<\/code><\/pre>\n<p>\u811a\u672c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u9ed8\u8ba4\u4f1a\u81ea\u52a8\u521b\u5efa\u4e00\u4e2a VLESS-REALITY \u914d\u7f6e\u4f9b\u60a8\u6d4b\u8bd5\u4f7f\u7528\u3002<\/p>\n<h3>3. \u7ba1\u7406\u4e0e\u4f7f\u7528<\/h3>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u968f\u65f6\u5728 SSH \u7ec8\u7aef\u4e2d\u8f93\u5165 <code>sing-box<\/code> \u6216\u66f4\u7b80\u5355\u7684 <code>sb<\/code> \u547d\u4ee4\u6765\u542f\u52a8\u7ba1\u7406\u9762\u677f\u3002<\/p>\n<h4>\u5e38\u7528\u547d\u4ee4<\/h4>\n<ul>\n<li><code>sb<\/code>\uff1a\u663e\u793a\u7ba1\u7406\u83dc\u5355\uff08\u5305\u542b\u6240\u6709\u529f\u80fd\u7684\u6570\u5b57\u5feb\u6377\u952e\uff09\u3002<\/li>\n<li><code>sb add<\/code>\uff1a\u6dfb\u52a0\u4e00\u4e2a\u65b0\u914d\u7f6e\uff08\u4f8b\u5982 <code>sb add reality<\/code> \u6216 <code>sb add hy<\/code>\uff09\u3002<\/li>\n<li><code>sb change<\/code>\uff1a\u4fee\u6539\u73b0\u6709\u914d\u7f6e\u7684\u53c2\u6570\u3002<\/li>\n<li><code>sb info<\/code>\uff1a\u67e5\u770b\u5df2\u914d\u7f6e\u7684\u8be6\u7ec6\u4fe1\u606f\u6216URL\u3002<\/li>\n<li><code>sb url<\/code>\uff1a\u751f\u6210\u914d\u7f6e\u7684\u5206\u4eab\u94fe\u63a5\u3002<\/li>\n<li><code>sb qr<\/code>\uff1a\u751f\u6210\u914d\u7f6e\u7684\u4e8c\u7ef4\u7801\u3002<\/li>\n<li><code>sb del<\/code>\uff1a\u5220\u9664\u4e00\u4e2a\u6307\u5b9a\u7684\u914d\u7f6e\u3002<\/li>\n<li><code>sb update<\/code>\uff1a\u66f4\u65b0 sing-box \u6838\u5fc3\u6216\u811a\u672c\u3002<\/li>\n<li><code>sb restart<\/code>\uff1a\u91cd\u542f sing-box \u670d\u52a1\u3002<\/li>\n<li><code>sb log<\/code>\uff1a\u67e5\u770b sing-box \u7684\u5b9e\u65f6\u65e5\u5fd7\u3002<\/li>\n<li><code>sb bbr<\/code>\uff1a\u5b89\u88c5\u5e76\u542f\u7528 BBR\u3002<\/li>\n<li><code>sb uninstall<\/code>\uff1a\u5378\u8f7d sing-box \u548c\u6b64\u811a\u672c\u3002<\/li>\n<\/ul>\n<h3>4. \u5e38\u89c1\u95ee\u9898\u6392\u67e5<\/h3>\n<p>\u5982\u679c\u60a8\u5728\u5b89\u88c5\u540e\u65e0\u6cd5\u8fde\u63a5\uff0c\u6700\u5e38\u89c1\u7684\u539f\u56e0\u662f\u9632\u706b\u5899\u548c\u7aef\u53e3\u95ee\u9898\u3002<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5\u670d\u52a1\u5668\u9632\u706b\u5899\uff1a<\/strong><br \/>\u8bf7\u786e\u4fdd\u60a8\u914d\u7f6e\u7684\u7aef\u53e3\uff08\u4f8b\u5982 443\uff09\u5df2\u7ecf\u5728\u60a8\u670d\u52a1\u5668\u7684\u9632\u706b\u5899\u4e2d\u653e\u884c\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u60a8\u5728 NovixLink \u63a7\u5236\u9762\u677f\u4e2d\u4f7f\u7528\u4e86\u5b89\u5168\u7ec4\uff0c\u8bf7\u68c0\u67e5\u5b89\u5168\u7ec4\u89c4\u5219\u3002<\/li>\n<li>\u60a8\u53ef\u4ee5\u5c1d\u8bd5\u5173\u95ed\u7cfb\u7edf\u81ea\u5e26\u9632\u706b\u5899\uff08\u4e0d\u63a8\u8350\u5728\u751f\u4ea7\u73af\u5883\u6c38\u4e45\u5173\u95ed\uff09\uff1a\n<pre><code class=\"language-bash\">systemctl stop firewalld &amp;&amp; systemctl disable firewalld\nufw disable\n<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u7aef\u53e3\u5360\u7528\uff1a<\/strong><br \/>\u786e\u4fdd\u60a8\u9009\u62e9\u7684\u7aef\u53e3\u6ca1\u6709\u88ab\u5176\u4ed6\u7a0b\u5e8f\uff08\u5982 Web \u670d\u52a1\u5668\uff09\u5360\u7528\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u5ba2\u6237\u7aef\u5185\u6838\uff1a<\/strong><br \/>\u786e\u4fdd\u60a8\u672c\u5730\u5ba2\u6237\u7aef\uff08\u5982 v2rayN, Shadowrocket, SingBox \u5ba2\u6237\u7aef\u7b49\uff09\u7684 sing-box \u5185\u6838\u4e3a\u6700\u65b0\u7248\u672c\uff0c\u4ee5\u517c\u5bb9 REALITY, Hysteria2 \u7b49\u65b0\u534f\u8bae\u3002<\/p>\n<\/li>\n<\/ol>\n<hr \/>\n<blockquote>\n<p><strong>\u5f15\u7528\u6765\u6e90 (Reference Source):<\/strong><\/p>\n<p>\u672c\u6587\u5185\u5bb9\u57fa\u4e8e\u5e76\u91cd\u5199\u81ea <code>233boy\/sing-box<\/code> \u9879\u76ee\u7684\u5b98\u65b9\u6587\u6863\u3002\u5982\u9700\u6700\u5b8c\u6574\u7684\u529f\u80fd\u5217\u8868\u548c\u9ad8\u7ea7\u7528\u6cd5\uff0c\u8bf7\u53c2\u9605\u9879\u76ee\u6e90\u3002<br \/>* <strong>Github \u9879\u76ee\u5730\u5740\uff1a<\/strong> <code>https:\/\/github.com\/233boy\/sing-box<\/code><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>sing-box \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u7edf\u4e00\u7f51\u7edc\u4ee3\u7406\u6838\u5fc3\uff0c\u652f\u6301 REALITY, TUIC, Hysteria2, &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[64],"tags":[],"class_list":["post-2253","post","type-post","status-publish","format-standard","hentry","category-setup"],"_links":{"self":[{"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/posts\/2253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2253"}],"version-history":[{"count":1,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/posts\/2253\/revisions"}],"predecessor-version":[{"id":2254,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=\/wp\/v2\/posts\/2253\/revisions\/2254"}],"wp:attachment":[{"href":"https:\/\/sanyiqin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanyiqin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}