{"id":45262,"date":"2024-10-06T21:37:14","date_gmt":"2024-10-06T13:37:14","guid":{"rendered":"https:\/\/server.hk\/cnblog\/45262\/"},"modified":"2024-10-06T21:37:15","modified_gmt":"2024-10-06T13:37:15","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-centos-9-stream-%e4%b8%8a%e5%ae%89%e8%a3%9d-tor-%e7%80%8f%e8%a6%bd%e5%99%a8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/45262\/","title":{"rendered":"\u5982\u4f55\u5728 CentOS 9 Stream \u4e0a\u5b89\u88dd Tor \u700f\u89bd\u5668"},"content":{"rendered":"<h1 id=\"%e5%a6%82%e4%bd%95%e5%9c%a8-centos-9-stream-%e4%b8%8a%e5%ae%89%e8%a3%9d-tor-%e7%80%8f%e8%a6%bd%e5%99%a8-lqZPezPGcJ\">\u5982\u4f55\u5728 CentOS 9 Stream \u4e0a\u5b89\u88dd Tor \u700f\u89bd\u5668<\/h1>\n<p>Tor \u700f\u89bd\u5668\u662f\u4e00\u6b3e\u5c08\u70ba\u4fdd\u8b77\u7528\u6236\u96b1\u79c1\u800c\u8a2d\u8a08\u7684\u7db2\u9801\u700f\u89bd\u5668\uff0c\u5b83\u901a\u904e\u591a\u5c64\u52a0\u5bc6\u548c\u96a8\u6a5f\u8def\u7531\u6280\u8853\u4f86\u96b1\u85cf\u7528\u6236\u7684\u771f\u5be6 IP \u5730\u5740\u3002\u5c0d\u65bc\u5e0c\u671b\u5728\u7db2\u7d61\u4e0a\u4fdd\u6301\u533f\u540d\u7684\u7528\u6236\u4f86\u8aaa\uff0cTor \u662f\u4e00\u500b\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 CentOS 9 Stream \u4e0a\u5b89\u88dd Tor \u700f\u89bd\u5668\u3002<\/p>\n<h2 id=\"%e5%89%8d%e6%9c%9f%e6%ba%96%e5%82%99-lqZPezPGcJ\">\u524d\u671f\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u60a8\u7684 CentOS 9 Stream \u7cfb\u7d71\u5df2\u7d93\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u66f4\u65b0\u7cfb\u7d71\uff1a<\/p>\n<pre><code>sudo dnf update -y<\/code><\/pre>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5b89\u88dd\u4e00\u4e9b\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff0c\u9019\u4e9b\u5305\u5c07\u5e6b\u52a9\u60a8\u9806\u5229\u5b89\u88dd Tor \u700f\u89bd\u5668\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\uff1a<\/p>\n<pre><code>sudo dnf install -y epel-release<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-tor-%e7%80%8f%e8%a6%bd%e5%99%a8-lqZPezPGcJ\">\u5b89\u88dd Tor \u700f\u89bd\u5668<\/h2>\n<p>Tor \u700f\u89bd\u5668\u7684\u5b89\u88dd\u53ef\u4ee5\u901a\u904e\u5b98\u65b9\u7684 Tor Project \u5b58\u5132\u5eab\u4f86\u5b8c\u6210\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u6dfb\u52a0 Tor \u7684\u5b98\u65b9\u5b58\u5132\u5eab\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u5275\u5efa\u4e00\u500b\u65b0\u7684 repo \u6587\u4ef6\uff1a<\/p>\n<pre><code>sudo nano \/etc\/yum.repos.d\/tor.repo<\/code><\/pre>\n<p>\u5728\u6253\u958b\u7684\u7de8\u8f2f\u5668\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5167\u5bb9\uff1a<\/p>\n<pre><code>[tor]\nname=Tor\nbaseurl=https:\/\/rpm.torproject.org\/centos\/9\/$(arch)\/tor.repo\nenabled=1\ngpgcheck=1\ngpgkey=https:\/\/rpm.torproject.org\/torproject.org.gpg<\/code><\/pre>\n<p>\u4fdd\u5b58\u4e26\u9000\u51fa\u7de8\u8f2f\u5668\u3002\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5c0e\u5165 Tor \u7684 GPG \u5bc6\u9470\uff1a<\/p>\n<pre><code>sudo rpm --import https:\/\/rpm.torproject.org\/torproject.org.gpg<\/code><\/pre>\n<p>\u73fe\u5728\uff0c\u60a8\u53ef\u4ee5\u5b89\u88dd Tor \u700f\u89bd\u5668\u4e86\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<pre><code>sudo dnf install -y tor<\/code><\/pre>\n<h2 id=\"%e5%95%9f%e5%8b%95-tor-%e6%9c%8d%e5%8b%99-lqZPezPGcJ\">\u555f\u52d5 Tor \u670d\u52d9<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u555f\u52d5 Tor \u670d\u52d9\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 Tor \u670d\u52d9\uff1a<\/p>\n<pre><code>sudo systemctl start tor<\/code><\/pre>\n<p>\u70ba\u4e86\u78ba\u4fdd Tor \u670d\u52d9\u5728\u7cfb\u7d71\u555f\u52d5\u6642\u81ea\u52d5\u555f\u52d5\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>sudo systemctl enable tor<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-tor-%e7%80%8f%e8%a6%bd%e5%99%a8-lqZPezPGcJ\">\u5b89\u88dd Tor \u700f\u89bd\u5668<\/h2>\n<p>Tor \u700f\u89bd\u5668\u7684\u5b89\u88dd\u53ef\u4ee5\u901a\u904e\u4e0b\u8f09\u5b98\u65b9\u7684 Tor \u700f\u89bd\u5668\u5305\u4f86\u5b8c\u6210\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 wget \u547d\u4ee4\u4f86\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u7684 Tor \u700f\u89bd\u5668\uff1a<\/p>\n<pre><code>wget https:\/\/www.torproject.org\/dist\/torbrowser\/11.5.2\/tor-browser-linux64-11.5.2_en-US.tar.xz<\/code><\/pre>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u89e3\u58d3\u7e2e\u8a72\u6587\u4ef6\uff1a<\/p>\n<pre><code>tar -xvf tor-browser-linux64-11.5.2_en-US.tar.xz<\/code><\/pre>\n<p>\u9032\u5165\u89e3\u58d3\u5f8c\u7684\u76ee\u9304\uff1a<\/p>\n<pre><code>cd tor-browser_en-US<\/code><\/pre>\n<p>\u6700\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f86\u555f\u52d5 Tor \u700f\u89bd\u5668\uff1a<\/p>\n<pre><code>.\/start-tor-browser<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae-tor-%e7%80%8f%e8%a6%bd%e5%99%a8-lqZPezPGcJ\">\u914d\u7f6e Tor \u700f\u89bd\u5668<\/h2>\n<p>\u9996\u6b21\u555f\u52d5 Tor \u700f\u89bd\u5668\u6642\uff0c\u60a8\u5c07\u770b\u5230\u4e00\u500b\u914d\u7f6e\u7a97\u53e3\u3002\u60a8\u53ef\u4ee5\u9078\u64c7\u76f4\u63a5\u9023\u63a5\u5230 Tor \u7db2\u7d61\uff0c\u6216\u8005\u6839\u64da\u9700\u8981\u9032\u884c\u9032\u4e00\u6b65\u7684\u914d\u7f6e\u3002\u5b8c\u6210\u5f8c\uff0c\u60a8\u5c31\u53ef\u4ee5\u958b\u59cb\u4f7f\u7528 Tor \u700f\u89bd\u5668\u4f86\u700f\u89bd\u7db2\u9801\u4e86\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-lqZPezPGcJ\">\u7e3d\u7d50<\/h2>\n<p>\u5728 CentOS 9 Stream \u4e0a\u5b89\u88dd Tor \u700f\u89bd\u5668\u7684\u904e\u7a0b\u76f8\u5c0d\u7c21\u55ae\uff0c\u901a\u904e\u6dfb\u52a0\u5b98\u65b9\u5b58\u5132\u5eab\u3001\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\u4ee5\u53ca\u4e0b\u8f09\u548c\u914d\u7f6e Tor \u700f\u89bd\u5668\uff0c\u60a8\u5c31\u80fd\u5920\u5b89\u5168\u5730\u4e0a\u7db2\u4e26\u4fdd\u8b77\u60a8\u7684\u96b1\u79c1\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u4f86\u904b\u884c Tor \u6216\u5176\u4ed6\u61c9\u7528\uff0c\u8003\u616e\u4f7f\u7528 <a href=\"https:\/\/server.hk\">\u9999\u6e2f\u4f3a\u670d\u5668<\/a> \u6216 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 CentOS 9 Stream \u4e0a\u5b89\u88dd Tor \u700f\u89bd\u5668\uff0c\u4fdd\u8b77\u60a8\u7684\u96b1\u79c1\u4e26\u5b89\u5168\u5730\u700f\u89bd\u7db2\u7d61\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-45262","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=45262"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45262\/revisions"}],"predecessor-version":[{"id":45263,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/45262\/revisions\/45263"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=45262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=45262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=45262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}