我装的是这个玩意哈
https://github.com/coder/code-server

curl -fsSL https://code-server.dev/install.sh | sh
然后是systemctld
sudo systemctl enable --now code-server@$USER
打开之后检查一下
sudo netstat -tuln | grep LISTEN
默认运行在8080
然后其余的配置,可以看它的nginx的配置文档
server {
listen 80;
server_name code.lemonhall.me;
# enforce https
return 301 https://$server_name:443$request_uri;
}
server {
listen 443 ssl http2;
server_name code.lemonhall.me;
ssl_certificate /etc/letsencrypt/live/172-233-73-134.ip.linodeusercontent.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/172-233-73-134.ip.linodeusercontent.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}最后一定要验证一下

写python需要装的几个插件
