0

我按照指南在 EC2 上安装代码服务器,但它不起作用。

当我从浏览器访问我的实例时,出现以下错误:

Error connecting to your code-server instance
Ensure code-server is running and was properly started with the --link command line flag.

我尝试在 EC2 上手动安装代码服务器,但它没有启动。最后,我在 aws 市场 ( aws.amazon.com/marketplace/pp/prodview-bw5rwv7u435ey ) 上找到了代码服务器并按照说明进行操作,但在命令中:

 systemctl status code-server

我有:

code-server.service
     Loaded: bad-setting (Reason: Unit code-server.service has a bad unit file setting.)
     Active: inactive (dead)

如何在 AWS EC2 上运行代码服务器?

谢谢

4

1 回答 1

0

仅通过安装脚本安装代码服务器。

curl -fsSL https://code-server.dev/install.sh | sh

安装球童。有用

不要遵循 gitHub 上的指南,不要运行 launch-code-server.sh

当您通过浏览器访问时,它会询问您密码。你在上面找到密码~/.config/code-server/config.yaml

于 2022-02-25T13:41:07.637 回答