First we need to update the CentOS system.
yum -y updateyum install build-essential autoconf libtool gcc -y
Then install python-setuptools (which contains easy_install), pip, shadowsocks.
yum install python-setuptoolseasy_install pippip install shadowsocks
On the server (CentOS), Create a file named config.json, with the following content.
{"server":"my_server_ip","server_port":8388,"local_port":1080,"password":"barfoo!","timeout":600,"method":"table"}
cdinto the directory ofconfig.json. Runssserveron your server.
To run it in the background, runnohup ssserver > log &.