Loading... <p> 转自<a href="https://www.librehat.com/three-minutes-to-set-up-shadowsocks-server-on-windows/" target="_blank">https://www.librehat.com/three-minutes-to-set-up-shadowsocks-server-on-windows/</a> </p> <ol style="box-sizing:inherit;border:0px;font-family:"font-size:19px;margin:0px 0px 1.6842em;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;line-height:31.9998px;white-space:normal;background-color:#FFFFFF;"> <li style="box-sizing:inherit;border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;"> 下载最新的<a href="https://github.com/shadowsocks/libQtShadowsocks/releases" target="_blank" style="box-sizing:inherit;border-width:0px 0px 1px;border-bottom-style:solid;border-color:#22313F;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;text-decoration:none;">shadowsocks-libqss</a>(Fedora下软件包名为shadowsocks-libQtShadowsocks) </li> <li style="box-sizing:inherit;border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;"> 准备好config.json文件(<a href="https://github.com/shadowsocks/libQtShadowsocks/blob/master/shadowsocks-libqss/config.json" target="_blank" style="box-sizing:inherit;border-width:0px 0px 1px;border-bottom-style:solid;border-color:#22313F;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;text-decoration:none;">范例文件点此</a>,点Raw另存为config.json就能下载下来了),server字段填写”0.0.0.0″(如果走IPv6线路,填”::”),加密方式可以改成更新潮的”chacha20″(老旧的Shadowsocks客户端可能不支持chacha20加密) <pre class="prettyprint lang-js linenums">{ "server":"localhost", "server_port":8388, "local_address":"127.0.0.1", "local_port":1080, "password":"barfoo!", "timeout":600, "method":"rc4-md5", "http_proxy": false, "auth": false }</pre> </li> <li style="box-sizing:inherit;border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;"> 要shadowsocks-libqss.exe以server mode运行需要加上-S参数,你可以从命令行提示符去运行。或者,更简单的,用我写好的bat脚本(<a href="https://gist.github.com/librehat/c6a04effc8936ff93be5" target="_blank" style="box-sizing:inherit;border-width:0px 0px 1px;border-bottom-style:solid;border-color:#22313F;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;text-decoration:none;">点此查看</a>,点Raw按钮另存为bat脚本即可) <pre class="prettyprint lang-js linenums">::This batch will run shadowsocks-libqss in server mode using the config.json file in current folder as the configuration @echo off ::this script is updated for version 1.7.0 shadowsocks-libqss.exe -c config.json -S</pre> </li> <li style="box-sizing:inherit;border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;"> 将shadowsocks-server.bat与shadowsocks-libqss.exe, config.json放在同一个文件夹下,执行shadowsocks-server.bat即可 </li> </ol> <p style="box-sizing:inherit;border:0px;font-family:"font-size:19px;margin-top:0px;margin-bottom:1.6842em;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;line-height:31.9998px;white-space:normal;background-color:#FFFFFF;"> 停止运行?关掉就可以了。下次再运行?执行shadowsocks-server.bat脚本就好了。修改配置文件?别用自带的记事本和写字板,去下载一个<a href="http://notepad-plus-plus.org/" target="_blank" style="box-sizing:inherit;border-width:0px 0px 1px;border-bottom-style:solid;border-color:#22313F;font-family:inherit;font-style:inherit;font-weight:inherit;margin:0px;outline:0px;padding:0px;vertical-align:baseline;color:#22313F;text-decoration:none;">Notepad++</a>吧,免得格式乱套了。 </p> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏