随笔分类 -  Linux遇到的问题

failed command: READ FPDMA QUEUED
摘要:问题: failed command: READ FPDMA QUEUEDfailed command: WRITE FPDMA QUEUED 1、关闭NCQvim /boot/efi/EFI/centos/grub.cfg添加libata.force=noncq到启动项中;linuxefi /vm 阅读全文
posted @ 2020-11-26 15:01 裸睡的猪
Linux线程编译是出现的“undefined reference to 'CPU_ZERO”
摘要:1、错误日志 2、解决办法 先给出解答方案: #define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <pthread.h> #include <unistd.h> #include <stdlib.h> 注意在makef 阅读全文
posted @ 2020-10-21 17:18 裸睡的猪
使用yum提示Error: rpmdb open failed
摘要:[root@www ~]# cd /var/lib/rpm # rpmdb所在目录 [root@www rpm]# rm -f __db.* # 清除原rpmdb文件 [root@www rpm]# rpm --rebuilddb # 重建rpm数据库 [root@www rpm]# yum cle 阅读全文
posted @ 2020-10-21 17:12 裸睡的猪
page dumped because: nonzero _count
摘要:问题描述: [ 771.379814] BUG: Bad page state in process pesdk pfn:5aa5c [ 771.452077] page:ffffea00016a9700 count:-1 mapcount:0 mapping: (null) index:0x0 [ 阅读全文
posted @ 2020-08-24 14:49 裸睡的猪
perf: interrupt took too long (3136 > 3126), lowering kernel.perf_event_max_sample_rate to 63000
摘要:单板启动后,会经常看到提示“perf interrupt took too long (n > x)”,这样的打印信息。 相关配置参数有: /proc/sys/kernel/下 perf_cpu_time_max_percent: perf分析工具最大能够占用CPU性能的百分比0:不限制1~100: 阅读全文
posted @ 2020-08-19 14:03 裸睡的猪
insmod模块时候出现loading out-of-tree module taints kernel
摘要:对后续的内核insmod并无影响,可以不用管。 编译ko的linux系统内核与insmod模块的linux系统的内核树不一样导致的。 通过uname -r命令发现,2个系统的发行版号不一样。最好是找2个内核版本一样的进行编译,下述方案可能会不成功。 在书写makefile的时候,改成(insmod模 阅读全文
posted @ 2020-07-22 10:27 裸睡的猪
windows无法telnet到centos7服务器
摘要:1、在安装Telnet前先检查系统是否安装了telnet-server和xinetd rpm -qa telnet-server rpm -qa xinetd 2、如果没有安装,则开始安装,安装之前先查找Telnet的安装包 yum list | grep telnet-server yum lis 阅读全文
posted @ 2020-07-20 17:26 裸睡的猪
make: *** /lib/modules/3.10.0-327.el7.x86_64/build: 没有那个文件或目录。 停止。
摘要:1、make: *** /lib/modules/3.10.0-693.el7.x86_64/build: No such file or directory. Stop. 解决办法: yum install kernel-devel-$(uname -r) 2、bash:gcc:command n 阅读全文
posted @ 2020-07-16 15:41 裸睡的猪
fuser:command not found
摘要:yum 安装fuser命令 yum install -y psmisc 阅读全文
posted @ 2019-04-29 16:20 裸睡的猪
pstree:command not found
摘要:centos7默认并没有安装pstree,所以会有pstree:command not found yum -y install psmisc 阅读全文
posted @ 2019-04-28 10:57 裸睡的猪
bash: mail: command not found的解决方法
摘要:yum -y install mailx 阅读全文
posted @ 2019-04-26 14:13 裸睡的猪
-bash: netstat: command not found
摘要:yum install net-tools 阅读全文
posted @ 2019-04-25 16:58 裸睡的猪
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock32 error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
摘要:今天安装完带图形界面的CentOS 7后,在Terminal中运行yum安装命令时报了以下错误: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Could not retrieve mirrorlist 阅读全文
posted @ 2019-04-22 14:54 裸睡的猪