当前位置:网站首页>VS Code私有服务器部署(私有化)
VS Code私有服务器部署(私有化)
2022-08-05 05:25:00 【回首思】
VSCode(全称:Visual Studio Code)是一款由微软开发且跨平台的免费源代码编辑器。该软件支持语法高亮、代码自动补全(又称 IntelliSense)、代码重构、查看定义功能,并且内置了命令行工具和 Git 版本控制系统。而VS Code又能像jupyter一样配置在服务器,让使用的环境,使用的设备的局限性大大降低。
一、下载GitHub开源项目文件,并解压至文件夹
wget https://github.com/cdr/code-server/releases/download/v3.10.2/code-server-3.10.2-linux-amd64.tar.gz
tar zxvf code-server-3.10.2-linux-amd64.tar.gz -C /opt

二、运行VS Code
cd /opt/code-server-3.10.2-linux-amd64/
./code-server
ctrl+c 停止
三、修改配置文件
vim ~/.config/code-server/config.yaml
如果是部署在服务器或者需要局域网内其他人也能访问到那么ip就写为0.0.0.0:端口号
端口号自定义,只要不被占用
password刚进去看到的是加密的直接改为自己的即可

如果是服务器记得在服务器控制台对端口放行,如果服务器安装了宝塔面板,那么宝塔面板也需要设置放行端口
四、运行VS Code
./code-server
局域网访问===>ip:端口号
服务器访问====>ip(或域名):端口号
本机访问======>127.0.0.1:端口号

边栏推荐
猜你喜欢

Cloud Computing Basics - Study Notes

Mina's long and short connections

花花省V5淘宝客APP源码无加密社交电商自营商城系统带抖音接口

Passing parameters in multiple threads

Error correction notes for the book Image Processing, Analysis and Machine Vision

Introduction to Network Layer Protocols

DevOps-了解学习

人人AI(吴恩达系列)

Nacos配置服务的源码解析(全)

获取预训练模型的网络输入尺寸
随机推荐
config.js related configuration summary
Successful indie developers deal with failure & imposters
请问下通过flink sql读取hologres 的两张表的 binlog,然后如何进行join?
What is Alibaba Cloud Express Beauty Station?
selenium学习
el-autocomplete use
sql server duplicate values are counted after
Does flink cdc currently support Gauss database sources?
浏览器兼容汇总
## 简讲protobuf-从原理到使用
transport layer protocol
Mina的长连接和短连接
Error correction notes for the book Image Processing, Analysis and Machine Vision
Transformer详细解读与预测实例记录
Problems encountered in installing Yolo3 target detection module in Autoware
D39_ coordinate transformation
input详解之文件上传
Mina disconnects and reconnects
前置++和后置++的区别
VSCode编写OpenCV