cloudSky's 小站

CentOS8编译安装MySQL 5.7.30

环境 OS: CentOS 8.2 MySQL: 5.7.30 报错信息 1. 编译报错 CMake Error at plugin/group_replication/libmysqlgcs/rpcgen.cmake:100 (MESSAGE): Could not find rpcgen Call Stack (most recent call first): plugin/group_replication/libmysqlgcs/CMakeLists.txt:38 (INCLUDE) 解决方法 yum --enablerepo=PowerTools install rpcgen 2. systemctl start mysqld.service报错无法启动问题 报错信息

libvirt 4.5 virModuleLoadFile:53

CentOS 7.5.1804的libvirt从3.9升级至4.5时,无法启动,报错如下: error : virModuleLoadFile:53 : internal error: Failed to load module ‘/usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so’: /usr/lib64/libvirt/storage-backend/libvirt_storage_backend_rbd.so: undefined symbol: rbd_diff_iterate2 详细报错如下: [root@localhost ~]# libvirtd -v 2019-01-15 08:56:53.433+0000: 34181: info :

Python数据库连接池实例--PooledDB

不用连接池的MySQL连接方法 import MySQLdb conn= MySQLdb.connect(host='127.0.0.1',user='root',passwd='password',db='DB_test',port=3306) cur=conn.cursor() SQL="select * from table_test" cur.execute(SQL) r=cur.fetchall() cur.close() conn.close() 用连接池后的连接方法 import MySQLdb from DBUtils.PooledDB import PooledDB pool = PooledDB(MySQLdb,5,host='127.0.0.1',user='root',passwd='password',db='DB_test',port=3306) #5为连接池里的最少连接数 conn = pool.connection() #以后每次需要

使用curl请求https时指定IP

一般使用curl请求自定义IP地址并且指定HOST的话可以这样。 curl -H 'Host: ops.m114.org' http://127.0.0.1 但是如果你需要请求的地址是HTTPS就不行了 $ curl -H 'Host: ops.m114.org' https://127.0.0.1/ curl: (51) Unable to communicate

Golang之command line flag笔记

示例代码,仅供参考 package main import ( "fmt" "flag" ) func main() { // golang的flag包的一些基本使用方法 // 待使用的变量 var id int var name string var male bool // 是否已经解析 fmt.Println("parsed? = ", flag.Parsed()) // 设

analysing java core dump

In this post, I will show you how you can debug a Java core file to see what caused your JVM to crash. I will be using a core file I generated in my previous post: Generating a Java Core Dump. There are different ways you can diagnose a JVM crash, listed below: The hs_err_pid log file When a fatal error occurs in the JVM, it produces an error log