{"id":440,"date":"2025-06-07T12:08:16","date_gmt":"2025-06-07T04:08:16","guid":{"rendered":"https:\/\/catcat7.com\/?p=440"},"modified":"2025-06-07T12:10:15","modified_gmt":"2025-06-07T04:10:15","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8linux%e4%b8%8a%e5%ae%89%e8%a3%85%e5%92%8c%e8%bf%90%e8%a1%8cclash","status":"publish","type":"post","link":"https:\/\/catcat7.com\/index.php\/2025\/06\/07\/%e5%a6%82%e4%bd%95%e5%9c%a8linux%e4%b8%8a%e5%ae%89%e8%a3%85%e5%92%8c%e8%bf%90%e8%a1%8cclash\/","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e0a\u5b89\u88c5\u548c\u8fd0\u884cClash"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u8a02\u95b1\u9023\u63a5<br>{{subscribeUrl}}<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u65b9\u6cd5\u4e00\uff1a\u672c\u5730\u76ee\u5f55\u8fd0\u884c\uff08\u5982\u679c\u65e0\u6cd5\u4f7f\u7528\u53ef\u4ee5\u7528\u65b9\u6cd5\u4e8c\uff09<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u4e0b\u8f7dclashForLinux\u6587\u4ef6<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>wget \"https:\/\/drive.google.com\/uc?export=download&amp;id=1v7rgH3Me87icnBra3LuefwYbPdUmXuHA\" -O clashForLinux.tar.gz<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u89e3\u538b<\/h3>\n\n\n\n<p><code>tar -xzf clashForLinux.tar.gz<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u8fdb\u5165\u76ee\u5f55<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cd clashForLinux<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u4e0b\u8f7d\u914d\u7f6e\u6587\u4ef6\u5230\u5f53\u524d\u76ee\u5f55<\/h3>\n\n\n\n<p><code>wget \"\u4f60\u7684\u8ba2\u9605\u94fe\u63a5&amp;flag=clash\" -O config.yaml<\/code><\/p>\n\n\n\n<p>\u6216\u8005<\/p>\n\n\n\n<p><code>wget \"{{subscribeUrl}}&amp;flag=clash\" -O config.yaml<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u7ed9clash\u6dfb\u52a0\u6267\u884c\u6743\u9650<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x clash<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u542f\u52a8clash<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/clash<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">&#8212;<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">\u7ba1\u7406\u9762\u677f\u8bbf\u95ee<\/h2>\n\n\n\n<p>\u542f\u52a8clash\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u7ba1\u7406\uff1a<\/p>\n\n\n\n<p>\u65b9\u5f0f\u4e00\uff1a\u5728\u7ebf\u9762\u677f\uff08\u63a8\u8350\uff09<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>&#8211; \u8bbf\u95ee\uff1ahttps:\/\/clash.razord.top\/#\/proxies<\/li>\n\n\n\n<li>&#8211; \u5728Host\u680f\u586b\u5165\uff1a127.0.0.1:9090<\/li>\n\n\n\n<li>&#8211; \u5728Secret\u680f\u586b\u5165\u5bc6\u7801<br>Kx9mP2nQ7vR4sL8jH3wF6yE1tZ5uB0gC<\/li>\n\n\n\n<li>&#8211; \u9ede\u64ca\u78ba\u5b9a(\u5bc6\u78bc\u4e00\u5b9a\u8981\u586b,\u5426\u5247\u7121\u6cd5\u78ba\u5b9a)<\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53ef\u4ee5\u5207\u6362\u8282\u70b9\u3001\u67e5\u770b\u8fde\u63a5\u72b6\u6001\u7b49<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u4e8c\uff1a\u5b89\u88c5\u5230\u7cfb\u7edf<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">1. \u4e0b\u8f7d\u6587\u4ef6<\/h2>\n\n\n\n<p>wget &#8220;https:\/\/drive.google.com\/uc?export=download&amp;id=1v7rgH3Me87icnBra3LuefwYbPdUmXuHA&#8221; -O clashForLinux.tar.gz<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. \u89e3\u538b<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>tar -xzf clashForLinux.tar.gz<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">3. \u8fdb\u5165\u76ee\u5f55<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd clashForLinux<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4. \u7ed9clash\u6dfb\u52a0\u6267\u884c\u6743\u9650<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod +x clash<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">5. \u5b89\u88c5clash\u5230\u7cfb\u7edf\u8def\u5f84\uff08\u53ef\u9009\uff09<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv clash \/usr\/local\/bin\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod +x \/usr\/local\/bin\/clash<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">6. \u521b\u5efa\u914d\u7f6e\u76ee\u5f55<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p ~\/.config\/clash\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">7. \u79fb\u52a8Country.mmdb\u5230\u914d\u7f6e\u76ee\u5f55<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>mv Country.mmdb ~\/.config\/clash\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8. \u4e0b\u8f7d\u914d\u7f6e\u6587\u4ef6\u5230\u914d\u7f6e\u76ee\u5f55<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>wget \"\u4f60\u7684\u8ba2\u9605\u94fe\u63a5&amp;flag=clash\" -O ~\/.config\/clash\/config.yaml<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">9. \u542f\u52a8clash<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>clash -d ~\/.config\/clash\/<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u8bf4\u660e\uff1a<\/h1>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fdb\u5165clash\u76ee\u5f55<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/root\/.config\/clash\/<\/code><\/pre>\n\n\n\n<p>\u91cc\u9762\u6709config.yaml\uff08\u8ba2\u9605\u6587\u4ef6\uff09\uff06<br>Country.mmdb<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u66f4\u65b0\u914d\u7f6e\u6587\u4ef6\uff08\u5982\u679c\u9700\u8981\uff09<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>mv config.yaml config1.yaml\uff08\u5907\u4efd\u539f\u8ba2\u9605\u6587\u4ef6\uff09<\/li>\n\n\n\n<li>wget &#8220;\u65b0\u7684\u8ba2\u9605\u94fe\u63a5&amp;flag=clash&#8221; -O config.yaml<br>\uff08\u4e0b\u8f7d\u65b0\u7684\u8ba2\u9605\u6587\u4ef6\uff09<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u542f\u52a8<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/clash<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u542f\u52a8\u540e\u9a8c\u8bc1<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u68c0\u67e5clash\u662f\u5426\u8fd0\u884c<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>ps aux | grep clash<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u6d4b\u8bd5\u4ee3\u7406\u662f\u5426\u5de5\u4f5c<\/h3>\n\n\n\n<p><code>curl --proxy http:\/\/127.0.0.1:7890 google.com<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u6ce8\u610f\u4e8b\u9879<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u914d\u7f6e\u6587\u4ef6\u5fc5\u987b\u547d\u540d\u4e3a config.yaml<\/strong><\/li>\n\n\n\n<li>\u9ed8\u8ba4\u4ee3\u7406\u7aef\u53e3\u901a\u5e38\u662f 7890\uff08HTTP\uff09\u548c 7891\uff08SOCKS5\uff09<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">&#8211; \u5728\u7ebf\u7ba1\u7406\u9762\u677f\uff1ahttps:\/\/clash.razord.top\/#\/proxies<\/h2>\n\n\n\n<p>&#8211;Q: \u5982\u4f55\u505c\u6b62clash\uff1fh\uff1f**<br>A: \u6309 Ctrl+C \u6216\u8005 killall clash<\/p>\n\n\n\n<p><strong>Q: \u5982\u4f55\u66f4\u65b0\u914d\u7f6e\uff1f<\/strong><br>A: \u91cd\u65b0\u4e0b\u8f7dconfig.yaml\u6587\u4ef6\uff0c\u7136\u540e\u91cd\u542fclash<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&#8212;<\/h2>\n\n\n\n<p>\u6709\u95ee\u9898\u53ef\u8054\u7cfb<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TG\uff1a https:\/\/t.me\/vflower99<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">* \u90ae\u7bb1: catcheese77@gmail.com<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n","protected":false},"excerpt":{"rendered":"<p>\u8a02\u95b1\u9023\u63a5{{subscribeUrl}} \u65b9\u6cd5\u4e00\uff1a\u672c\u5730\u76ee\u5f55\u8fd0\u884c\uff08\u5982\u679c\u65e0\u6cd5\u4f7f\u7528\u53ef\u4ee5\u7528\u65b9\u6cd5\u4e8c\uff09 1. \u4e0b\u8f7dclas [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":442,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,1],"tags":[6],"class_list":["post-440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-clash-","category-uncategorized","tag-clash"],"_links":{"self":[{"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/comments?post=440"}],"version-history":[{"count":2,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":444,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/posts\/440\/revisions\/444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/media\/442"}],"wp:attachment":[{"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/catcat7.com\/index.php\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}