首页 > 运维 > linux运维 > 正文

Online Config VS Code

星夢妙者
发布: 2025-07-14 10:24:54
原创
611人浏览过

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

HTML5 Realtime and WebSocket Code Lab
HTML5 Realtime and WebSocket Code Lab

HTML5 Realtime and WebSocket Code Lab

HTML5 Realtime and WebSocket Code Lab 206
查看详情 HTML5 Realtime and WebSocket Code Lab

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.

以上就是Online Config VS Code的详细内容,更多请关注php中文网其它相关文章!

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

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