开机SSH登录
- Amazon Linux,用户名是
ec2-user
。 - CentOS AMI,用户名是
centos
或ec2-user
。 - Debian AMI,用户名称是
admin
。 - Ubuntu AMI,用户名称是
ubuntu
。
系统账号
系统管理需root账号登录
sudo -i
1.创建roo密码sudo passwd root
2.登录su root
3.系统修改root登录vi /etc/ssh/sshd_config
查找:PermitRootLogin 改为:PermitRootLogin yes 查找:PasswordAuthentication no 改为:PasswordAuthentication yes 查找:UsePAM yes 改为:UsePAM no
关闭防火墙
除了关掉平台防火墙,还要关闭系统自带防火墙
关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
或者开放所有端口
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F
修改主机名将PRESERVE_HOSTINFO=0
中的的值0
修改为1
vi /etc/oci-hostname.conf
一键搭建
安装前需要准备
- 1.关闭防火墙
- 2.域名解析
-
- SSR一键安装
bash -c "$(curl -fsSL https://raw.githubusercontent.com/JeannieStudio/all_install/master/SixForOne_install.sh)"
- V2Ray一键安装
bash <(curl -sL https://gist.githubusercontent.com/JodenHe/815dd91277b722d36a860d39c2296083/raw/7f2b5ac0f8137b245d44741fc4a9f40cffa36755/v2Ray-install.sh)
- XRay一键安装
bash <(curl -sL https://raw.githubusercontent.com/daveleung/hijkpw-scripts-mod/main/xray_mod1.sh)
- SSR一键安装
如果菜单没出现,CentOS系统请输入 yum install -y curl,Ubuntu/Debian系统请输入 sudo apt install -y curl,然后再次运行上面的命令:
开启BBR加速
- 系统支持:CentOS 6+,Debian 7+,Ubuntu 12+
- 虚拟技术:OpenVZ 以外的,比如 KVM、Xen、VMware
- 内存要求:≥128M
使用root用户登录,运行以下命令:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
模块启动测试:返回值有tcp_bbr说明已启动
lsmod | grep bbr
clash连接vmess出错
parsers:
- url: 填写订阅地址
code: |
module.exports.parse = async (raw, { axios, yaml, notify, console }, { name, url, interval, selected }) => {
const obj = yaml.parse(raw)
obj.proxies.forEach( v => {
if (v.network === 'ws' && !v['ws-opts']) {
const opts = {}
opts.path = v['ws-path']
opts.headers = v['ws-headers']
v['ws-opts'] = opts
}
})
return yaml.stringify(obj)
}
即可自动重写旧版配置,之后重新更下订阅地址,
如果有多个订阅地址,重复以上代码