<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ## 概述 winddow 的docker 最好是使用 wsl 2 ## 對比 | 功能 | WSL 1 | WSL 2 | | --- | --- | --- | | Windows 和 Linux 之間的集成 | ? | ? | | 啟動時間短 | ? | ? | | 與傳統虛擬機相比,占用的資源量少 | ? | ? | | 可以與當前版本的 VMware 和 VirtualBox 一起運行 | ? | ? | | 托管 VM | ? | ? | | 完整的 Linux 內核 | ? | ? | | 完全的系統調用兼容性 | ? | ? | | 跨 OS 文件系統的性能 | ? | ? | ## 常用命令 ``` wsl --list,-l // 列表安裝的子系統 --online,-o // 查看有效子系統列表 --running // 列出正在運行的子系統 -v // 顯示詳細信息 wsl --install // 安裝默認子 Ubuntu WSL2 系統 wsl --install -d Debian // 指定安裝 Debian 子系統 wsl --set-default // 切換默認子系統(在輸入wsl后自動進入的系統) wsl --set-default-version // 設置WSL 的版本 wsl --shutdown // 停止所有子系統 wsl --update|--rollback //更新,還原子系統 wsl --unregister <系統名> // 注銷分發并刪除根文件系統。 wsl --status // 查看分支狀態 ``` ## 安裝WSL 流程 ### 安裝 WSL ``` wsl --install ``` * 啟用可選的 WSL 和虛擬機平臺組件 * 下載并安裝最新 Linux 內核 * 將 WSL 2 設置為默認值 * 下載并安裝 Ubuntu Linux 發行版(可能需要重新啟動) ### 更新和升級包 ``` sudo apt update && sudo apt upgrade ``` ## 示例 ### docker 設置 WSL 2 ![](https://img.kancloud.cn/98/a0/98a03e2ab12b5dcbdb5f08f6b25dfebc_2073x1319.png) ### 可直接運行子系統中的命令 ``` wsl curl ``` ### 將 WSL2 設為默認版本 ``` wsl --set-default-version 2 ``` ### 安裝子系統 ``` > wsl -l -o > wsl --install -d Ubuntu-18.04 ``` 在開始欄點擊 Ubuntu,創建用戶 ### 設置為 WSL2 去執行 ``` //通過管理員 Powershell 執行以下命令查詢分配的版本 wsl -l -v wsl --set-version <發行版全稱> 2 ``` ### 換國內鏡像源 ``` sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak vi /etc/apt/sources.list // 寫入一下內容 deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse sudo apt-get -y update && sudo apt-get -y upgrade ``` ### 安裝 界面 只有 win 11 https://docs.microsoft.com/zh-cn/windows/wsl/tutorials/gui-apps
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看