自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

zhangpan

逆水行舟 不进则退

  • 博客(57)
  • 收藏
  • 关注

原创 Linux-Centos根目录空间不足,热挂载磁盘

针对Linux-Centos根目录空间不足热扩容挂载新磁盘,整理命令如下,以备下次使用,先上代码。[root@CentOS /]# fdisk -l[root@CentOS /]# fdisk /dev/sdb[root@CentOS /]# df -h[root@CentOS /]# fdisk -l[root@CentOS /]# fdisk sdb[root@CentOS /]# lsblk[root@CentOS /]# mkfs -t ext4 /dev/sdb1[root@Cen

2020-09-27 11:36:20 1142

原创 常用docker镜像仓库地址

一、国内仓库网易:https://c.163yun.com/hub#/m/home/(需登录)阿里云:https://cr.console.aliyun.com/cn-beijing/instances/images(需登录)DaoCloud道客网络:https://hub.daocloud.io/二、国外仓库Docker Hub: https://hub.doc...

2019-08-12 10:57:34 60205

原创 Linux跨服务器复制文件 scp命令的使用

命令: scp -P 端口号 文件 root@IP:/usr/xxx

2016-06-02 18:57:43 756

原创 Linux操作系统概述及发行版选择

Linux是一种开源的操作系统,广泛应用于服务器、嵌入式设备和个人计算机等领域。它以稳定性、灵活性和安全性而闻名,并具有强大的命令行界面和丰富的工具生态系统。下面我们将介绍如何选择合适的Linux发行版并进行安装。

2023-06-08 09:11:12 773

原创 常用Linux命令

【代码】常用Linux命令。

2023-06-08 09:02:24 698

原创 Linux运维技术学习与分享:构建稳定高效的系统管理与自动化(1)

在这篇博文中,我们将探索Shell脚本编程的基础知识,包括语法和结构,以及常用的Shell命令和控制结构。在这个模块中,我们将介绍常用的系统监控工具和技术,例如top、sar和vmstat。容器化和虚拟化:随着容器化和虚拟化技术的流行,了解如何使用容器和虚拟机管理应用程序是必不可少的。我们将学习数据库的安装、配置和基本操作与管理。我们将介绍Linux的起源和发展历程,了解Linux文件系统的组织结构和基本命令行操作。我们将学习如何配置和管理网络接口、防火墙和路由,以及探讨基本的网络安全概念和最佳实践。

2023-06-07 12:01:20 473

转载 Linux格式化数据盘

Linux格式化数据盘

2021-12-06 17:00:17 742

转载 6个CSS按钮边框过渡动画效果

当鼠标移到按钮上时,6个CSS按钮边框过渡动画效果。

2021-11-26 10:42:47 2365 1

原创 mybatis-plus字段更新为null

mybatis-plus字段或属性更新为nullmybatis-plus update null1、单属性update允许null2、全局update允许nullmybatis-plus update null1、单属性update允许null在相应字段上添加字段注解:@TableField(updateStrategy = FieldStrategy.IGNORED) 即可@TableField(updateStrategy = FieldStrategy.IGNORED)private Bi

2021-04-01 16:24:53 1186

转载 2019开源镜像站

阿里云 :https://mirrors.aliyun.com/腾讯云:https://mirrors.cloud.tencent.com/index.html华为云:https://mirrors.huaweicloud.com/清华源:http://mirrors.tuna.tsinghua.edu.cn/搜狐开源镜像站:http://mirrors.sohu.com/网易开源镜像站...

2019-08-12 11:24:12 1817

原创 Python3 AttributeError: 'cv2.ml_KNearest' object has no attribute 'find_nearest'

问题:在用python3使用knn.find_nearest(newcomer, 3)的时候,可能会产生错误:AttributeError: 'cv2.ml_KNearest' object has no attribute 'find_nearest'ret, results, neighbours, dist = knn.find_nearest(newcomer, 3)print("...

2019-02-27 09:58:04 555

原创 Python3 TypeError: only size-1 arrays can be converted to Python scalars

问题:在用python3使用knn.train(trainData, responses)的时候,可能会产生错误:TypeError: only size-1 arrays can be converted to Python scalarsnewcomer = np.random.randint(0, 100, (1, 2)).astype(np.float32)plt.scatter(...

2019-02-27 09:57:08 8551

原创 Python3 AttributeError: module 'cv2' has no attribute 'KNearest'

问题:在用python3使用knn = cv2.KNearest()的时候,可能会产生错误:AttributeError: module 'cv2' has no attribute 'KNearest'newcomer = np.random.randint(0, 100, (1, 2)).astype(np.float32)plt.scatter(newcomer[:, 0], new...

2019-02-27 09:56:34 1184

原创 Python3 AttributeError: module 'cv2' has no attribute 'createBackgroundSubtractorMOG'

问题:在用python3使用cv2.createBackgroundSubtractorMOG()的时候,可能会产生错误:AttributeError: module 'cv2' has no attribute 'createBackgroundSubtractorMOG'import numpy as npimport cv2cap = cv2.VideoCapture(0)fgb...

2019-02-27 09:55:18 1225 1

原创 Python3 TypeError: Required argument 'outImg' (pos 6) not found

问题:在用python3使用img3 = cv2.drawMatchesKnn(img1,kp1,img2,kp2,good,flags=2)的时候,可能会产生错误:TypeError: Required argument 'outImg' (pos 6) not foundimport numpy as npimport cv2from matplotlib import pyplot...

2019-02-27 09:54:37 1263

原创 python3 TypeError: Incorrect type of self (must be 'Feature2D' or its derivative)

问题:在用python3使用orb = cv2.ORB()进行ORB时候,可能会产生错误:TypeError: Incorrect type of self (must be 'Feature2D' or its derivative)import numpy as npimport cv2from matplotlib import pyplot as pltimg1 = cv2.i...

2019-02-27 09:53:48 1219

原创 Python3 AttributeError: module 'cv2' has no attribute 'SIFT'

问题:在用python3使用sift = cv2.SIFT()进行SIFT时候,可能会产生错误:AttributeError: module 'cv2' has no attribute 'SIFT'import numpy as npimport cv2from matplotlib import pyplot as pltimg1 = cv2.imread('data/queryI...

2019-02-27 09:53:00 5525 1

原创 Python3 TypeError: slice indices must be integers or None or have an __index__ method

在使用Python3进行矩阵操作时,当内部含有除法时结果的是浮点型,与原数据类型不一致,会产生错误:TypeError: slice indices must be integers or None or have an __index__ methodcrow,ccol = rows/2 , cols/2mask = np.zeros((rows,cols,2),np.uint8)解...

2019-02-27 09:51:44 746

原创 python视频帧转BASE64编码

直接上代码: #coding: utf-8#python3import cv2import base64from PIL import Imagefrom io import BytesIOdef frame2base64(frame): img = Image.fromarray(frame) #将每一帧转为Image output_buffer = Byte...

2019-02-27 09:49:29 2497

原创 Linux删除自带mysql 5.1

 whereis mysqlrpm -qa | grep -i mysqlservice mysql stopfind / -name mysqlrm -rf /usr/lib64/mysqlrm -rf /usr/share/mysql/ rpm -qa | grep -i mysqlrpm -ev mysql-libs-5.1.73-5.el6_6.x86_64 -...

2019-02-27 09:47:14 890

原创 centos7下opencv3安装

配置好epel源yum -y install epel-releaseyum install -y gcc gcc-c++  yum install -y cmake  yum install -y python-devel numpy CentOS 6&7安装ffmpeg安装opencvcd /usr/localwget https://github.co...

2018-11-04 14:48:37 2538

原创 CentOS 6&7安装ffmpeg

CentOS 6和7安装方法:安装前首先需要安装epel扩展源yum -y install epel-releaseCentOS 6安装yum源之后直接安装即可:su -c 'yum localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch...

2018-11-04 11:48:35 447

原创 Docker——给tomcat容器部署项目并且做成新的镜像(容器内外拷贝)(六)

注:命令中ID有时长有时短,在此做个解释:大多情况无需拷贝完整的id,通常来讲最开始的三至四个字母即可区分1、给tomcat容器部署项目即拷贝文件到tomcat容器中(向容器内拷贝)方法一、挂载宿主机目录到容器(弊端:必须在容器启动时执行挂载)命令:docker run -d -itp 80:8080 -v /zpfile:/mnt c0c /bin/bash (-v即挂载参数, -v

2017-07-04 00:30:34 3864

原创 Docker——第一个docker服务tomcat(五)

一、启动docker服务命令:service docker start二、拉取远程tomcat镜像命令:docker pull hub.c.163.com/public/tomcat:7.0.28[root@localhost ~]# docker pull hub.c.163.com/public/tomcat:7.0.287.0.28: Pulling from hub.c.

2017-07-03 22:49:18 787

原创 Docker——常用命令(四)

本文只列举了几个常用的命令,其他命令可在网上自行查阅一查看当前版本二查看当前所有docker镜像三拉取远程docker镜像四Docker的帮助命令五运行docker镜像六查看正在运行的容器七进入容器内部八退出容器九停止正在运行的容器

2017-07-02 17:21:13 544

原创 Docker——版本升级(三)

一、查看当前版本命令:docker -v二、如果docker服务正在运行则先停服务命令:service docker stop三、升级版本方法1、如果yum源已经是最新命令:yum -y update docker-io方法2、使用二进制的方法升级命令:wget https://get.docker.com/builds/Linux/x86_64/d

2017-07-02 16:23:42 789

原创 Docker——安装部署(二)

一、cha系统是否已经安装docker[root@localhost ~]# docker-bash: docker: command not found[root@localhost ~]# docker version-bash: docker: command not found[root@localhost ~]# 二、配置Fedora EPEL 源四、安装do

2017-07-02 14:50:23 641

原创 Docker——YUM升级centOS内核(一)

安装docker要满足一定的条件,对于cents系统,要求必须是64位,并且内核版本是3.10以上。 如果你的centos操作系统内核低于3.10,需要升级到这个版本以上,才能安装docker。第一步,先看目前的内核版本uname -r 在我的系统上输出:2.6.32-431.el6.centos.plus.x86_64第二步,导入public keyrpm --i

2017-06-10 11:12:20 646

转载 Linux sshd服务自动启动

Linux中设置服务自启动的三种方式ln -s /etc/init.d/sshd /etc/rc.d/rc3.d/S100ssh有时候我们需要Linux系统在开机的时候自动加载某些脚本或系统服务主要用三种方式进行这一操作:ln -s                       在/etc/rc.d/rc*.d目录中建立/etc/init.d/服务的软链接(*代表

2017-06-05 08:04:38 22720

原创 Linux启动模式修改为命令行模式

Linux启动模式修改为命令行模式vim /etc/inittab修改红框内的的数字5改为3保存并重启系统,即5为默认图形界面启动,3为默认多用户命令行界面启动

2017-06-03 22:52:52 2738

原创 解决:CentOS下MySQL执行select ... into outfile ...: Can't create/write to file '...' (Errcode: 13)

原因:selinux阻止写入操作解决:vi /etc/selinux/config# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing - SELinux security policy is enfo

2017-05-29 14:39:35 1314

原创 正则匹配两字符串之间内容

例子:hello DROP TABLE IF EXISTS `ad_class`;word!正则表达式:DROP([\s\S]*?);匹配结果:DROP TABLE IF EXISTS `ad_class`;

2017-05-29 10:33:35 5674

转载 Windows下Nginx的启动、停止等命令

Windows下Nginx的启动、停止等命令在Windows下使用Nginx,我们需要掌握一些基本的操作命令,比如:启动、停止Nginx服务,重新载入Nginx等,下面我就进行一些简单的介绍。1、启动:C:\server\nginx-1.0.2>start nginx或C:\server\nginx-1.0.2>nginx.exe注:建议使用第一种,第二

2017-02-17 10:21:12 255

转载 jQuery 效果函数

jQuery 效果函数  方法描述animate()对被选元素应用“自定义”的动画clearQueue()对被选元素移除所有排队的函数(仍未运行的)delay()对被选元素的所有排队函数(仍未运行)设置延迟dequeue()运行被选元素的下一个排队函数

2017-01-04 12:35:42 238

转载 jQuery 事件方法

jQuery 事件方法 方法描述bind()向匹配元素附加一个或更多事件处理器blur()触发、或将函数绑定到指定元素的 blur 事件change()触发、或将函数绑定到指定元素的 change 事件click()触发、或将函数绑定到指定元素的 click 事件

2017-01-04 12:35:17 305

转载 oracle正确卸载步骤

oracle正确卸载步骤 oracle 11g如何完全卸载方法/步骤1:停用oracle服务:进入计算机管理,在服务中,找到oracle开头的所有服务,右击选择停止方法/步骤2:在开始菜单中,找到oracle->Universal Installer,运行Oracle Universal Installer,单击卸载产品在

2017-01-04 12:34:26 35482

原创 开启mysql慢查询

一、Windows下开启MySQL慢查询修改MySQL安装目录下my.ini文件,找到[mysqld],并在其下面加上log-slow-queries = E:\MySQL\mysqlslowquery.loglong_query_time = 2注:log-slow-queries:日志要保存的位置;long_query_time:大于多长时间会记录到日志中(单位s)二、L

2016-11-15 18:48:17 275

原创 360doc解除网页防复制

1、按F12打开开发者模式2、刷新页面3、在console中输入document.oncontextmenu=document.onselectstart=document.body.onselectstart=document.oncopy=document.body.oncopy=""4、回车键5、OK可以复制了

2016-11-09 12:24:42 945

原创 java.net.UnknownHostException: xxx: 未知的名称或服务

报错代码:[ERROR]-[Thread: localhost-startStop-1]-[net.sf.ehcache.Cache.()]: Unable to set localhost. This prevents creation of a GUID. Cause was: xxx: 未知的名称或服务java.net.UnknownHostException: xxx: 未知的名称或

2016-10-25 19:32:45 13852

原创 vim跳转到指定行

方法一:输入:100G则跳转到100行方法二:输入::100则跳转到100行

2016-10-19 02:20:44 1171

空空如也

空空如也

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

TA关注的人

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