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

推荐订阅源

IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
G
Google Developers Blog
博客园 - Franky
Google DeepMind News
Google DeepMind News
阮一峰的网络日志
阮一峰的网络日志
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 【当耐特】
腾讯CDC
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
博客园_首页
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

Mox的笔记库

2026PPoPP MLIR Tutorial学习 | Mox的笔记库 MacOS配置《明日方舟:终末地》 | Mox的笔记库 2025:向内生长 | Mox的笔记库 由mlir::ExecutionEngine引发的跨系统问题 | Mox的笔记库 WSL2配置Cuda-Tile环境记录(未完待续) | Mox的笔记库 Vibe Coding手搓项目记录 | Mox的笔记库 给Debian上包——以DuckDB为例 | Mox的笔记库 UCPD.sys事件存档 | Mox的笔记库 换新电脑之Mac mini M4从购买到配置 | Mox的笔记库 Mac配置MLX-C开发环境 | Mox的笔记库 RISC-V meets RDBMS——RISC-V架构上可运行数据库一览 | Mox的笔记库 DuckDB Sort实现调查 | Mox的笔记库 修复Redis在树莓派5上无法运行的问题 | Mox的笔记库 如何在MLIR中自定义类型并且输出运行 | Mox的笔记库 网站网络结构变更记录 | Mox的笔记库 EDBT25论文阅读:PhoebeDB——A Disk-Based RDBMS Kernel for High-Performance and Cost-Effective OLTP SIGMOD25论文阅读:BPF-DB:——A Kernel-Embedded Transactional Database Management System For eBPF Applications Apache Arrow Gandiva项目解析 | Mox的笔记库 VLDB24论文阅读:Cloud-Native Database Systems and Unikernels——Reimagining OS Abstractions for Modern Hardware NoisePage源码分析(未完待续) | Mox的笔记库 VLDB20论文阅读:Mainlining Databases——Supporting Fast Transactional Workloads on Universal Columnar Data File Formats VLDB17论文阅读:Relaxed Operator Fusion for In-Memory Databases:Making Compilation, Vectorization, and Prefetching Work Together At Last 论文阅读:How not to structure your database-backed web applications——a study of performance bugs in the wild SIGMOD24阅读:ROME——Robust Query Optimization via Parallel Multi-Plan Execution 文章阅读:First Past the Post-Evaluating Query Optimization in MongoDB SIGMOD文章阅读:Apache Calcite——A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sources VLDB23论文阅读:Analyzing the Impact of Cardinality Estimation on Execution Plans in Microsoft SQL Server SIGMOD22论文阅读:Efficient Massively Parallel Join Optimization for Large Queries VLDB论文阅读:Weaving Relations for Cache Performance VLDB22论文阅读:ConnectorX——Accelerating Data Loading From Databases to Dataframes
code-server初体验 | Mox的笔记库
MocusEZ · 2023-12-10 · via Mox的笔记库

考古V2EX时,站长推荐的的东西

https://github.com/coder/code-server

站长的帖子是2019年发的,马上要2024年了,不知道体验怎么样,玩一下不亏😁

部署

安装包部署

找了台Vultr机器,直接用Github release的安装包

安装教程可以参考这篇文章,写的很详细:

code-server 安装部署,平板手机随时随地写代码

选择的系统是AlmaLinux 9,5$的机器,Github脚本获取的速度杠杠的

卡在了最终的防火墙上,怎么添加8080/TCP许可都不管用,最后关掉后才成功Work

在同学的CentOS 7.6上嚯嚯,发现启动不了:

只好作罢

Docker部署

https://coder.com/docs/code-server/latest/install#docker

官方的脚本:

mkdir -p ~/.config

docker run -it --name code-server -p 127.0.0.1:8080:8080 \

-v "$HOME/.local:/home/coder/.local" \

-v "$HOME/.config:/home/coder/.config" \

-v "$PWD:/home/coder/project" \

-u "$(id -u):$(id -g)" \

-e "DOCKER_USER=$USER" \

codercom/code-server:latest

但这个脚本用root账户有坑,root账户的脚本应该为这样

mkdir -p ~/.config

docker run -it --name code-server -p 127.0.0.1:8080:8080 \

-v "$HOME/.local:/root/.local" \

-v "$HOME/.config:/root/.config" \

-v "$PWD:/home/coder/project" \

-u "$(id -u):$(id -g)" \

-e "DOCKER_USER=$USER" \

codercom/code-server:latest

嗯,美滋滋😋

使用体验

.config找密码,填入下面的方框

进去以后就可以获得VScode类似的界面

插件什么的和VScode一致

容器环境为Debain 11,如果是安装包安装的话环境就是当前系统,对此需要主要安全

PWA的效果简直可以以假乱真(同学的Win11电脑)

如果不明说,根本不会有人知道这个Hello world是跑在服务器上的😂

跑NextJS也不在话下

需要做好端口映射

结语

拿来远程办公感觉不错,但感觉比较消耗服务器资源,可以考虑给家里的NAS上一个


avatar

探索未曾设想的道路