ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# windows安装linux子系统 # ubuntu 首先配置软件国内镜像地址 ``` <pre class="calibre13">``` 路径 <span class="token">/</span>etc<span class="token">/</span>opt<span class="token">/</span>source<span class="token1">.</span>list 授予权限 <span class="token5">777</span> 给source<span class="token1">.</span>list vim 打开文件 输入ggdG 其中,gg为跳转到文件首行;dG为删除光标所在行以及其下所有行的内容; 再细讲,d为删除,<span class="token5">G</span>为跳转到文件末尾行; 软后iao ``` ``` ### 获取软件更新列表和软件更新 ``` <pre class="calibre13">``` sudo apt update <span class="token">&&</span> sudo apt upgrade ``` ``` ### 国内软件阿里云地址 ``` <pre class="calibre13">``` deb http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty main restricted universe multiverse deb http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>security main restricted universe multiverse deb http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>updates main restricted universe multiverse deb http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>proposed main restricted universe multiverse deb http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>backports main restricted universe multiverse deb<span class="token">-</span>src http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty main restricted universe multiverse deb<span class="token">-</span>src http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>security main restricted universe multiverse deb<span class="token">-</span>src http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>updates main restricted universe multiverse deb<span class="token">-</span>src http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>proposed main restricted universe multiverse deb<span class="token">-</span>src http<span class="token1">:</span><span class="token">/</span><span class="token">/</span>mirrors<span class="token1">.</span>aliyun<span class="token1">.</span>com<span class="token">/</span>ubuntu<span class="token">/</span> trusty<span class="token">-</span>backports main restricted universe multiverse ``` ``` ### 下载nvm 从国内码云 ``` <pre class="calibre13">``` 管理员运行 git clone https<span class="token1">:</span><span class="token">/</span><span class="token">/</span>gitee<span class="token1">.</span>com<span class="token">/</span>mirrors<span class="token">/</span>nvm<span class="token1">.</span>git 进入nvm目录 运行 bash install<span class="token1">.</span>sh 然后添加配置项 ``` ``` ### 安装nrm ``` <pre class="calibre13">``` 下载cnpm npm install <span class="token">-</span>g cnpm <span class="token">--</span>registry<span class="token">=</span>https<span class="token1">:</span><span class="token">/</span><span class="token">/</span>registry<span class="token1">.</span>npm<span class="token1">.</span>taobao<span class="token1">.</span>org npm install <span class="token">-</span>g nrm ``` ``` ## 安装node mac是10。24。1版本 ### 临时修改nvm的node国内镜像 ``` <pre class="calibre13">``` export NVM_NODEJS_ORG_MIRROR<span class="token">=</span>https<span class="token1">:</span><span class="token">/</span><span class="token">/</span>npm<span class="token1">.</span>taobao<span class="token1">.</span>org<span class="token">/</span>mirrors<span class="token">/</span>node ``` ``` # centos7 ## 更新软件 yum -y update ## 安装 nvm ``` <pre class="calibre13">``` yum install git git <span class="token">--</span>version git clone git<span class="token1">:</span><span class="token">/</span><span class="token">/</span>github<span class="token1">.</span>com<span class="token">/</span>creationix<span class="token">/</span>nvm<span class="token1">.</span>git <span class="token">~</span><span class="token">/</span>nvm command <span class="token">-</span>v nvm echo <span class="token4">"source ~/nvm/nvm.sh"</span> <span class="token">>></span> <span class="token">~</span><span class="token">/</span><span class="token1">.</span>bashrc source <span class="token">~</span><span class="token">/</span><span class="token1">.</span>bashrc ``` ``` ``` <pre class="calibre13">``` 依赖包 yum install gcc<span class="token">-</span>c<span class="token">++</span> ``` ``` ``` <pre class="calibre14">``` fibers@<span class="token5">5.0</span><span class="token5">.0</span>安装不上 增加了一个用户 就安装上了 不能使用root用户进行安装 ``` ```