Open tiansiyuan opened 1 week ago
设置HTTP和SOCKS5代理:
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7891"
将这些变量添加到~/.bashrc
或~/.zshrc
中以使其永久生效:
echo 'export http_proxy="http://127.0.0.1:7890"' >> ~/.bashrc
echo 'export https_proxy="http://127.0.0.1:7890"' >> ~/.bashrc
echo 'export all_proxy="socks5://127.0.0.1:7891"' >> ~/.bashrc
source ~/.bashrc
感谢解答。
我在一个终端里运行:
sudo ./clash -d .
INFO[0000] Start initial compatible provider ChatGPT专线
INFO[0000] Start initial compatible provider 香港智能
INFO[0000] Start initial compatible provider 全球智能
INFO[0000] Start initial compatible provider Ghelper
在一个终端里运行:
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export all_proxy="socks5://127.0.0.1:7891"
curl www.google.com
curl: (7) Failed to connect to 127.0.0.1 port 7890 after 0 ms: Couldn't connect to server
clash服务开启了吗
clash服务开启了吗
sudo ./clash -d .
INFO[0000] Start initial compatible provider ChatGPT专线
INFO[0000] Start initial compatible provider 香港智能
INFO[0000] Start initial compatible provider 全球智能
INFO[0000] Start initial compatible provider Ghelper
是这样开启吧?
服务形式启动失败...
确定路径都没错的。
进入目录后,运行./clash -d .
才可以正常运行.
没办法 systemctl start clash.service
启动
因为我用的是阿里云的 VM,没有装 X11。怎么破?