kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

CentOS8 编译内核错误

https://koji.mbox.centos.org/koji/buildinfo?buildID=20542

https://zhuanlan.zhihu.com/p/535853460

1. fatal error: openssl/opensslv.h: No such file or directory

fatal error: openssl/bio.h: No such file or directory

1
A:缺少包,直接yum -y install openssl-devel即可(apt-get install libssl-dev)

2. 其余类似的报错,缺少文件可依次安装:

1
A:yum -y install flex, bison, openssl-devel, elfutils-libelf-devel

3.

1
2
3
4
5
6
7
8
make[1]: *** No rule to make target 'certs/rhel.pem', needed by 'certs/x509_certificate_list'. Stop.
make: *** [Makefile:1729: certs] Error 2

A: => 打开 .config,注释掉这两行

CONFIG_MODULE_SIG_KEY=""

CONFIG_SYSTEM_TRUSTED_KEYS=""

4.

1
2
3
4
5
6
7
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available

Failed to generate BTF for vmlinux
Try to disable CONFIG_DEBUG_INFO_BTF
make: *** [Makefile:1113: vmlinux] Error 1

A: => 修改CONFIG_DEBUG_INFO_BTF=n

system, centos

« CentOS8.5 安装 Centos8安装PHP8 »