自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 解决Ubuntu端口占用问题

Address already in use.Port 27005 is in use by another program. Either identify and stop that program, or start the server with a different port.

2023-02-16 17:11:45 3119

原创 解决有关Tensorflow1.15.0安装过程中出现的问题

TypeError: Descriptors cannot not be created directlyIf this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0If you cannot immediately regenerate your protos, some other possible workarounds

2023-01-13 23:17:55 676

原创 Ubuntu18.04中使用Dockerfile制作镜像

Dockerfile制作镜像举例.

2022-12-27 22:25:16 950

原创 解决Mysql中ERROR 1819 (HY000): Your password does not satisfy the current policy requirements问题.

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements.

2022-12-24 21:27:30 2076

转载 Ubuntu18.04中Docker容器访问宿主机的Mysql数据库.

Docker容器访问宿主机的Mysql数据库.

2022-12-24 20:55:34 475

转载 Ubuntu18.04设置frp开机自启动

配置完成frp内网穿透后,设置开机自启动。

2022-12-20 23:58:16 478

原创 K8s中The connection to the server localhost:8080 was refused- did you specify the right host or port?

K8s中,主节点init结束/从节点join后,执行kubectl get nodes时,出现The connection to the server localhost:8080 was refused- did you specify the right host or port?报错.

2022-12-13 17:46:02 680

原创 解决K8s安装中节点初始化时 [kubelet-check] The HTTP call equal to ‘curl -sSL http://localhost:10248/healthz‘ 问题.

安装K8s时,在节点初始化过程中出现[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.报错。

2022-12-12 18:02:25 6744 2

原创 解决mysql中ERROR 1291 (HY000): Column ‘gender‘ has duplicated value ‘?‘ in ENUM问题.

Ubuntu18.04在使用mysql创建数据表的性别字段时,利用enum,出现这个错误。

2022-12-10 17:17:56 1492

转载 Ubuntu18.04中解决Mysql的ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘问题.

刚刚安装完数据库,进入时,出现此报错:ERROR 1698 (28000):Access denied for user root@localhost

2022-12-07 17:25:41 384

原创 解决mysql: [Warning] World-writable config file ‘/etc/mysql/mysql.conf.d/mysqld.cnf ‘ is ignored.问题

问题描述:将/etc/mysql/mysql.conf.d/mysqld.cnf这个文件修改权限sudo chmod 777 mysqld.cnf,且重启数据库后,再次执行mysql -u root -p时,出现此警告。

2022-12-06 15:55:16 2976

原创 解决Failed to allocate directory watch: Too many open files.问题

问题描述:在Ubuntu18.04中执行sudo service mysql restart命令后,出现Failed to allocate directory watch: Too many open files.

2022-12-05 23:55:50 2859

原创 Tensorflow2.3中 tf.random.truncated_normal 截断正态分布函数

tf.random.truncated_normal(shape, mean, stddev, dtype=tf.float32, seed=None, name=None)定义:截断的产生正态分布的随机数,即随机数与均值的差值若大于两倍的标准差,则重新生成。

2022-11-05 16:56:45 2138 1

原创 解决NotImplementedError: Cannot convert a symbolic Tensor to a numpy array.问题

有效降低numpy、pandas版本,以达到匹配的效果。

2022-10-09 11:49:04 2734

原创 PyCharm中解决ModuleNotFoundError: No module named ‘sklearn’和 No module named ‘pandas’问题

解决ModuleNotFoundError: No module named ‘sklearn’和 No module named ‘pandas’问题

2022-10-01 17:04:21 2580

原创 PyCharm中解决Matplotlib绘图时AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘问题

利用PyCharm中Matplotlib绘图时,出现AttributeError: module ‘backend_interagg’ has no attribute 'FigureCanvas’错误。

2022-10-01 16:21:25 10334 3

原创 VsCode官网快速下载

VsCode官网快速下载方法

2022-09-29 16:38:40 3303

原创 Win10搭建Tensorflow并应用至Pycharm

Anaconda安装;Tensorflow安装;Pycharm环境配置;

2022-09-26 21:32:11 1588 1

原创 解决Anaconda安装后出现Conda environment has not been activated.问题

Win10安装完成Anaconda3-2021.11-Windows-x86_64.exe,且手动配置好环境变量后,出现conda未激活现象。

2022-09-26 12:50:47 5122

原创 Mybatis报错Resources.getResourceAsStream(resource)找不到该方法

Mybatis报错Resources.getResourceAsStream(resource)找不到该方法。

2022-08-24 11:39:04 4630 1

原创 Maven工程创建后,运行Java报错—java: 错误: 不支持发行版本 5

在IDE,创建maven工程,选择maven-archetype-quickstart模式创建工程后,运行其中的Java代码,报错“java: 错误: 不支持发行版本 5”。

2022-08-24 11:08:08 325

原创 Mybatis配置Mapper.xml时报错URL is not registered.

Mybatis配置Mapper.xml时报错URL is not registered.

2022-08-24 10:55:56 880 1

原创 Ubuntu18.04有线网络配置

问题描述:Ubuntu18.04主机连接有线后无法上网。

2022-07-07 16:11:31 2713

原创 解决在Docker容器内不能上网的问题

问题描述: 在Docker容器内, 无法ping通外网.

2022-07-06 17:11:23 2594

原创 有关Latex中Subsubsection换行及缩进问题

问题描述:Latex中的Subsubsection默认无换行,但在写文章时想要实现该小标题下的换行及缩进。解决办法:\subsubsection\ +空格\newline\indent +正文

2022-03-24 12:10:12 6676 1

原创 将文件从Ubuntu本机上传至Docker容器中

将文件从本机上传至docker容器中docker cp 本机文件的路径 容器ID:将要传到容器的路径举例:本机:queena@queena-Lenovo:~$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS 419877d5254e centos:7.4.1708 .

2021-12-21 17:21:41 2776

原创 Ubuntu16.04和Ubuntu18.04更换国内阿里源(X86架构)

Ubuntu默认的软件更新源是国外的,在国内使用速度很慢,因此需要更换国内源。本文以阿里源为例进行更换。1、备份原始源文件sources.listsudo cp /etc/apt/sources.list /etc/apt/sources.list.bak2、更改原始源文件sources.list#更改文件权限使其可编辑。sudo chmod 666 /etc/apt/sources.list#打开文件进行编辑。sudo gedit /etc/apt/sources.list#将sou.

2021-12-04 22:16:38 445

原创 Ubuntu添加docker权限给当前用户,可免sudo使用docker命令

1、添加docker group:sudo groupadd docker2、将当前用户添加到docker组:sudo gpasswd -a ${USER} docker3、重启docker服务:sudo service docker restart

2021-12-04 21:42:32 1813 1

原创 Ubuntu18.04部署Docker

在新的主机上首次安装 Docker 之前,需要设置 Docker 存储库。之后,可以从存储库安装和更新 Docker。设置存储库1、更新包索引并安装包,以允许通过 HTTPS 使用存储库: sudo apt-get update sudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release 2、添加 Docker 的官方 GPG 密钥: curl -fsSL https://download.docker

2021-12-04 21:04:09 1094

原创 Ubuntu中部署Weave

可能遇到的问题:GitHub中的raw.githubusercontent.com无法连接解决方法:通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址。(http://qjzd.net:3000/topic/5e48cc33dcf06d6a181ffb81)并在终端修改hosts,具体操作如下:sudo vim /etc/hosts#增加以下内容,将raw.githubusercontent.com地址映射为185.199.111.

2021-12-03 22:21:31 1013

原创 Ubuntu18.04添加ppa源时报错的解决方案

Ubuntu18.04添加ppa源时报错的解决方案sudo add-apt-repository ppa:hzwhuang/ss-qt5sudo apt-get updatesudo apt-get install shadowsocks-qt5#出现了以下的报错错误:12 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release 404 Not Found [IP: 91.189.95.85 80]正

2021-12-03 17:27:05 2932 1

原创 虚拟机显示Ubuntu繁忙,无法正常关闭虚拟机

问题:Ubuntu繁忙,无法正常关闭虚拟机解决办法:将电脑重启,重启后先不打开虚拟机,在Ubuntu安装文件夹下删除如下文件:删除后再开启虚拟机即可!

2021-03-19 21:10:07 2771

原创 Docker权限问题:Got permission denied while trying to connect to the Docker daemon socket at unix...

查看docker版本时出现如下报错:Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/version: dial unix /var/run/docker.sock: connect: permission denied解决办法:使用这个命令:sudo

2021-03-10 16:56:57 133

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除