草庐IT

idea启动 org.springframework.boot.web.server.PortInUseException: Port XXX is already in use

  win+r,输入cmd,进入命令行窗口查询占用端口号所在进程:netstat-ano|findstr8001杀死进程:taskkill-f-pid进程号 

Requirement already satisfied解决办法

遇到的问题:当使用电脑中安装的Python3.7的IDLE去运行某一个python文件时,会出现ModuleNotFoundError:Nomodulenamed'numpy'的报错,需要安装numpy库。而当使用win+R快捷键打开cmd,输入pipinstallnumpy命令时,却得到Requirementalreadysatisfied:numpyind:programminganaconda3libsite-packages(1.16.5)的提示,告诉我们已经有numpy存在于d:programminganaconda3libsite-packages(1.16.5)路径中,但是我们在

Requirement already satisfied解决办法

遇到的问题:当使用电脑中安装的Python3.7的IDLE去运行某一个python文件时,会出现ModuleNotFoundError:Nomodulenamed'numpy'的报错,需要安装numpy库。而当使用win+R快捷键打开cmd,输入pipinstallnumpy命令时,却得到Requirementalreadysatisfied:numpyind:programminganaconda3libsite-packages(1.16.5)的提示,告诉我们已经有numpy存在于d:programminganaconda3libsite-packages(1.16.5)路径中,但是我们在

Docker启动报错docker: Error response from daemon: Conflict. The container name “/redis6“ is already in u

docker启动报错docker:Errorresponsefromdaemon:Conflict.Thecontainername"/redis6"isalreadyinusebycontainer"b472e52c109bb5cfadf9dcd167b0e9a66f5215477a96673f0d60c7d07d7e746b".Youhavetoremove(orrename)thatcontainertobeabletoreusethatname.原因是:Centos7的内核过低或者过高的问题。拓展视频:腾讯最新前后端技术实战https://download.csdn.net/cours

Docker启动报错docker: Error response from daemon: Conflict. The container name “/redis6“ is already in u

docker启动报错docker:Errorresponsefromdaemon:Conflict.Thecontainername"/redis6"isalreadyinusebycontainer"b472e52c109bb5cfadf9dcd167b0e9a66f5215477a96673f0d60c7d07d7e746b".Youhavetoremove(orrename)thatcontainertobeabletoreusethatname.原因是:Centos7的内核过低或者过高的问题。拓展视频:腾讯最新前后端技术实战https://download.csdn.net/cours

Centos7系统创建用户时出现“useradd: user ‘xxxx‘ already exists”错误

镜像下载、域名解析、时间同步请点击阿里云开源镜像站背景:Centos7上需要创建一个用户leojiang,而用户时间不纯在系统上,但是还是报错说用户已经存在。1、假设您正在尝试添加一个名为“leojiang”的用户并且您收到以下错误。[root@leo]#useradd-m-d/home/addmunx-s/bin/shleojianguseradd:user'leojiang'alreadyexists2、调查,先查看系统上是否存在这个用户leojiang[root@leo]#cat/etc/passwd|grepleojiang[root@leo]#/etc/shadow文件,用于存储Li

Centos7系统创建用户时出现“useradd: user ‘xxxx‘ already exists”错误

镜像下载、域名解析、时间同步请点击阿里云开源镜像站背景:Centos7上需要创建一个用户leojiang,而用户时间不纯在系统上,但是还是报错说用户已经存在。1、假设您正在尝试添加一个名为“leojiang”的用户并且您收到以下错误。[root@leo]#useradd-m-d/home/addmunx-s/bin/shleojianguseradd:user'leojiang'alreadyexists2、调查,先查看系统上是否存在这个用户leojiang[root@leo]#cat/etc/passwd|grepleojiang[root@leo]#/etc/shadow文件,用于存储Li

nestJs中使用typeORM报'QueryFailedError: Table 'equtype' already exists'错误

nestJs中使用typeORM报'QueryFailedError:Table'equtype'alreadyexists'错误如图,博主在定义实体类的时候,代码如下import{Entity,Column,PrimaryGeneratedColumn,CreateDateColumn}from'typeorm';import{ApiProperty}from'@nestjs/swagger';/***健身器材类型实体*/@Entity('equType')exportclassEqutype{@ApiProperty({description:'id'})@PrimaryGenerated

nestJs中使用typeORM报'QueryFailedError: Table 'equtype' already exists'错误

nestJs中使用typeORM报'QueryFailedError:Table'equtype'alreadyexists'错误如图,博主在定义实体类的时候,代码如下import{Entity,Column,PrimaryGeneratedColumn,CreateDateColumn}from'typeorm';import{ApiProperty}from'@nestjs/swagger';/***健身器材类型实体*/@Entity('equType')exportclassEqutype{@ApiProperty({description:'id'})@PrimaryGenerated

Mongoose 解决 Query was already executed 问题

本文已整理到Github,地址?blog。如果我的内容帮助到了您,欢迎点个Star???鼓励鼓励:)~~我希望我的内容可以帮助你。现在我专注于前端领域,但我也将分享我在有限的时间内看到和感受到的东西。当给定查询执行两次时,Mongoose会抛出"Querywasalreadyexecuted"(查询已执行)错误。对此最常见的解释是您正在混合await和回调。awaitModel.updateMany({},{$inc:{count:1}},function(err){})//"MongooseError:Querywasalreadyexecuted"这是因为Mongoose在收到回调或awa