步骤:
1、获取 vs code 的 commit id
2、从 https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable 下载 vs code server
3、将 vscode-server-linux-x64.tar.gz 上传到 server
4、将下载的 vscode-server-linux-x64.tar.gz 解压到 ~/.vscode-server/bin/${commit_id} 目录下,不带 vscode-server-linux-x64 目录。
5、在 ~/.vscode-server/bin/${commit_id} 目录下创建一个文件,文件名为 0
命令行总结:
commit_id=93c2f0fbf16c5a4b10e4d5f89737d9c2c25488a3
curl -sSL "https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz
mkdir -p ~/.vscode-server/bin/${commit_id}
tar zxvf /tmp/vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${commit_id} --strip 1
touch ~/.vscode-server/bin/${commit_id}/0
|