Online VS Code
在线版的IDE。 安装Code-Server
curl -fsSL https://code-server.dev/install.sh | sh
To have systemd start code-server now and restart on boot:
sudo systemctl enable --now code-server@$USER
Or, if you don't want/need a background service you can run:
code-server
运行一次 code-server 就会生成配置文件
/root/.config/code-server/config.yaml
将 bind-addr 设置为 0.0.0.0:8888 (选择一个不要与之前端口冲突的,然后修改密码)。尝试过可用以后,就可以用第一条命令在后台运行。
设置 https
修改配置文件并重启服务 systemctl restart code-server@$USER
download
bind-addr: 0.0.0.0:8888 auth: password password: 138629 #cert: false cert: /root/ssl-keys/yfmai/fullchain.pem cert-key: /root/ssl-keys/yfmai/private.key