1、下载
#wget https://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
2、配置编译环境及安装依赖组件
# yum -y install gcc automake make
# yum -y install pam-devel openldap-devel cyrus-sasl-devel openssl-devel
3、解压、编译、安装
# tar xvf ss5-3.8.9-8.tar.gz
# cd ss5-3.8.9-8
# ./configure && make && make install
4、修改配置
/etc/opt/ss5/ss5.conf,
auth 0.0.0.0/0
permit
5、自定义代理端口
/etc/sysconfig/ss5 SS5_OPTS=" -u root -b 0.0.0.0:10808"
6、开机启动
chmod 755 /etc/rc.d/init.d/ss5
# chkconfig --add ss5
# chkconfig --level 345 ss5 on
7、日志问题 -m
/etc/init.d/ss5
start)
# Start daemon.
echo -n “Starting ss5… ”
if [ $OS = “Linux” ]; then
daemon /usr/sbin/ss5 -m -t $SS5_OPTS
touch /var/lock/subsys/ss5
if [ $OS = “SunOS” ]; then
/usr/sbin/ss5 -m -t
touch /var/lock/subsys/ss5
else
/usr/local/sbin/ss5 -m -t
fi
echo “done”
fi