0

0

Online Config VS Code

星夢妙者

星夢妙者

发布时间:2025-07-14 10:24:54

|

627人浏览过

|

来源于php中文网

原创

run vs view

Online Config VS CodeOnline Config VS CodeOnline Config VS Code

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.

Online Config VS Code

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.

Online Config VS CodeOnline Config VS Code

It's like real code-server.

Xdebug

LobeHub
LobeHub

LobeChat brings you the best user experience of ChatGPT, OLLaMA, Gemini, Claude

下载

Code Language: JavaScript Code Run Count: 0

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

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

Breakpoint testing with PHP debug plug-in.

Then visit the web page, such as https://www.php.cn/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.

Online Config VS CodeOnline Config VS Code

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.

相关专题

更多
php文件怎么打开
php文件怎么打开

打开php文件步骤:1、选择文本编辑器;2、在选择的文本编辑器中,创建一个新的文件,并将其保存为.php文件;3、在创建的PHP文件中,编写PHP代码;4、要在本地计算机上运行PHP文件,需要设置一个服务器环境;5、安装服务器环境后,需要将PHP文件放入服务器目录中;6、一旦将PHP文件放入服务器目录中,就可以通过浏览器来运行它。

2642

2023.09.01

php怎么取出数组的前几个元素
php怎么取出数组的前几个元素

取出php数组的前几个元素的方法有使用array_slice()函数、使用array_splice()函数、使用循环遍历、使用array_slice()函数和array_values()函数等。本专题为大家提供php数组相关的文章、下载、课程内容,供大家免费下载体验。

1634

2023.10.11

php反序列化失败怎么办
php反序列化失败怎么办

php反序列化失败的解决办法检查序列化数据。检查类定义、检查错误日志、更新PHP版本和应用安全措施等。本专题为大家提供php反序列化相关的文章、下载、课程内容,供大家免费下载体验。

1513

2023.10.11

php怎么连接mssql数据库
php怎么连接mssql数据库

连接方法:1、通过mssql_系列函数;2、通过sqlsrv_系列函数;3、通过odbc方式连接;4、通过PDO方式;5、通过COM方式连接。想了解php怎么连接mssql数据库的详细内容,可以访问下面的文章。

952

2023.10.23

php连接mssql数据库的方法
php连接mssql数据库的方法

php连接mssql数据库的方法有使用PHP的MSSQL扩展、使用PDO等。想了解更多php连接mssql数据库相关内容,可以阅读本专题下面的文章。

1418

2023.10.23

html怎么上传
html怎么上传

html通过使用HTML表单、JavaScript和PHP上传。更多关于html的问题详细请看本专题下面的文章。php中文网欢迎大家前来学习。

1234

2023.11.03

PHP出现乱码怎么解决
PHP出现乱码怎么解决

PHP出现乱码可以通过修改PHP文件头部的字符编码设置、检查PHP文件的编码格式、检查数据库连接设置和检查HTML页面的字符编码设置来解决。更多关于php乱码的问题详情请看本专题下面的文章。php中文网欢迎大家前来学习。

1447

2023.11.09

php文件怎么在手机上打开
php文件怎么在手机上打开

php文件在手机上打开需要在手机上搭建一个能够运行php的服务器环境,并将php文件上传到服务器上。再在手机上的浏览器中输入服务器的IP地址或域名,加上php文件的路径,即可打开php文件并查看其内容。更多关于php相关问题,详情请看本专题下面的文章。php中文网欢迎大家前来学习。

1306

2023.11.13

高德地图升级方法汇总
高德地图升级方法汇总

本专题整合了高德地图升级相关教程,阅读专题下面的文章了解更多详细内容。

65

2026.01.16

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
PostgreSQL 教程
PostgreSQL 教程

共48课时 | 7.4万人学习

Git 教程
Git 教程

共21课时 | 2.8万人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号