官网指导
https://github.com/cdr/code-server
Getting Started
For a full setup and walkthrough, please see./doc/guide.md.
Quick Install
We have ascriptto install code-server for Linux, macOS and FreeBSD.
It tries to use the system package manager if possible.
First run to print out the install process:
curl -fsSL https://code-server.dev/install.sh|sh -s -- --dry-run
Now to actually install:
curl -fsSL https://code-server.dev/install.sh|sh
The install script will print out how to run and start using code-server.
网络不好就 重复执行
curl -fsSL https://code-server.dev/install.sh|sh
部署好之后
直接 code-server 运行
[vscweb@x220 code_server]$ code-server
info Using config file ~/.config/code-server/config.yaml
自定义密码并后台常驻
export PASSWORD=youpassword
添加启动文件start.sh
nohup /app/codeserver/code-server –auth password –port 8080 >> log.log 2>&1 &