
linux错误
迷途小码
大数据及后台开发
展开
-
MegaCli修复Unconfigured(good), Spun Up外来磁盘
1.检查/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -NoLog|grep "Firmware state"Firmware state: Online, Spun UpFirmware state: Online, Spun UpFirmware state: Online, Spun UpFirmware state: Online, Spun UpFirmware state: Online, Spun UpFirmware state原创 2022-01-11 11:28:13 · 3874 阅读 · 0 评论 -
linux umount 时出现device is busy 的处理方法--fuser
* 查询:fuser -m /media/share* 显示: /media/share: 25023c就代表是 process 25023(pid) 有使用到此目录原创 2020-04-01 09:38:42 · 428 阅读 · 0 评论 -
shell value too great for base
示例:tar_file_month=`date +%m`rsync -auzq --exclude="2012_0[1-9]" --exclude="2012_1[0-2]" --exclude="2013_0[1-"$(($tar_file_month-1))"]"当月是8月,tar_file_month变成了08,下面执行 $(($tar_file_month-1))的时候,变成...原创 2020-03-25 10:42:41 · 368 阅读 · 0 评论 -
ping - connect: No buffer space available
修复这个问题需要增加ARP表空间。查看系统参数命令:sysctl -p永久修复方法:修改/etc/sysctl.conf增加如下行:net.ipv4.neigh.default.gc_thresh3 = 4096net.ipv4.neigh.default.gc_thresh2 = 2048net.ipv4.neigh.default.gc_thresh1 = 1...原创 2020-03-25 10:37:25 · 2033 阅读 · 0 评论 -
kipmi0 cpu 100%
解决办法:echo 100 > /sys/module/ipmi_si/parameters/kipmid_max_busy_us原创 2020-03-25 10:33:18 · 473 阅读 · 0 评论 -
Linker error: undefined reference to symbol 'pthread_rwlock_trywrlock@@GLIBC_2.2.5'
编译时使用 -pthread 而不是 libpthread。原创 2020-02-13 14:19:04 · 2808 阅读 · 0 评论 -
crond引发大量的sendmail进程
某服务器账号comm无法登录,说是资源消耗完毕。于是用另一个账号登陆到服务器,检查common账号到底启动了哪些dd引起资源耗尽:ps -u common发现有个 sendmail的启动特别多例如:common 31446 31377 0 20:20 ? /usr/sbin/sendmail -FCronDaemon -i -odi -oem -oi -t -转载 2016-10-24 14:58:25 · 2425 阅读 · 0 评论 -
CentOS6.5升级autoconf版本 Autoconf version 2.64 or higher is required
安装软件时提示说需要Autoconf 2.64或更高的版本[root@BobServerStation twemproxy]# autoconfconfigure.ac:8: error: Autoconf version 2.64 or higher is requiredconfigure.ac:8: the top levelautom4te: /usr/bi转载 2016-02-15 13:22:41 · 1881 阅读 · 0 评论 -
libc.so.6被删除后恢复
export LD_PRELOAD=/lib64/libc-2.5.so转载 2015-04-09 14:20:49 · 1061 阅读 · 0 评论 -
File "/usr/bin/yum", line 30
当[html] view plaincopy[root@localhost bin]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax [root@loc转载 2014-10-16 16:19:34 · 1352 阅读 · 0 评论 -
no version information available 动态链接库出错
今天安装一个软件,使用了libz.so.1这样一个动态链接库,编译时没有问题,但是运行时总是提示:libz.so.1:no version information available(...required),其中。。。为安装软件的名称。google一上午没有解决问题,最后实在没有办法,请教老大,两分钟搞定。 原来这是因为编译时使用的makefile中引用的动态链接库和实际运行时使用转载 2014-05-28 15:49:49 · 4698 阅读 · 0 评论 -
卸载rpm会遇到的error:specifies multiple packages
今天尝试在LINUX的REDHAT上搭建SVN(SUBVERSION),发现不知道为什么装了两个有冲突用不了,删的时候又会跳出specifiesmultiple packages这样的错误提示信息。然后在manrpm里面看了一下,发现有--allmatches这个指令(看好是两个横杠的网上的一个横杠是错的……)# man rpm# rpm -e --allmatches --转载 2014-03-25 10:41:13 · 995 阅读 · 0 评论 -
Umount a busy device
Question:I've got some samba drives that are being accessed by multiple users daily. I already have code to recognize shared drives (from a SQL table) and mount them in a special directory where转载 2014-05-15 13:29:45 · 1078 阅读 · 0 评论 -
error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解决
在linux中编译我的第一个CUDA程序helloworld时,出现了error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32错误。错误原因是我的LD_LIBRARY_PATH变量设置32位的路径,而不是64位的,修改为64位后,程序便正常运行了。简言之:在~/.bashr转载 2014-05-16 15:04:36 · 4259 阅读 · 0 评论 -
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vi /etc/httpd/conf/httpd.conf (在这里/web/apahce是我安装apache的目录,你默认安装的话应该是/usr/转载 2014-04-10 13:45:40 · 1024 阅读 · 0 评论 -
shell脚本报错:"[: =: unary operator expected"
shell脚本报错:"[: =: unary operator expected" 在匹配字符串相等时,我用了类似这样的语句:if [ $STATUS == "OK" ]; then echo "OK"fi 在运行时出现了 [: =: unary operator expected 的错误,就一直找不到原因,尝试了删除等号两侧的空格和括号里的空格都不管用转载 2014-01-06 17:13:07 · 986 阅读 · 0 评论 -
Linux Shell 进制错误 - value too great for base
Linux Shell 编程进行数学运算时,如果有字符 '0' 打头的数 Bash 会当做八进制解释,而这经常会引起问题。比如我们用"08"参加运算,本意是当做10进制的8,实际却会运行报错。通常情况下,直接写的数值不会以0打头,但如果是以前面命令的格式化输出为参数时,则往往不能控制。更危险的是,如果参与运算的以'0'打头数值达到了两位数或更多,且数值的每一位均在0-7之间,则 Shell 不转载 2013-11-28 13:56:49 · 4829 阅读 · 0 评论 -
new types may not define a return type - C++
Question:Answer:翻译 2014-06-25 17:17:11 · 1284 阅读 · 0 评论 -
SSH Warning: the RSA host key for differs from the key for the IP address
当ssh访问一台server时,如果出现“Warning: the RSA host key for differs from the key for the IP address”这样的信息, 表示在known_hosts里已经有一台server和你正要访问的server的IP冲突。 另外一条类似于这样的信息“Offending key for IP in /builds原创 2014-06-30 19:18:20 · 2323 阅读 · 0 评论 -
Shmget: Invalid argument. Why i get this error?
Question:Answer:转载 2014-04-03 15:41:03 · 1313 阅读 · 0 评论