一.llinux环境安装
<code class="language-shell"><a href="https://www.gaodaima.com/tag/yum" title="查看更多关于yum的文章" target="_blank">yum</a> update yum <a href="https://www.gaodaima.com/tag/install" title="查看更多关于install的文章" target="_blank">install</a> pam-devel openldap-devel open<a href="https://www.gaodaima.com/tag/ss" title="查看更多关于ss的文章" target="_blank">ss</a>l-devel yum -y install gcc yum -y install gcc-c++ </code>
www#gaodaima.com来源gao!%daima.com搞$代*!码网搞代码
二.sock5安装
<code class="language-shell">cd /opt wget http://downloads.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz tar -xzvf ss5-3.8.9-8.tar.gz cd ss5-3.8.9 ./configure make make install chmod a+x /etc/init.d/ss5 </code>
三.修改配置文件
<code class="language-shell">vim /etc/opt/ss5/ss5.conf 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 – – – – - </code>
四.设置用户密码
<code class="language-shell">vim /etc/opt/ss5/ss5.passwd 账号 密码 查看用户名密码 cat /etc/opt/ss5/ss5.passwd </code>
五.配置启动端口
<code class="language-shell">vim /etc/sysconfig/ss5 SS5_OPTS=" -u root -b 0.0.0.0:11111" </code>
六.启动
<code class="language-shell">sh /etc/rc.d/init.d/ss5 start service ss5 start </code>