一、脚本安装木弟子

wget -N --no-check-certificate https://raw.githubusercontent.com/xia0ne/Yrhtools/master/tools.sh && bash tools.sh

亚马逊Ubuntu16.04 Linux服务器搭建木弟子

如图:选择3,以后按照自己想安装的配置一步步设置即可

安装完成如图:
亚马逊Ubuntu16.04 Linux服务器搭建木弟子

这是其中一种配置的安装完成示意图

开启安全组

如图所示添加并保存安全组:
亚马逊Ubuntu16.04 Linux服务器搭建木弟子

开启防火墙(ufw)端口

安装:

sudo apt-get install ufw

查看状态:

sudo ufw status

开启/关闭:

sudo ufw enable|disable

允许/禁止:

sudo ufw allow|deny port/服务

如:sudo ufw allow 5900
5900端口号替换成您的木弟子设置的端口号

拓展: 删除规则:
sudo ufw delete allow 5900

用客户端连接

脚本会根据当前安装的版本以及输入的各项配置,自动生成 ss:// 或 ssr:// 的链接并在安装成功后显示,直接复制即可被客户端识别。同时生成其二维码图片,并保存在当前目录下,下载后用看图软件打开,也能被客户端识别。

Shadowsocks for Windows

复制二维码链接后 Shadowsocks 客户端识别即可

启动脚本

启动脚本后面的参数含义,从左至右依次为:启动,停止,重启,查看状态。

Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | status

ShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | status

Shadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | status

Shadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status

各版本默认配置文件

Shadowsocks-Python 版:
/etc/shadowsocks-python/config.json

ShadowsocksR 版:
/etc/shadowsocks-r/config.json

Shadowsocks-Go 版:
/etc/shadowsocks-go/config.json

Shadowsocks-libev 版:
/etc/shadowsocks-libev/config.json

相关文章:

  • 2021-11-02
  • 2021-12-07
  • 2022-01-22
  • 2021-12-11
  • 2021-11-02
  • 2021-04-01
  • 2021-07-12
  • 2021-06-11
猜你喜欢
  • 2022-02-09
  • 2021-12-25
  • 2021-05-17
  • 2021-06-24
  • 2021-05-10
  • 2021-12-04
  • 2021-12-04
相关资源
相似解决方案