Install GCC compile tool (build-essential)

apt install build-essential     

Compile encryption library (libsodium)

wget https://github.com/jedisct1/libsodium/releases/download/1.0.16/libsodium-1.0.16.tar.gz
tar xf libsodium-1.0.16.tar.gz && cd libsodium-1.0.16
./configure && make -j2 && make install
echo /usr/local/lib > /etc/ld.so.conf.d/usr_local_lib.conf
ldconfig

Install shadowsocks-mod

git clone https://github.com/mashirozx/shadowsocks-mod.git
cd shadowsocks-mod
git reset --hard efc986b731164aae3fef6fb5b9e8802754e63e3e
pip install -r requirements.txt
cp apiconfig.py userapiconfig.py
cp config.json user-config.json

If you see error info Command "python setup.py egg_info" failed with error code 1 when installing requirements, try:

pip install --upgrade setuptools

Configuration

nano userapiconfig.py

Database API

NODE_ID = 0

API_INTERFACE = "glzjinmod"

MYSQL_HOST = "127.0.0.1"
MYSQL_PORT = 3306
MYSQL_USER = "sspanel"
MYSQL_PASS = "sspanel"
MYSQL_DB = "sspanel"

Web API

NODE_ID = 0

API_INTERFACE = "modwebapi"

WEBAPI_URL = "https://ssr.com"
WEBAPI_TOKEN = "NimaQu"

Run ss server

# test log server
python server.py

# run with log
./logrun.sh

# run without log
./run.sh

# view log
./tail.sh

# stop
./stop.sh

Cover: https://www.freepik.com/free-vector/vector-night-airport-with-plane-helicopter_3824040.htm