# 一键脚本合集

# VPS 测速

# 测速脚本

# 一号脚本

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash

# 二号脚本

wget -qO- bench.sh | bash

# BBR

# 千影 BBR Plus

来源

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
# 跳出图形界面选 No

# 秋水 BBR

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

# 解决 grub.conf 或 grub.cfg 缺失

# /boot/grub/grub.conf 缺失
yum install -y grub
grub-mkconfig -o /boot/grub/grub.conf

# /boot/grub2/grub.cfg 缺失
yum install -y grub2
grub2-mkconfig -o /boot/grub2/grub.cfg

# 科学上网

# wulabing/V2Ray_ws-tls_bash_onekey

来源

wget -N --no-check-certificate -q -O install.sh "https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh" && chmod +x install.sh && bash install.sh

# 233boy/v2ray

来源

wget https://git.io/v2ray.sh && chmod +x v2ray.sh && ./v2ray.sh

# 秋水SSR

# 安装

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh && chmod +x shadowsocksR.sh && ./shadowsocksR.sh 2>&1 | tee shadowsocksR.log

# 卸载

./shadowsocksR.sh uninstall

# 默认信息

服务器端口:自己设定(如不设定,默认为 8989)
密码:自己设定(如不设定,默认为 teddysun.com)
加密方式:自己设定(如不设定,默认为 aes-256-cfb)
协议(Protocol):自己设定(如不设定,默认为 origin)
混淆(obfs):自己设定(如不设定,默认为 plain)

# 使用命令

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status
配置文件路径:/etc/shadowsocks.json
日志文件路径:/var/log/shadowsocks.log
代码安装目录:/usr/local/shadowsocks

# 多用户配置

{
"server":"0.0.0.0",
"server_ipv6": "[::]",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
    "8989":"password1",
    "8990":"password2""8991":"password3"
},
"timeout":300,
"method":"aes-256-cfb",
"protocol": "origin",
"protocol_param": "",
"obfs": "plain",
"obfs_param": "",
"redirect": "",
"dns_ipv6": false,
"fast_open": false,
"workers": 1
}

# Telegram Proxy

# MTP docker 安装

# 镜像信息

官方镜像 telegrammessenger/proxy

# 安装

docker run -d -p 34567:443 --name=tg-proxy --restart=always -v /root/proxy-config:/data telegrammessenger/proxy:latest

# 获取 secret

cat /root/proxy-config/secret

# 生成代理链接

  • 获取/root/proxy-config/secret中的信息,替换以下地址中secret=之后的<secret>.
  • 获取服务器IP,替换以下地址中的<serverip>.
  • 获取服务器端口,替换以下地址中的<port>.
https://t.me/proxy?server=<serverip>&port=<port>secret=<secret>
tg://proxy?server=<serverip>&port=<port>&secret=<secret>

# MTProxy 一键脚本

# 一号脚本

来源

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh
# 安装
./mtproxy.sh
# 设置及卸载

相关命令

启动:/etc/init.d/mtproxy start
停止:/etc/init.d/mtproxy stop
重启:/etc/init.d/mtproxy restart
查看状态:/etc/init.d/mtproxy status
安装目录:/usr/local/mtproxy
配置文件:/usr/local/mtproxy/mtproxy.conf
日志文件:/usr/local/mtproxy/mtproxy.log

# 二号脚本

来源

wget -N --no-check-certificate https://github.com/whunt1/onekeymakemtg/raw/master/mtproxy_go.sh && chmod +x mtproxy_go.sh && bash mtproxy_go.sh
# 安装
./mtproxy_go.sh
# 设置及卸载

# 三号脚本

来源

wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/MTProxy-Bash/master/install.sh && bash install.sh
# 安装
wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/MTProxy-Bash/master/uninstall.sh && bash uninstall.sh
# 卸载

# MTG 一键脚本

bash <(wget -qO- https://git.io/mtg.sh)
# 安装
systemctl stop mtg && systemctl disable mtg 
rm -f /usr/local/bin/mtg /lib/systemd/system/mtg.service /etc/mtg.conf 
# 设置及卸载