环境:Vmware Workstation 10,CentOS-7-x86_64-DVD-1511.iso,Xshell 4.0,ip:192.168.216.140.
[root@localhost ~]# yum install gcc openldap-devel pam-devel openssl-devel
[root@localhost ~]# wget https://jaist.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz
[root@localhost ~]# tar -zxvf ss5-3.8.9-8.tar.gz -C /usr/local/
[root@localhost ~]# mv /usr/local/ss5-3.8.9/ /usr/local/ss5
[root@localhost ~]# cd /usr/local/ss5/
[root@localhost ss5]# ./configure
[root@localhost ss5]# make
[root@localhost ss5]# make install
[root@localhost ss5]# vim /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 - -
permit - 0.0.0.0/0 - 0.0.0.0/0 - - - - -
[root@localhost ss5]# service ss5 start
env: /etc/init.d/ss5: 权限不够
[root@localhost ss5]# chmod a+x /etc/init.d/ss5
[root@localhost ss5]# service ss5 start
Reloading systemd: [ 确定 ]
Starting ss5 (via systemctl): [ 确定 ]
[root@localhost ss5]# firewall-cmd –zone=public –add-port=1080/tcp –permanent
Success
[root@localhost ss5]# firewall-cmd –reload
success
[root@localhost ss5]# firewall-cmd –query-port=1080/tcp
Yes
打开腾讯QQ
[root@localhost ss5]# service ss5 stop
Stopping ss5 (via systemctl): [ 确定 ]