https://github.com/SunBK201/UA3F

安装

# 安装 shadowsocks-libev
sudo apt install shadowsocks-libev

配置

# 进行配置
sudo vim /etc/shadowsocks-libev/config.json
{
    "server":["0.0.0.0"],
    "mode":"tcp_and_udp",
    "server_port":14567,
    "local_port":1080,
    "password":"password",
    "timeout":60,
    "method":"rc4-md5",
    "fast_open": true
}

<aside> ⚠️ 以上配置为通用型强的配置,有特殊的需求可自定义其他配置。

</aside>

启动

# 启动 shadowsocks-libev 并设置开机自启
sudo systemctl enable --now shadowsocks-libev.service

# 重启 shadowsocks-libev
sudo systemctl restart shadowsocks-libev.service

# 关闭 shadowsocks-libev
sudo systemctl stop shadowsocks-libev.service

# 查看 shadowsocks-libev 运行状态
sudo systemctl status shadowsocks-libev.service

# 取消开机自启
sudo systemctl disable shadowsocks-libev.service

优化

<aside> ⚠️ 下面的优化非必要操作

</aside>

sudo vim /etc/security/limits.conf

加入下面 2 行:

* - nofile 65535 * - nproc 65535


# 增加资源限制上限
ulimit -SHn 65535