Configure Shadowsocks via Config File

apt-get install python-pip
pip install shadowsocks
apt-get install python-m2crypto

You can use a configuration file instead of command line arguments.

Create a config file /etc/shadowsocks.json. Example:

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

To run in the foreground:

ssserver -c /etc/shadowsocks.json

To run in the background:

ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stop

References :

https://github.com/shadowsocks/shadowsocks/wiki/Configuration-via-Config-File
https://github.com/pobizhe/shadowsocks/wiki/Encryption