本文最后更新于698 天前,其中的信息可能已经过时,如有错误请发送邮件到takumijie@qq.com
前言
在我们使用Ubuntu部署项目的时候很多项目的依赖和文件国内不能正常访问,所以我们有了科学上网的需求,但是Linux下开启代理和其他系统可能不太一样,所以我在这里分享一下我的方法。
1,安装v2rayA
首先在科学上网的时候我们需要先安装必要的工具,这里我选择的是v2rayA,它的配置页面是web,在无图形界面的系统上会方便很多。
首先安装一下v2ray的核心
sudo apt update
sudo apt install v2ray
然后通过wget安装v2rayA
wget "https://cloud.ilibilib.top/d/%E5%AE%B6%E7%94%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%88%E4%B8%8D%E5%AE%8C%E5%85%A8%E5%8F%AF%E7%94%A8%EF%BC%89/v2rayubuntu/installer_debian_amd64_2.0.1.deb" ### 在那个文件就下载到那个文件夹
sudo apt install /path/download/installer_debian_xxx_vxxx.deb ### 自行替换 deb 包所在的实际路径
设置v2rayA自启动
sudo systemctl start v2raya.service ###启动v2rayA
sudo systemctl enable v2raya.service ###设置开机自动启动
2,配置v2rayA
v2rayA的UI是以网页的形式呈现的,所以我们打开浏览器,访问v2rayA的地址http://localhost:2017/
如果是vps远程访问需要开行对应端口

进入配置页第一次需要创建账号密码
如果忘记密码可以用下列指令重置
sudo v2raya --reset-password
具体配置方法可以查询官方文档https://v2raya.org/docs/prologue/quick-start/(需要科学上网)
也可根据其他类似客户端配置
3,设置系统代理
编辑~/.bashrc设置全局代理
vim ~/.bashrc ### 并在文件尾部添加下列文本
export http_proxy=http://127.0.0.1:20171
export http_proxy=https://127.0.0.1:20171
接下来试试访问谷歌
telnet google.com 80
### 执行上面这条指令显示下方的返回就证明正常运行且节点正常
Trying 93.46.8.90...
Connected to google.com.
Escape character is '^]'.
取消当前代理使用下列指令:
unset http_proxy https_proxy
结束
方法可能不是很完美希望不要嫌弃。





Just found this killer strategy guide for smart wagering! The psychology behind FarPlay is next level. Check out farplay download to master the mind before you roll those dice and start winning big today.
The preflop reads are everything; reading the opponent’s range is key. It reminds me of navigating a new market-you need solid intel. Check out okpk for more insights.