rice@rice:~$ wget https://github.com/cdr/code-server/archive/refs/tags/v3.12.0.zip
......
rice@rice:~$ unzip v3.12.0.zip
Archive: v3.12.0.zip
798dc0baf284416dbbf951e4ef596beeab6cb6c4
......
rice@rice:~$ cd code-server-3.12.0/
rice@rice:~/code-server-3.12.0$ ./install.sh
rice@rice:~/code-server-3.12.0$ code-server -v
3.12.0 b37ff28a0a582aee84a8f961755d0cb40a4081db
rice@rice:~/code-server-3.12.0$
rice@rice:~$ export PASSWORD="1314"
rice@rice:~$code-server --port 8080 --host 0.0.0.0 --auth password
[2021-09-29T12:01:29.922Z] info code-server 3.12.0 b37ff28a0a582aee84a8f961755d0cb40a4081db
[2021-09-29T12:01:29.924Z] info Using user-data-dir ~/.local/share/code-server
[2021-09-29T12:01:29.937Z] info Using config file ~/.config/code-server/config.yaml
[2021-09-29T12:01:29.937Z] info HTTP server listening on http://0.0.0.0:8080
[2021-09-29T12:01:29.937Z] info - Authentication is enabled
[2021-09-29T12:01:29.937Z] info - Using password from ~/.config/code-server/config.yaml
[2021-09-29T12:01:29.937Z] info - Not serving HTTPS
本文分享自 Rice 嵌入式开发技术分享 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!