运维工作中常见错误总结分享

简介:

作为一个小运维,要时刻学习、总结。最近收集了一下常见的错误,和大家分享一下。希望对大家有用

一、卸载的时候出现的错误

umount /dev/nb1

device is busy

解决:找到是什么进程使得他busy,用 lsof /dev/nb1 . kill掉那个进程,然后重新umount即可。

二、GD2编译的时候出现的错误

The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’

Libtool library used but `LIBTOOL’ is undefined

[Makefile.in] Error 1

解决:缺少编译安装的软件包。如:yum install automake,libjpeg-devel,libpng-devel,freetype-devel,libtiff-devel,autoconf,gettext-devel,libtool

三、安装 snmp的时候出现的错误

1>/bin/sed: can’t read /usr/lib/libbeecrypt.la: No such file or directory

libtool: link: `/usr/lib/libbeecrypt.la’ is not a valid libtool archive

make[1]: *** [libnetsnmpmibs.la] Error 1

解决:以为缺少libbeecrypt.la ,libbeecrypt.so等共享库,如:yum install libbeecrypt.la

2>/usr/bin/ld: cannot find -lelf

解决:ln -s /usr/lib/libelf.so.1 /usr/lib/libelf.so

3>/usr/bin/ld:can’t not find -lselinux

解决:缺少libselinux 和 libselinux-devel包,如:yum install libselinux

四、Rsync同步常见问题

错误一:

@ERROR: auth failed on module xxxxx

rsync: connection unexpectedly closed (90 bytes read so far)

rsync error: error in rsync protocol data stream (code 12) at io.c(150)

解决:这是因为密码设置错了,无法登入成功,检查一下rsync.pwd,看客服是否匹配。还有服务器端没启动rsync 服务也会出现这种情况。

错误二:

password file must not be other-accessible

continuing without password file

Password:

解决:这是因为rsyncd.pwd rsyncd.sec的权限不对,应该设置为600。如:chmod 600 rsyncd.pwd

错误三:

@ERROR: chroot failed

rsync: connection unexpectedly closed (75 bytes read so far)

rsync error: error in rsync protocol data stream (code 12) at io.c(150)

解决:这是因为你在 rsync.conf 中设置的 path 路径不存在,要新建目录才能开启同步。

错误四:

rsync: failed to connect to 218.107.243.2: No route to host (113)

rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]

解决:对方没开机、防火墙阻挡、通过的网络上有防火墙阻挡,都有可能。关闭防火墙,其实就是把tcp udp 的873端口打开。

五、在启动DNS时出现Generating /etc/rndc.key:卡在这里了

[root@solin]# /etc/init.d/named restart

Stopping named:                                            [  OK  ]

Generating /etc/rndc.key:

^C

[root@solin]#

解决方法:

[root@solin]# rndc-confgen -r /dev/urandom -a

wrote key file "/etc/rndc.key"

[root@solin]# /etc/init.d/named restart

Stopping named:                                            [  OK  ]

Starting named:                                            [  OK  ]

六、软件安装的时候常出现的问题

configure: error: …No recognized SSL/TLS toolkit detected

# yum -y install openssl-devel

configure: error: no acceptable cc found in $PATH

yum -y install gcc-c++

configure: error: cannot find output from lex; giving up flex is not installed, install flex.

yum -y install flex

configure: error: xml2-config not found. Please check your libxml2 installation.

yum -y install libxml2-devel

configure: error: Cannot find OpenSSL’s

yum -y install openssl-devel

configure: error: Please reinstall the BZip2 distribution

yum -y install bzip2-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

yum -y install curl-devel

configure: error: libjpeg.(a|so) not found.

yum -y install libjpeg-devel

configure: error: libpng.(a|so) not found.

yum -y install libpng-devel

configure: error: freetype2 not found!

yum -y install freetype-devel

configure: error: Unable to locate gmp.h

yum -y install gmp-devel

configure: error: Cannot find pspell

yum -y install aspell-devel

libtool: link: cannot find the library `/usr/lib/libbeecrypt.la’ (librpmio.la: /usr/lib/libbeecrypt.la)

解决:缺少beecrypt包,如:

http://sourceforge.net/projects/beecrypt下载beecrypt-4.1.2.tar.gz

然后运行如下命令:

#tar -zxvf beecrypt-4.1.2.tar.gz 
#./configure 
#make 
#make install

 

最后:希望大家可以分享一下自己遇到的问题,大家共同解决,以便完善博文,更好的服务大家










本文转自 运维小当家 51CTO博客,原文链接:http://blog.51cto.com/solin/1855810,如需转载请自行联系原作者
目录
相关文章
|
运维
分享一些个人总结的阿里云产品使用和运维的经验
个人最近三年阿里云使用和运维经验的总结分享。年底我终于把它写成了一个文档,希望分享给大家。我做的都是基础的运维,没什么高深的内容。可能还会有错误,请大家批评指正!
423 0
|
SQL 分布式计算 资源调度
大数据平台运维总结
还不会吗?CDH大数据平台运维知识点。
1135 0
大数据平台运维总结
|
域名解析 运维 监控
企业运维训练营之云上网络原理与实践 — 第六讲 云服务与总结
课程目标 • 了解Privatelink产品架构与最佳实践 • 通过Privatelink理解云上网络问题排查方法 • 理解问题排查方法论 • 回顾本期训练营内容
企业运维训练营之云上网络原理与实践 — 第六讲 云服务与总结
|
运维 Java 应用服务中间件
Tomcat常用运维配置总结
Tomcat常用运维配置总结
Tomcat常用运维配置总结
|
存储 运维 负载均衡
长达两万字的Elasticsearch分布式集群运维方方面面总结(六)
文章目录 Elasticsearch分布式大数据搜索集群 1.elasticsearch集群介绍 2.elasticsearch集群部署 2.1.192.168.81.210主节点配置 2.1.1.安装elasticsearch 2.1.2.配置node-1主节点 2.1.3.访问node-1节点 2.2.192.168.81.220从节点配置 2.2.1.安装elasticsearch 2.2.2.配置node-2节点 2.2.3.访问node-2节点 2.3.查看集群状态 3.elasticsearch集群状态码 3.1.green状态 3.2.yellow状态 3.3.red状态
217 0
长达两万字的Elasticsearch分布式集群运维方方面面总结(六)
|
存储 机器学习/深度学习 数据采集
【最佳实践】实践总结 阿里云Elasticsearch 智能化运维思路
Elasticsearch 作为一个开箱即用的搜索引擎,其丰富的功能和极低的使用门槛吸引着越来越多的公司和用户选择它作为搜索和数据分析的工具
2094 0
【最佳实践】实践总结 阿里云Elasticsearch 智能化运维思路
|
监控 安全 Linux
日常运维过程中总结的安全基线
Redhat Linux操作系统口令复杂度: 采用静态口令进行认证的,口令长度至少6位,并包括数字、小写字母、大写字母和特殊符号四类中至少三类。且5次以内不得设置相同的口令。参考配置: 在/etc/pam.
2145 0

热门文章

最新文章