简单部署过程如下:
下载软件包
2. 解压、编译、安装
tar zxvf ss5-3.6.1-1.tar.gz
cd ss5-3.6.1
./configure
make
make install
3. 启动ss5 服务
/etc/init.d/ss5 start
4. 添加自启动
chkconfig --add ss5
chkconfig ss5 on
默认情况下, ss5监听1080端口,接受所有用户的代理请求.
安全起见,我们需呀启用代理认证功能,并维护认证的账号密码文件(ss5.passwd).
5. 修改配置文件
配置文件的位置:
[root@phpVideoPro ss5]# pwd /etc/opt/ss5 [root@phpVideoPro ss5]# ll 总用量 32 -rw-r--r--. 1 root root 9777 4月 21 18:58 ss5.conf -rw-r--r--. 1 root root 9777 4月 21 18:29 ss5.conf_bak -rw-r--r--. 1 root root 42 4月 21 19:05 ss5.passwd -rw-r--r--. 1 root root 57 4月 21 18:32 ss5.passwd_bak
# SHost SPort Authentication # #auth 0.0.0.0/0 - - #修改为 auth 0.0.0.0/0 - u permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - - #修改为 permit u 0.0.0.0/0 - 0.0.0.0/0 - - - - -
添加账号和密码到密码文件:
/etc/opt/ss5/ss5.passwd
形如:
aaa 123
bbb 234
每个账号和密码各占一行.
重启ss5服务,即可.
本文出自 “史振宁的技术博客” 博客,请务必保留此出处http://magic3.blog.51cto.com/1146917/1640298
原文地址:http://magic3.blog.51cto.com/1146917/1640298