背景 很多运维会熟练的使用shell来做一些自动化的事情,python有版本差异,很多情况下还是shell感觉方便些。 但是shell本身输出的日志并不是十分的直观,具体的时间戳等等,如果封装下原本的echo指令,会方便许多具体实施废话不说上代码代码路径:/usr/local/test/echo_models#日志格式化输出,主要提供ERROR和INFO等级的
Read More
moregeek program
BRCM5.02编译八: ERROR: you are missing a basic functioning perl installation-多极客编程
现象:Checking libtoolize version:2.4.2Checking tar version:1.26ERROR: you are missing a basic functioning perl installationplease be sure that you have perl installed includingthe CPAN and ExtUtils::Mak
Read More
Read More
ERROR 2002 (HY000): Cant connect to local MySQL server through socket的解决方法-多极客编程
连接MySQL提示ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)的解决方法 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
Read More
Read More
PSU的GI升级,ERROR: This patch is not applicable to GI home.-多极客编程
对 grid 和 oracle 的 $ORACLE_HOME/.patch_storage 目录进行赋权,否则可能会报错:ERROR: This patch is not applicable to GI home.解决:分别对 oracle 和 grid 用户的目录进行赋权:chmod -R 777 $ORACLE_HOME/.patch_storagell -d
Read More
Read More
Error: Command failed: C:\windows\system32\cmd.exe /s /c-多极客编程
错误记录之:Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared错误关键词:cwebp-bin, autoreconf -ivf, pngquant, libpng-dev完整的错误信息有3条:Error: Command failed: C:\windows\system32\
Read More
Read More
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot ...-多极客编程
使用Mysql安全模式修改密码#安全模式启动
$./mysqld_safe --skip-grant-tables或者在my.ini中[mysqld] 添加:skip-grant-tables#登录mysql
$ ./mysql -u root初始化或重置root密码,mysql8.0设置的密码不一样,命令如下ALTER USER 'root'@'localhost' IDENTIFIED WIT
Read More
Read More
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot ...-多极客编程
使用Mysql安全模式修改密码#安全模式启动
$./mysqld_safe --skip-grant-tables或者在my.ini中[mysqld] 添加:skip-grant-tables#登录mysql
$ ./mysql -u root初始化或重置root密码,mysql8.0设置的密码不一样,命令如下ALTER USER 'root'@'localhost' IDENTIFIED WIT
Read More
Read More
Error: Command failed: C:\windows\system32\cmd.exe /s /c-多极客编程
错误记录之:Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared错误关键词:cwebp-bin, autoreconf -ivf, pngquant, libpng-dev完整的错误信息有3条:Error: Command failed: C:\windows\system32\
Read More
Read More
Error: Command failed: C:\windows\system32\cmd.exe /s /c-多极客编程
错误记录之:Error: Command failed: C:\windows\system32\cmd.exe /s /c "./configure --disable-shared错误关键词:cwebp-bin, autoreconf -ivf, pngquant, libpng-dev完整的错误信息有3条:Error: Command failed: C:\windows\system32\
Read More
Read More
log4j的8个日志级别(OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、 ALL)-多极客编程
og4j定义了8个级别的log(除去OFF和ALL,可以说分为6个级别),优先级从高到低依次为:OFF、FATAL、ERROR、WARN、INFO、DEBUG、TRACE、 ALL。ALL 最低等级的,用于打开所有日志记录。TRACE designates finer-grained informational events than the DEBUG.Since:1.2.12,很低的日志级别,
Read More
Read More
Go 自定义error错误-多极客编程
Go的error比较灵活.但是自身对error处理的机制有不太好用,我们可以自定义错误输出: 只要所有实现了 Error() 方法的对象都可以, 这里给个比较简单的demo,后续整理一个error的优化封装:package main
import ("fmt")
type NameEmtpyError struct {
name string}//NameEmtpyError实现了
Read More
Read More
Go 自定义error错误-多极客编程
Go的error比较灵活.但是自身对error处理的机制有不太好用,我们可以自定义错误输出: 只要所有实现了 Error() 方法的对象都可以, 这里给个比较简单的demo,后续整理一个error的优化封装:package main
import ("fmt")
type NameEmtpyError struct {
name string}//NameEmtpyError实现了
Read More
Read More
2019.11.17-Week-JavaScript中Error-多极客编程
1. Error概念Error是JavaScript中的一个内置对象,通过Error的构造器可以创建一个错误对象。当运行时错误产生时,Error的实例对象会被抛出。Error对象也可用于用户自定义的异常的基础对象, 错误发生时,自动创建的封装错误信息的对象。 只要程序发生错误,就会中断退出。2. js中常见错误类型SyntaxError 语法错误,即代码写错ReferenceError 无效引用,
Read More
Read More
安装Rancher cert-manager报错kube-system forbidden-多极客编程
1:Rancher生成证书服务报错
默认情况下,Rancher会生成CA并用于cert-manager颁发证书以访问Rancher服务器界面。因为rancher是默认选项ingress.tls.source,我们ingress.tls.source在运行helm install命令时没有指定。
helm install stable/cert-manager \
--name cert-man
Read More
Read More
说MGR - MGR的日志-多极客编程
场景1,MGR的启动日志mysql01.com操作1.[root@mysql.sock][(none)]> CHANGE MASTER TO MASTER_USER='rpl_user', MASTER_PASSWORD='password' FOR CHANNEL 'group_replication_recovery';Query OK, 0 rows affected, 2 warni
Read More
Read More
出现java.lang.UnsupportedClassVersionError 错误的原因-多极客编程
出现java.lang.UnsupportedClassVersionError 错误的原因,是因为我们使用高版本的JDK编译的Java class文件试图在较低版本的JVM上运行,所报的错误。因为,高版本的JDK生成的class文件使用的格式,可能与低版本的JDK的.class文件格式不同。这样,低版本的JVM无法解释执行这个.class文件,会抛出java.lang.UnsupportedCl
Read More
Read More
Golang 多goroutine异步通知error的一种方法-多极客编程
深入理解ThreadLocal用途我们一般用ThreadLocal来提供线程局部变量。线程局部变量会在每个Thread内拥有一个副本,Thread只能访问自己的那个副本。文字解释总是晦涩的,我们来看个例子。
public class Test {
private static ThreadLocal<String> threadLocal = new ThreadLocal&
Read More
Read More
docker error creating overlay mount-多极客编程
最近在centos7.4使用docker运行镜像,出现下面的错误:
/var/lib/docker/overlay2/65f3c109fb903539820f84856d2725af784f2f03f95b1f0214e34184e4d61ff7-init/merged: invalid argument.
以下为Jenkins打包docker镜像出现的报错
error creating over
Read More
Read More
电脑开机出现error:unknown filesystem的解决方法-多极客编程
2016-10-20 12:25:47我电脑装的是双系统(redhat7+win7),有一天把在win7上压缩了一个分区,新加了一个分区,之后开机后遇到这个错误:error:unknown filesystem
首先,说一下出现这种状况的原因:我在windows下用分区工具重新进行了分区(虽然没有动Linux所在分区)
解决方法:
在命令行进行如下操作:
normal之后回车,就会进入系统。
Read More
Read More
MySQL报错解决:ERROR! The server quit without updating-多极客编程
报错:
[root@test leo]# lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://ln
Read More
Read More