- 博客(14)
- 收藏
- 关注
原创 NestJS TypeORM Pagination
NestJS TypeORM Pagination - DemoWhen working on an API, sometimes, we have to paginate our data in order to provide a good user experience. In this tutorial, we will be doing a NestJS TypeORM Pagination example. The example will be a products API.Setting
2020-10-21 23:11:28
726
1
转载 Dockerfile for dotnet
# 1. 指定编译和发布应用的镜像FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build# 2. 指定(编译和发布)工作目录WORKDIR /app# 3. 拷贝.csproj到工作目录/app,然后执行dotnet restore恢复所有安装的NuGet包COPY *.csproj ./RUN dotnet restore# 4. 拷贝所有文件到工作目录(/app),然后执行dotnet publish命令将应用发布到/app/out目录
2020-08-19 18:25:25
289
原创 Win10连接WSL2-Ubuntu中的MySQL
安装$ apt update$ apt install mysql-server安装完毕后重启mysql服务$ service mysql restart开启远程访问# 修改配置文件 /etc/mysql/mysql.conf.d/mysqld.cnf$ vi /etc/mysql/mysql.conf.d/mysqld.cnf# 注释 bind-address = 127.0.0.1# 登录MySQL$ mysql -uroot -p# 新增用户并允许远程访问mysql&g
2020-08-04 21:50:16
6619
1
原创 Ubuntu apt update 命令无法解析域名及解决办法
问题描述今天在WSL2 (Ubuntu)上运行apt update命令,结果出现以下错误:$ apt updateErr:1 http://archive.ubuntu.com/ubuntu bionic InRelease Could not connect to archive.ubuntu.com:80 (91.189.91.23). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80
2020-08-04 20:58:08
8139
原创 Angular Error - You seem to not be depending on “@angular/core“ and/or “rxjs“. This is an error.
错误详情解决方法# 先运行npm link$ npm link$ ng serve
2020-07-31 23:46:08
872
转载 Ubuntu下安装Kafka
Ubuntu 18.04 LTSJDK 8Kafka 2.12-2.4.0安装Java SDK$ apt update$ apt install openjdk-8-jdk安装Kafka新版Kafka已经集成ZooKeeper,无需单独安装$ wget http://mirrors.tuna.tsinghua.edu.cn/apache/kafka/2.4.0/kafka_2.12-2.4.0.tgz$ tar -zxvf kafka_2.12-2.4.0.tgz修改配置文件$.
2020-07-28 12:25:07
449
原创 docker web 客户端PORTAINER安装
安装Portainer$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer访问http://localhost:9000
2020-07-10 00:03:49
263
转载 WSL2 Docker Distro迁移
参考https://github.com/docker/for-win/issues/7348查看现有distro$ wsl -l -v NAME STATE VERSION* Ubuntu-18.04 Running 2 docker-desktop-data Running 2 docker-desktop Running 2因为d.
2020-06-30 03:19:14
1561
原创 Docker安装PostgreSQL数据库和管理工具PgAdmin4
1. 拉取postgres镜像$ docker pull postgresUsing default tag: latestlatest: Pulling from library/postgres8559a31e96f4: Already exists04866763fec8: Pull complete1705d51f48e5: Pull completee59f13162b50: Pull completef34bb6f66594: Pull completecbfb60b6801a
2020-06-29 18:59:20
3424
1
原创 ABP vNext初始化种子数据
1. 定义实体类public class Book : AuditedAggregateRoot<Guid> { public string Name { get; set; } public BookType Type { get; set; } public DateTime PublishDate { get; set; } public float Price { get; set; } prot
2020-06-28 20:31:44
2801
原创 NPM安装出现错误Maximum call stack size exceeded
1. 问题今天在安装ng-alain依赖时出现以下错误2. 解决办法先尝试将npm升级到最新版$ npm install npm -g# 检查版本$ npm -v6.14.5运行以下命令删除当前路径下的node_modules目录$ rm node_modules # Are you sure you want to continue?# [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Hel
2020-06-26 20:47:58
12218
转载 k8s yml
# yaml格式的pod定义文件完整内容:apiVersion: v1 #必选,版本号,例如v1kind: Pod #必选,Podmetadata: #必选,元数据 name: string #必选,Pod名称 namespace: string #必选,Pod所属的命名空间 labels: #自定义标签 - name: string #自定义标签名字 annotations: #自定义注释列.
2020-06-25 01:54:09
144
原创 Gaming as a Service (GaaS)
Table of ContentWhat Is Gaming as a Service?Gaming as a Service: Matching Goals to RealitiesCommon Delivery Methods by Studio Business ModelWhy Kanban for GaaS Delivery?Solving the GaaS Pipeline PuzzleBringing It All TogetherWhat Is Gaming as a Se
2020-06-13 21:06:08
648
原创 基于Docker Desktop for Windows安装Kubernetes
本文基于Docker Desktop for Window1. 拉取Kubernetes镜像在命令行中运行以下命令git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop.gitcd k8s-for-docker-desktopgit checkout v1.16.5在当前目录中运行ps文件.\load_images.ps1等待镜像安装完毕❯ .\load_images.ps1k8s.gc
2020-06-13 02:42:16
4525
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人