惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - yahle

Performance Improvements in .NET 9 [翻译 by chatglm] Performance Improvements in .NET 8 & 7 & 6 -- File I/O【翻译】 Performance Improvements in .NET 8 & 7 & 6 -- String【翻译】 Performance Improvements in .NET 8 & 7 & 6 -- Thread【翻译】 Performance Improvements in .NET 8 -- Exceptions & Reflection & Primitives【翻译】 Performance Improvements in .NET 8 -- Native AOT & VM & GC & Mono【翻译】 Performance Improvements in .NET 8 -- JIT部分翻译 mysql迁移到pqsql笔记 .net core 多线程下使用 Random 会出现bug 一个.net6开发的截图后ocr小工具 云服务器内容迁移 总结 立个铁矿石的flag,从7月初开始,铁矿石的库存,可能要进入累库存阶段了. ASP.NET Core 2 High Performance 目录和读书笔记 - yahle [转帖]无网络离线安装 vs2017 - yahle - 博客园 centos下 .net core 2.0 升级 到 2.1 遇到的一个小问题 .net core jwt 入门记录 GTX 750TI 使用 ffmpeg 时无法用 GPU HEVC(h.265) 进行加速 [翻译] 编写高性能 .NET 代码--第二章 GC -- 减少大对象堆的碎片,在某些情况下强制执行完整GC,按需压缩大对象堆,在GC前收到消息通知,使用弱引用缓存对象 [翻译] 编写高性能 .NET 代码--第二章 GC -- 将长生命周期对象和大对象池化
让你的 vs code 跑在云上,用手机浏览器就能写代码 - yahle
yahle · 2019-05-23 · via 博客园 - yahle

让你的vs code 跑在云服务器上

在B站上看到一个视频Run VS Code in the browser with massive computing resources(教你如何配置一个云IDE),视频里将vs Code部署在谷歌云上,这样就可以在任意的地方,使用浏览器在线编辑代码执行程序。

随后我自然是那我在腾讯云上的服务器进行了一番测试。
这是PC上的效果:

这是手机上的效果:

以下是准备阶段:

  1. 打开github地址:code-server
  2. 购买一台云服务器(腾讯云),2核4G

开始安装:

服务器选用:Ubuntu Server 18.04.1 LTS 64位

这里不推荐centos服务器,原先自用的是centos7,但折腾了2天,实在是无法更新最新的GCC和Nodejs版本,所以自己不得不重装了服务器的操作系统:(

直接使用腾讯云的web shell登录linux


wget --no-check-certificate https://github.com/cdr/code-server/releases/download/1.1119-vsc1.33.1/code-server1.1119-vsc1.33.1-linux-x64.tar.gz

tar -xvzf code-server1.1119-vsc1.33.1-linux-x64.tar.gz

cd  code-server1.1119-vsc1.33.1-linux-x64

./code-server -p 8080

以上4个步你就可以得到这个结果:

你就可以愉快的用浏览器打开 https://cloudip:8080 输入密码,你就一个愉快的玩耍了。

高级技巧

  1. 云IDE默认使用https进行连接,你也可以http,加一个 --allow-http 即可
  2. 默认的密码是随机的,不方便,你也可以自定义密码,加一个 -P

最后你的命令可能就是

./code-server --allow-http -p 8080 -P pw123

注意事项

单独开启code-server服务,需要600M内存,用浏览器开一个IDE页面,吃掉800M内存。所以,理论上服务器2G就能跑,但实际上,最好还是要有4G内存才行。

最后

其实云IDE一直都有,有 aws 的 cloud9,可惜是java开发的,曾经试过安装,但没能跑起来就放弃了。
华为云也推出过自己的云IDE,但是和他们的DvpOps整合在一起,只能在他们的服务器上建实例,要重新开服务器,看样子也是从 cloud9 继承过来的。
阿里云没看见有,不过猜测不久将来应该也会有。
腾讯云没看见有,不过猜测未来不会有。

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

很高兴你看到了这里

千万别忘了开防火墙

Linux服务器的防火墙

腾讯云(阿里云)的防火墙