Stay hungry, stay foolish.

自建梯子

2019-10-04

自用代码记录,备用🤞🤞🤞

一键安装 ✈️✈️✈️
使用 root 用户登录,运行以下命令:

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

安装BBR

wget https://github.com/tcp-nanqinlang/general/releases/download/3.4.5.1/tcp_nanqinlang-pro-3.4.5.1.sh
bash tcp_nanqinlang-pro-3.4.5.1.sh

四合一

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
chmod +x tcp.sh
./tcp.sh

防火墙添加端口:

firewall-cmd --permanent --zone=public --add-port=25000-25100/tcp
firewall-cmd --permanent --zone=public --add-port=25000-25100/udp
firewall-cmd --reload

命令

开启:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status