在谷歌上找了半天在Linux上安装clash的方法,感觉都不是非常好用。
然后就发现了这个https://github.com/juewuy/ShellClash
一个脚本,直接安装,非常nice。
需要在服务器上安装wget
Use curl:
1 2 3 4 5 6
| #by github-CDN export url='https://raw.githubusercontent.com/juewuy/ShellClash/master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null #by jsdelivrCDN export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null #by myserver export url='http://shellclash.ga/' && sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
Use wget:
1 2
| #By jsdelivrCDN export url='https://cdn.jsdelivr.net/gh/juewuy/ShellClash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh && sh /tmp/install.sh && source /etc/profile &> /dev/null
|
跳着一个自己能用的然后安装就行了,傻瓜式操作。