小结 本文记录了安装VS Code到AWS EC2 Linux 2。 问题及解决 安装VS Code到AWS EC2 Linux 2采取了以下步骤: 更新VS Code的YUM源: [ec2-user@ip-100-92-28-119 ~]$ sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc [ec2-user@ip-100-92-28-119 ~]$ sudo sh -c ‘echo -e “[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/yum.repos.d/vscode.repo’ [ec2-user@ip-100-92-28-119 ~]$ vim /etc/yum.repos.d/vscode.repo [ec2-user@ip-100-92-28-119 ~]$ yum check-update Loaded plugins: priorities, update-motd, upgrade-helper amzn2-core | 3.6 kB 00:00:00 code | 1.5 kB 00:00:00 […]