惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
L
LINUX DO - 热门话题
P
Proofpoint News Feed
P
Privacy & Cybersecurity Law Blog
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
Cisco Talos Blog
Cisco Talos Blog
AI
AI
L
LINUX DO - 最新话题
H
Heimdal Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
The GitHub Blog
The GitHub Blog
I
Intezer
Blog — PlanetScale
Blog — PlanetScale
有赞技术团队
有赞技术团队
S
Securelist
博客园_首页
IT之家
IT之家
Schneier on Security
Schneier on Security
博客园 - 叶小钗
罗磊的独立博客
WordPress大学
WordPress大学
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
W
WeLiveSecurity
The Register - Security
The Register - Security
D
DataBreaches.Net
S
Security @ Cisco Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
Recorded Future
Recorded Future
NISL@THU
NISL@THU
N
News and Events Feed by Topic
T
Tailwind CSS Blog
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
T
Tor Project blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com

博客园 - 泡面 @ 幸福

python中list数组指定类型 windows10安装Trading View出错解决办法 windows or linux 64位安装ta-lib包 在centos7开启SSH服务 在centos7升级nodejs到最新版本 一张自画的RBAC用户、组、角色、权限、指令、资源图 JSON树形格式从子级获取所有父级ID JSON数据格式生成无限级树结构 MYSQL查询上级和下级 码云push时提示 DeployKey does not support push code fatal: Could not read from remote repository. git常用命令 thinkjs框架发布上线PM2管理,静态资源访问配置 登陆服务器提示“You need to run "nvm install N/A" to install it before using it.” CentOS 7.x 用shell增加、删除端口 CentOS 7.X 安全手记 Centos 7.x nginx隐藏版本号 centos7磁盘挂载及取消 CentOS 7.4上网速度慢,修改DNS! Centos7.4 安装Docker
nodejs&wsl&vscode&docker开发环境搭建
泡面 @ 幸福 · 2022-01-29 · via 博客园 - 泡面 @ 幸福

一、在windows10中安装WSL2

  1、安装条件

    必须运行 Windows 10 版本 2004 及更高版本(内部版本 19041 及更高版本)或 Windows 11。

    https://docs.microsoft.com/zh-cn/windows/wsl/install

  2、安装步骤

    在PowerShell下运行

    wsl --install

  3、修改Ubuntu国内源(https://mirrors.huaweicloud.com/home)

    1、)备份配置文件      

npm config set registry https://repo.huaweicloud.com/repository/npm/
npm cache clean -f

    2、)修改sources.list文件,将http://archive.ubuntu.com和http://security.ubuntu.com替换成http://repo.huaweicloud.com,可以参考如下命令:

sudo sed -i "s@http://.*archive.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list
sudo sed -i "s@http://.*security.ubuntu.com@http://repo.huaweicloud.com@g" /etc/apt/sources.list

    3、执行apt-get update更新索引

 二、安装vscode

  1、安装地址

    https://code.visualstudio.com/

  2、安装vscode wsl插件

  3、在wsl中连接ubuntu环境

三、安装docker

  1、在windows中安装docker desktop工具

    https://www.docker.com/get-started

    在安装时,勾选“install required windows components for WSL2”

    在windows安装好了后,ubuntu中也会同步安装

  2、给docker配置加速器

    1、打开阿里云->控制台->容器镜像服务->镜像工具->镜像加速器->复制镜像加速器地址-> https://nceaty2o.mirror.aliyuncs.com

    2、打开在windows中打开,docker desktop工具

       setting-> Docker Engine->将加速地址填入"registry-mirrors"中

  3、在vscode中本地跟远程WSL中安装docker插件

四、安装nodejs

  1、在ubuntu中安装nodejs版本管理器 

export NVS_HOME="$HOME/.nvs"
git clone https://github.com/jasongin/nvs "$NVS_HOME"
. "$NVS_HOME/nvs.sh" install

   2、查看nvs版本

  3、安装nodejs LTS版

  4、设置LTS版本为默认版本

  5、配置NPM国内源 

npm config set registry https://repo.huaweicloud.com/repository/npm/
npm cache clean -f