服务器安装code-server
## 下载地址 > https://github.com/coder/code-server/releases ## 官方教程 > https://coder.com/docs/code-server/latest/install ## Debian系统安装 ``` curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb sudo dpkg -i code-server_${VERSION}_amd64.deb sudo systemctl enable --now code-server@$USER ``` 记得放行端口 ``` # 放行8080端口 firewall-cmd --permanent --add-port=8080/tcp # 重载防火墙 firewall-cmd --reload ``` 查看运行状态,如果是127.0.0.1,则修改配置文件(密码也在这里) ``` # 将127.0.0.1改为0.0.0.0 vim ~/.config/code-server/config.yaml ```
创建时间:2023-05-03
|
最后修改:2023-12-27
|
©允许规范转载
酷酷番茄
首页
文章
友链