Online Config VS Code

发布时间 - 2025-07-14 00:00:00    点击率:

run vs view

Install Code Server

Update Code Server

Database:It is recommended to create a Docker container for the database.

Code Language: JavaScript Code Run Count: 0

docker run -it -d --name vs-db -p 8003:3306 -e "MYSQL_ROOT_PASSWORD=code-server" mariadb:latest
# vs-db ip address
# $ docker exec -it vs-db bash
# $ apt update -y && apt upgrade -y && apt install net-tools iputils-ping
# $ ifconfig | grep inet | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"

Let's go to code-server first.

Enable SSH

Code Language: JavaScript Code Run Count: 0

$ cat code-server/code-server.sh | grep ssh
/usr/sbin/sshd -D &

Open SSL

First, upload your certificate file to code-server, or drag your file to code-server to upload.

Code Language: JavaScript Code Run Count: 0

vi /root/.config/code-server/config.yaml
bind-addr: 0.0.0.0:8080
auth: password
password: password
cert: true

Restart the code-server container.

Code Language: JavaScript Code Run Count: 0

docker restart code-server
docker exec -it code-server /bin/zsh
cd /root/.local/share/code-server
cp /root/xrsec.key localhost.key
cp /root/xrsec.crt localhost.crt
exit
docker restart code-server

Then you can notice in the upper right corner that you need to configure SSL to use it.

It's like real code-server.

Xdebug

Code Language: JavaScript Code Run Count: 0

php74-fpm && nginx
php54-fpm && nginx

Open https://www./link/4b9f946525b8fc99573ed7ef8f2918ea on the page.

Breakpoint testing with PHP debug plug-in.

Then visit the web page, such as https://www./link/8591efe6006d839c23452153789dc667.

Other

Code Language: JavaScript Code Run Count: 0

pecl74 install
pecl56 install
/code-server.sh
/root/code-server/server/php/php56/lib/php.ini
/root/code-server/server/php/php74/lib/php.ini
/etc/nginx/nginx.conf
/etc/proxychains.conf
/etc/ssh/sshd_config
/root/.ssh
/root/.zshrc
/root/.pip/pip.conf
/root/.gitconfig

Bug

When you switch to the applet and then switch to the directory, the page will not respond. It may be a problem with PWA. You just need to open it with a browser.

Then it will be displayed normally.

On Mac && ctrl + ~ Vim's ESC button cannot be used on the command line.

Code Language: JavaScript Code Run Count: 0

vim 1i
esc ???????? # You cannot use the ESC key to exit editing mode
# advice
# $ cat /etc/profile  # ctrl && Click file path The editor can be summoned

PHP5.6 with PHP xdebug.launch.json; There is a special configuration, but I forgot, please help me.

I had to consider using the Github API to automatically obtain new versions of software packages due to the high update frequency and low compilation speed, so the container may be started later. The update program will be automatically executed and the code server version will be updated. You need to restart the docker container manually.

If you have other suggestions or ideas, please feel free to send them.


# linux  # mysql  # git  # docker  # php7  # nginx  # ai  # switch  # php  # JavaScript  # json  # if  # count  # for  # Directory  # using  # github  # vim  # database  # https  # ssl  # root  # config  # vi  # file  # drag  # yaml  # au  # bind  # addr  # certificate 


相关栏目: 【 网站优化151355 】 【 网络推广146373 】 【 网络技术251813 】 【 AI营销90571


相关推荐: Laravel怎么使用artisan命令缓存配置和视图  Laravel如何使用Contracts(契约)进行编程_Laravel契约接口与依赖反转  微信小程序制作网站有哪些,微信小程序需要做网站吗?  google浏览器怎么清理缓存_谷歌浏览器清除缓存加速详细步骤  PHP正则匹配日期和时间(时间戳转换)的实例代码  Laravel Admin后台管理框架推荐_Laravel快速开发后台工具  标准网站视频模板制作软件,现在有哪个网站的视频编辑素材最齐全的,背景音乐、音效等?  php嵌入式断网后怎么恢复_php检测网络重连并恢复硬件控制【操作】  香港服务器网站卡顿?如何解决网络延迟与负载问题?  如何选择PHP开源工具快速搭建网站?  Laravel怎么使用Markdown渲染文档_Laravel将Markdown内容转HTML页面展示【实战】  Laravel如何安装Breeze扩展包_Laravel用户注册登录功能快速实现【流程】  Firefox Developer Edition开发者版本入口  作用域操作符会触发自动加载吗_php类自动加载机制与::调用【教程】  Laravel怎么创建控制器Controller_Laravel路由绑定与控制器逻辑编写【指南】  bootstrap日历插件datetimepicker使用方法  Laravel如何将应用部署到生产服务器_Laravel生产环境部署流程  java中使用zxing批量生成二维码立牌  Laravel如何使用API Resources格式化JSON响应_Laravel数据资源封装与格式化输出  绝密ChatGPT指令:手把手教你生成HR无法拒绝的求职信  实现点击下箭头变上箭头来回切换的两种方法【推荐】  如何为不同团队 ID 动态生成多个非值班状态按钮  如何快速辨别茅台真假?关键步骤解析  Laravel中DTO是什么概念_在Laravel项目中使用数据传输对象(DTO)  百度浏览器网页无法复制文字怎么办 百度浏览器复制修复  Laravel如何使用withoutEvents方法临时禁用模型事件  DeepSeek是免费使用的吗 DeepSeek收费模式与Pro版本功能详解  三星网站视频制作教程下载,三星w23网页如何全屏?  javascript基于原型链的继承及call和apply函数用法分析  如何在HTML表单中获取用户输入并用JavaScript动态控制复利计算循环  Laravel如何处理异常和错误?(Handler示例)  香港服务器租用费用高吗?如何避免常见误区?  佐糖AI抠图怎样调整抠图精度_佐糖AI精度调整与放大细化操作【攻略】  PHP的CURL方法curl_setopt()函数案例介绍(抓取网页,POST数据)  在线制作视频网站免费,都有哪些好的动漫网站?  如何在Windows虚拟主机上快速搭建网站?  如何快速搭建虚拟主机网站?新手必看指南  Laravel如何升级到最新的版本_Laravel版本升级流程与兼容性处理  Laravel怎么实现验证码(Captcha)功能  如何有效防御Web建站篡改攻击?  北京网站制作公司哪家好一点,北京租房网站有哪些?  如何用景安虚拟主机手机版绑定域名建站?  详解Android图表 MPAndroidChart折线图  EditPlus 正则表达式 实战(3)  php读取心率传感器数据怎么弄_php获取max30100的心率值【指南】  公司门户网站制作流程,华为官网怎么做?  Laravel Blade组件怎么用_Laravel可复用视图组件的创建与使用  Linux安全能力提升路径_长期防护思维说明【指导】  详解jQuery中的事件  微信小程序 配置文件详细介绍