参考链接 https://medium.com/@debugger24/installing-vscode-server-on-remote-machine-in-private-network-offline-installation-16e51847e275 https://blog.csdn.net/wyg1997/article/details/101460961 ?
原因? 服务器(目标机器)无法上外网下载vscode-server.tar.gz,使得连接超时,但此时会在~/.vscode-server/bin下生成一个版本号,我们可以用此下载离线包 解决方法 **1 **离线下载指定版本的离线包,得到vscode-server-linux-x64.tar.gz
cd ~/.vscode-server/bin
ls
>> f80445acd5a3dadef24aa209168452a3d97cc326
下载格式为:https://update.code.visualstudio.com/commit:{COMMIT_ID}/server-linux-x64/stable 比如上例:https://update.code.visualstudio.com/commit:f80445acd5a3dadef24aa209168452a3d97cc326/server-linux-x64/stable **2 **将离线包放至指定路径
~/.vscode-server/bin/f80445acd5a3dadef24aa209168452a3d97cc326
tar -zxvf vscode-server-linux-x64.tar.gz
3 重新连接
|