差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 后一修订版 | 前一修订版 | ||
| 工具:编辑:vscodeonline [2024-03-24 17:39] – 创建 goldentianya | 工具:编辑:vscodeonline [2024-03-24 19:06] (当前版本) – [设置 https] goldentianya | ||
|---|---|---|---|
| 行 3: | 行 3: | ||
| 在线版的IDE。 安装Code-Server | 在线版的IDE。 安装Code-Server | ||
| curl -fsSL https:// | curl -fsSL https:// | ||
| + | | ||
| + | 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 就会生成配置文件 | ||
| + | / | ||
| + | | ||
| + | 将 bind-addr 设置为 0.0.0.0: | ||
| + | |||
| + | ===== 设置 https ===== | ||
| + | 修改配置文件并重启服务 <color # | ||
| + | |||
| + | <code | download> | ||
| + | bind-addr: 0.0.0.0: | ||
| + | auth: password | ||
| + | password: 138629 | ||
| + | #cert: false | ||
| + | cert: / | ||
| + | cert-key: / | ||
| + | </ | ||
