jingkaimori
V2EX  ›  服务器

在阿里云服务器上访问 xwiki.org 被限速,这是什么原因?

  •  
  •   jingkaimori · Dec 21, 2020 · 2239 views
    This topic created in 1978 days ago, the information mentioned may be changed or developed.

    如题,我在阿里云服务器上使用 xwiki 自建的 deb 仓库安装 xwiki,下载 apt 包的速度只有 8k/s,这是什么原因?如何操作才能提速?已经试过魔法上网,无法提速。

    服务器为张家口地区共享实例 s6 规格,带宽峰值为 10Mbps 。

    2 replies    2021-02-22 19:39:34 +08:00
    Foxkeh
        1
    Foxkeh  
       Dec 25, 2020
    一般是跟软件源 sources.list 的连接问题,试试重新配个,遇到过很多次跑不满带宽。我自己购买的 ECS 实例带宽 1Mbps,软件更新最多能达到 11M/s 左右。
    jingkaimori
        2
    jingkaimori  
    OP
       Feb 22, 2021
    限速问题已解决。把本地的梯子端口转发到服务器上,再配置 xwiki 的代理。xwiki 骨骼清奇,代理配置不同寻常,欲知具体配置方案请至[此处]( https://forum.xwiki.org/t/update-xwiki-using-a-proxy/8291/2)。端口转发挂梯子,本地执行以下命令:
    ```bash
    ssh.exe -i '你的服务器密钥' -R 30000:127.0.0.1:50011 [email protected]
    #50011 为本地代理软件的端口,30000 为服务器上的空闲端口
    ```
    服务器执行以下命令(对 apt 有效):
    ```bash
    export HTTPS_PROXY=localhost:30000
    export http_proxy=http://localhost:30000
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   920 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:55 · PVG 03:55 · LAX 12:55 · JFK 15:55
    ♥ Do have faith in what you're doing.