增加 VSCode Server 说明.
Signed-off-by: rick.chan <cy187lion@sina.com>
This commit is contained in:
parent
c47d70620d
commit
a1fbaca9b7
|
@ -0,0 +1,34 @@
|
|||
# VSCode Server 说明
|
||||
|
||||
Run VS Code on any machine anywhere and access it in the browser.
|
||||
|
||||
[GitHub](https://github.com/coder/code-server)
|
||||
|
||||
安装方法:
|
||||
|
||||
```bash
|
||||
# Manjaro
|
||||
yaourt -S code-server
|
||||
```
|
||||
|
||||
通过 code-server 命令可直接执行,其 --help 参数可以查看帮助信息。
|
||||
|
||||
code-server 使用 yaml 作为配置文件格式,配置文件在:
|
||||
|
||||
~/.config/code-server/config.yaml、
|
||||
|
||||
```yaml
|
||||
bind-addr: 0.0.0.0:8080
|
||||
auth: password
|
||||
password: 1234567890
|
||||
cert: false
|
||||
```
|
||||
|
||||
配置参数与 --help 中列出的参数一致。
|
||||
|
||||
服务启动和使能命令如下:
|
||||
|
||||
```bash
|
||||
sudo systemctl start code-server@$USER
|
||||
sudo systemctl enable code-server@$USER
|
||||
```
|
Loading…
Reference in New Issue