nodeJS

nvm setting nvm ls nvm ls available nvm install {version} nvm use {version} npm setting npm config set registry https://registry.npm.taobao.org npm config set sass_binary_site "https://npm.taobao.org/mirrors/node-sass" npm config list cnpm settting npm install -g cnpm --registry=https://registry.npm.taobao.org error MSBUILD : error MSB4132: 无法识别工具版本“2.0”。可用的工具版本为 “4.0”。 npm install --msvs_version 2015

March 25, 2021 · 1 min · Steven Jiang

Git

cmd # 下载子模块代码 git submodule update --init --recursive error Git报错解决:OpenSSL SSL_read: Connection was reset, errno 10054 错误解决 git config --global http.sslVerify "false"

March 25, 2021 · 1 min · Steven Jiang

Conda

cmd conda info --envs conda info -e conda create -n env-name python=X.X activate env-name deactivate conda remove -n env-name --all

March 25, 2021 · 1 min · Steven Jiang

Win10

Soft Browser: Chrome/Edge Microsoft Terminal Powershell7 Sougou Input XMind WeChat QQ 向日葵远程控制 360驱动大师 Bandzip Office HBuilderX Java1.8_181 wechat_devtools Jetbrains Toolbox VS Code Axure RP9 Navicat Premium 15 Visual Studio Installer scoop 7zip git everything postman hugo nodejs

March 24, 2021 · 1 min · Steven Jiang

Docker MongoDB

start mongodb 4.4 in docker,use ~/mongo/data to persist data docker-compose.yml version: '3.1' services: mongodb: image: mongo:4.4 command: mongod --auth volumes: - ~/mongo/data:/data/db ports: - 27017:27017 restart: always environment: MONGO_INITDB_ROOT_USERNAME: {username} MONGO_INITDB_ROOT_PASSWORD: {password}

March 24, 2021 · 1 min · Steven Jiang

Docker MySQL

start mysql8 in docker,use ~/mysql/data to persist data docker-compose.yml version: '3.1' services: mysql: image: mysql:8 container_name: mysql command: --default-authentication-plugin=mysql_native_password volumes: - mysql-data:/var/lib/mysql ports: - 3306:3306 restart: always environment: MYSQL_ROOT_PASSWORD: {your password} TZ: Asia/Shanghai network_mode: bridge volumes: mysql-data: external: true

March 24, 2021 · 1 min · Steven Jiang

Docker PgAdmin4

start pgadmin4 5.1 in docker docker-compose.yml version: '3.1' services: pgadmin4: image: dpage/pgadmin4:5.1 ports: - 8081:80 restart: always environment: PGADMIN_DEFAULT_EMAIL: {email} PGADMIN_DEFAULT_PASSWORD: {password}

March 24, 2021 · 1 min · Steven Jiang

Docker PostgreSQL

start postgresql 13 and pgadmin4 5.1 in docker,use ~/postgresql/data to persist data docker-compose.yml version: '3.1' services: postgresql: image: postgres:13 volumes: - ~/postgresql/data:/var/lib/postgresql/data ports: - 5432:5432 restart: always environment: POSTGRES_PASSWORD: {password} pgadmin4: image: dpage/pgadmin4:5.1 ports: - 80:80 restart: always environment: PGADMIN_DEFAULT_EMAIL: {email} PGADMIN_DEFAULT_PASSWORD: {password}

March 24, 2021 · 1 min · Steven Jiang

Docker RabbitMQ

start rabbitmq 3.8.14 and management plugin in docker docker-compose.yml version: '3.1' services: rabbitmq: image: rabbitmq:3.8.14-management ports: - 15672:15672 - 5672:5672 restart: always environment: RABBITMQ_DEFAULT_USER: {username} RABBITMQ_DEFAULT_PASS: {password}

March 24, 2021 · 1 min · Steven Jiang

Docker Redis

start redis 6.2 in docker,use ~/redis/data to persist data docker-compose.yml version: '3.1' services: redis: image: redis:latest container_name: redis command: redis-server --requirepass {password} --appendonly yes #command: redis-server /usr/local/etc/redis/redis.conf volumes: - ~/redis/redis.conf:/usr/local/etc/redis/redis.conf - redis-data:/data ports: - 6379:6379 restart: always network_mode: bridge volumes: redis-data: external: true redis.conf requirepass {password} appendonly yes daemonize no

March 24, 2021 · 1 min · Steven Jiang