我按照指南在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/marketing/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上运行代码服务器?
谢谢
仅通过安装脚本安装代码服务器。
curl -fsSL https://code-server.dev/install.sh | sh
安装Caddy。它工作
不要遵循gitHub上的指南,不要运行launch-code-server.sh
当你通过浏览器访问时,它会询问你的密码。您可以在~/.config/code-server/config.yaml
上找到密码