linux下 web 版 vscode本地部署 云端加个nginx同

首先使用了自己的Windows 10 自带的linux子系统  没有的百度一下安装一下 

下面这个地址就是github中web版vscode的release版本  找到适合自己的下载一下 我这里是x86_64架构的linux  不要下载错了

https://github.com/cdr/code-server/releases

 

 等待下载好吧   

我是自己用的 所以就在本机d盘的一个目录下进行解压  然后再linux子系统内挂在目录之后  进入到二进制文件所在的位置

我笔记本电脑的ip地址为192.168.1.33

 

 

下面是我的ipad访问的截图

 

 这样就大功告成了

 

 

现在附上帮助内容

code-server 2.1698-vsc1.41.1

Usage: code-server [options][paths...]

Options
  --locale <locale>              The locale to use (e.g. en-US or zh-TW).
  --user-data-dir <dir>          Specifies the directory that user data is kept
                                 in. Can be used to open multiple distinct
                                 instances of Code.
  -v --version                   Print version.
  -h --help                      Print usage.
  --telemetry                    Shows all telemetry events which VS code
                                 collects.
  --extra-builtin-extensions-dir Path to an extra builtin extension directory.
  --extra-extensions-dir         Path to an extra user extension directory.
  --base-path                    Base path of the URL at which code-server is
                                 hosted (used for login redirects).
  --cert                         Path to certificate. If the path is omitted,
                                 both this and --cert-key will be generated.
  --cert-key                     Path to the certificate's key if one was
                                 provided.
  --format                       Format for the version. Allowed value is
                                 'json'.
  --host                         Host for the server.
  --auth                         The type of authentication to use. Allowed
                                 values are 'password', 'none'.
  --open                         Open in the browser on startup.
  --port                         Port for the main server.
  --socket                       Listen on a socket instead of host:port.

Extensions Management
  --extensions-dir <dir>                            Set the root path for
                                                    extensions.
  --list-extensions                                 List the installed
                                                    extensions.
  --show-versions                                   Show versions of installed
                                                    extensions, when using
                                                    --list-extension.
  --category                                        Filters installed
                                                    extensions by provided
                                                    category, when using
                                                    --list-extension.
  --install-extension <extension-id | path-to-vsix> Installs or updates the
                                                    extension. Use `--force`
                                                    argument to avoid
                                                    prompts.
  --uninstall-extension <extension-id>              Uninstalls an extension.
  --enable-proposed-api <extension-id>              Enables proposed API
                                                    features for extensions.
                                                    Can receive one or more
                                                    extension IDs to enable
                                                    individually.

Troubleshooting
  --verbose                          Print verbose output (implies --wait).
  --log <level>                      Log level to use. Default is 'info'.
                                     Allowed values are 'critical', 'error',
                                     'warn', 'info', 'debug', 'trace', 'off'.
  -s --status                        Print process usage and diagnostics
                                     information.
  --disable-extensions               Disable all installed extensions.
  --disable-extension <extension-id> Disable an extension.
  --max-memory                       Max memory size for a window (in Mbytes).

 

posted @ 2020-02-07 01:46  simp00  阅读(510)  评论(0编辑  收藏  举报