在 Windows Server 上搭建 Shadowsocks 服务端

帖子 未结 精帖 0 31085
emailuser_nanso
emailuser_nanso LV1 2022年2月1日 12:32 编辑
<section id="nice" style="font-size: 16px; padding-right: 10px; padding-left: 10px; word-break: break-word; overflow-wrap: break-word; line-height: 1.25; font-family: Optima-Regular, Optima, PingFangTC-Light, PingFangSC-light, PingFangTC-light; letter-spacing: 2px; background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%); background-size: 20px 20px; background-position: center center;"><h2 style="font-weight: bold; font-size: 22px; margin-top: 20px; margin-right: 10px; margin-bottom: 0px;"><span style="font-size: 18px; display: inline-block; padding-left: 10px; border-left: 5px solid rgb(145, 109, 213);">在 Windows Server 上搭建 Shadowsocks 服务端</span></h2> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">推荐使用第一种安装方法,得益于 Github 上面的 &nbsp;<a href="https://www.oschina.net/action/GoToLink?url=https%3A%2F%2Fgithub.com%2Fshadowsocks%2FlibQtShadowsocks" style="overflow-wrap: break-word; color: rgb(145, 109, 213); font-weight: bolder; border-bottom: 1px solid rgb(145, 109, 213);">libQtShadowsocks &gt;</a>&nbsp; 项目,安装设置方便,CPU 和内存占用也小。<br> 一、下载 &nbsp;libQtShadowsocks<br> 在 &nbsp;<a href="https://www.oschina.net/action/GoToLink?url=https%3A%2F%2Fgithub.com%2Fshadowsocks%2FlibQtShadowsocks%2Freleases" style="overflow-wrap: break-word; color: rgb(145, 109, 213); font-weight: bolder; border-bottom: 1px solid rgb(145, 109, 213);">Github &gt;</a>&nbsp; 上下载对应你系统位数的版本,我这里以 Windows Server 2012 R2 为例,使用 &nbsp;shadowsocks-libqss-v1.8.4-win64.7z<br> 二、配置相关文件<br> 将下载好的 &nbsp;shadowsocks-libqss-v1.8.4-win64.7z 解压,进入文件夹中新建名为 config.json 的配置文件</p> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;">{<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"server"</span>:<span style="color: #98c379; line-height: 26px;">"0.0.0.0"</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"server_port"</span>:1984,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"local_address"</span>:<span style="color: #98c379; line-height: 26px;">"127.0.0.1"</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"local_port"</span>:1080,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"password"</span>:<span style="color: #98c379; line-height: 26px;">"hello2020"</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"timeout"</span>:600,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"method"</span>:<span style="color: #98c379; line-height: 26px;">"aes-256-cfb"</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"http_proxy"</span>:&nbsp;<span style="color: #56b6c2; line-height: 26px;">false</span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #98c379; line-height: 26px;">"auth"</span>:&nbsp;<span style="color: #56b6c2; line-height: 26px;">false</span><br>}<br></code></pre> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">cmd 中运行</p> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;">shadowsocks-libqss.exe&nbsp;-c&nbsp;config.json&nbsp;-S<br></code></pre> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">或者</p> <p style="padding-top: 8px; padding-bottom: 8px; line-height: 26px; font-size: 14px; word-spacing: 2px;">powerShell 中运行</p> <pre><code style="overflow-x: auto; padding: 16px; color: rgb(171, 178, 191); background: rgb(40, 44, 52); display: -webkit-box; font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace; border-radius: 0px;">.\shadowsocks-libqss.exe&nbsp;-c&nbsp;.\config.json&nbsp;-S<br></code></pre></section>
收藏(1898)  分享
相关标签: 互联网 运维
0个回复
  • 消灭零回复