This script applies to the environment:
System support: Centos/redhat/fedora
Memory Requirements: ≥128m
Date: May 05, 2014
About this script:
One-click to install the latest version of the Shadowsocks Nodejs version, while the installation of Nodejs.
Note: Because you need to compile the latest version of the installation Nodejs, if the memory is too small will install failed, so I only in the lowest 128MB VPS test the script.
Default configuration:
Server port: 8989
Client Port: 1080
Password: Set yourself (if not set, default is Teddysun.com)
Client Downloads:
http://sourceforge.net/projects/shadowsocksgui/files/dist/
How to use:
Log on using the root user to run the following command:
wget--no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-nodejs.sh
chmod +x shadowsocks-nodejs.sh
./shadowsocks-nodejs.sh 2>&1 | Tee Shadowsocks-nodejs.log
When the installation is complete, the script prompts as follows:
Congratulations, Shadowsocks-nodejs install completed!
Your Server IP: (Your server IP)
Your Server port:8989
Your Password: (The password you set)
Your Proxy port:1080
Welcome to Visit:http://teddysun.com/355.html
Enjoy it! ^_^
Uninstall method:
Log on using the root user to run the following command:
./shadowsocks-nodejs.sh Uninstall
Other matters:
Reference link for client configuration: http://teddysun.com/339.html
After the installation is completed, the Shadowsocks server-side Ssserver has been started in the background, running:
Ps-ef | grep Ssserver | Grep-v PS | Grep-v grep
To see if a process exists.
If you want to restart the Ssserver service, follow these steps:
1, the end of the original process. Execution: Killall node
2, the background to open a new process. Implementation: Nohup ssserver-c/etc/config.json >/dev/null 2>&1 &
After the installation is complete, the Shadowsocks-nodejs will be added to the power-on self boot.
Finally, a description of the Shadowsocks-nodejs version of the configuration file (/etc/config.json) is as follows:
{
"server": "My_server_ip",
"Server_port": 8989,
"local_address": "127.0.0.1",
"Local_port": 1080,
"password": " Teddysun.com ",
" Timeout ": +,
" method ":" AES-256-CFB "
}
Server: Servers IP (IPV4/IPV6), which is also the IP address of the service side listening
Server_port: Server Port
local_address: Local listening IP address
local_port: Local Port
Password: encrypted password
Timeout: timeout (sec)
Method: Encryption, select "BF-CFB", "AES-256-CFB", "DES-CFB", "Rc4″, and so on." The default "table" is an unsecured encryption, which is recommended with the "AES-256-CFB"