当前位置:   article > 正文

vscode-server离线安装及配置_vscode-server.tar.gz

vscode-server.tar.gz

vscode-server离线安装及配置 - 八字环~ - 博客园 (cnblogs.com)

  1. 获取当前版本vscode的commit_id:Help -> About -> Commit
  2. 根据commit_id下载对应版本的vscode-server:
    https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable
  3. 将下载好的vscode-server-linux-x64.tar.gz放在服务器任意目录下
  4. 将压缩包解压,到 ~/.vscode-server/bin/${commit_id}
  5. 新建目录~/.vscode-server/extensions,将~/.vscode-server/bin/${commit_id}/extensions/中的插件复制到~/.vscode-server/extensions/
  6. 一键脚本:
    1. commit_id=***
    2. VSCODE_SERVER_PATH=***
    3. rm -rf ~/.vscode-server
    4. mkdir -p ~/.vscode-server/bin
    5. tar -xzf ${VSCODE_SERVER_PATH} -C ~/.vscode-server/bin
    6. mv ~/.vscode-server/bin/vscode-server-linux-x64/ ~/.vscode-server/bin/${commit_id}/
    7. mkdir -p ~/.vscode-server/extensions
    8. cp -r ~/.vscode-server/bin/${commit_id}/extensions/* ~/.vscode-server/extensions

备注:sshd_config(/etc/ssh/sshd_config)文件需要设置AllowTcpForwarding=yes

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/165306
推荐阅读
相关标签
  

闽ICP备14008679号