2017年4月18日星期二

shadowsocksR ssr openwrt 编译

最新参考https://github.com/ywb94/openwrt-ssr

以下是老版编译

git clone -b shadowsocksR https://github.com/etnperlong/openwrt-shadowsocks.git package/shadowsocks-libev

更改版本号
git clone https://github.com/shadowsocksr/shadowsocksr.git
git log 获取commit id
修改commit id为最新版
bfdb71349be780a3cb365f581ef59ff0cef29b65

添加支持库

更新feeds
./scripts/feeds update -a
安装feeds(不是必须)
./scripts/feeds install -a

make menuconfig
make -j4 package/shadowsocks-libev/compile V=99

编译后清理文件
make clean

测试运行
/usr/bin/ssr-redir -c /var/etc/shadowsocksr.json -u -f /var/run/ss-redir.pid

SSR重启命令
/etc/init.d/shadowsocksr restart

没有评论:

发表评论