Loading... <h2>下载并解压客户端</h2> <pre class="corepress-code-pre"><code>cd /opt/ wget https://github.com/klzgrad/naiveproxy/releases/download/v119.0.6045.66-1/naiveproxy-v119.0.6045.66-1-linux-x64.tar.xz xz -d naiveproxy-v119.0.6045.66-1-linux-x64.tar.xz tar -xvf naiveproxy-v119.0.6045.66-1-linux-x64.tar cd naiveproxy-v119.0.6045.66-1-linux-x64</code></pre> <h2>修改配置文件</h2> <pre class="corepress-code-pre"><code>vi config.json</code></pre> 如下: <pre class="corepress-code-pre"><code>{ "listen": "socks://127.0.0.1:1080", "proxy": "https://user:pass@domain.example", "log": "" } </code></pre> 修改<code>"listen"</code>后的socks为http,修改<code>"proxy"</code>后为你服务端的地址,修改后如下: <pre class="corepress-code-pre"><code>{ "listen": "http://127.0.0.1:1080", "proxy": "https://user:pass@domain.example", "log": "" } </code></pre> <h2></h2> <h2>运行程序:</h2> <pre class="corepress-code-pre"><code>nohup ./naive &</code></pre> <h2>添加系统本地代理</h2> <pre class="corepress-code-pre"><code>touch /etc/profile.d/proxy.sh echo 'export http_proxy=http://127.0.0.1:1080' | sudo tee /etc/profile.d/proxy.sh echo 'export https_proxy=http://127.0.0.1:1080' | sudo tee -a /etc/profile.d/proxy.sh</code></pre> <h2>刷新环境变量</h2> <pre class="corepress-code-pre"><code>source /etc/profile</code></pre> 最后修改:2024 年 04 月 01 日 © 允许规范转载 赞 2 如果觉得我的文章对你有用,请随意赞赏