免费甲骨文搭建V2ray
免费甲骨文搭建V2ray
甲骨文官网:https://www.oracle.com/cn/cloud/free/
①获取root权限:
sudo -i
②
V2ray一键安装指令:
bash <(curl -s -L https://git.io/v2ray.sh)
一路全部默认即可
输入代码生成Vmess URL 链接:v2ray url
备注非常:重要
使用Oracle Cloud free 免费云搭建了v2ray / shadowsockR, 在 子网 -> 安全列表 -> 入网规则 里也打开了对应的端口,但还是无法科学上网。
原来oracle cloud与 aws等云不同,需要关闭防火墙或iptable。
解决方法:
centos操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#关闭iptables
service iptables stop
#去掉iptables开机启动
chkconfig iptables off
oracle Linux操作如下:
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
ubuntu操作如下:
#Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
#强制删除
rm -rf /etc/iptables && reboot
脚本一键安装 BBR 加速
使用root用户登录服务器,执行以下命令:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
安装大概需要两分钟,安装完成后会提示是否重启服务器
输入 y 重启服务器
重启需要一般只要几十秒
重新连接服务器,验证是否成功安装最新内核并开启 BBR 加速,执行命令:
uname -r
内核版本显示为最新版就表示 BBR 加速安装完成了
成功安装 BBR 加速的 VPS 速度一般会有数倍提升
4、V2Ray一键安装代码
bash <(curl -s -L https://git.io/v2ray-setup.sh)
#放行端口
iptables -I INPUT -p tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
BBR加速
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
5、科学上网软件下载
软件下载:https://github.com/Kejifaxian/welcome
评论
发表评论