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

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

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

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:卡在这里了

[[email protected]]# /etc/init.d/named restart

Stopping named:                                            [  OK  ]

Generating /etc/rndc.key:

^C

[[email protected]]#

解决方法:

[[email protected]]# rndc-confgen -r /dev/urandom -a

wrote key file "/etc/rndc.key"

[[email protected]]# /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

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

时间: 2024-08-04 03:32:36

运维工作中常见错误总结分享的相关文章

日常运维工作中如何确保你的linux操作系统安全

在现在这个世道中,Linux操作系统的安全是十分重要的.但是,你得知道怎么干.一个简单反恶意程序软件是远远不够的,你需要采取其它措施来协同工作.下面是日常运维工作中常用的几种Linux安全的策略方法. 1. 使用SELinux SELinux是用来对Linux进行安全加固的,有了它,用户和管理员们就可以对访问控制进行更多控制.SELinux为访问控制添加了更细的颗粒度控制.与仅可以指定谁可以读.写或执行一个文件的权限不同的是,SELinux可以让你指定谁可以删除链接.只能追加.移动一个文件之类的

运维工作中经常用到的一些知识总结(一)

在日常运维工作中,会有一些知识使用频率较高,以下为个人在工作中常用的一些操作,没有做详细的分类,排版比较凌乱.有需要的同学们可以参考,希望能有所帮助. 1.查看当前系统所以变量 sysctl -a 2.修改Centos7 网卡为eth install centos 7 按 tab键,增加: net.ifnames=0 biosdevname=0 3.yum删除软件 yum erase $(rpm -qa|grep java) yum erase $(rpm -qa|grep zabbix) 4.

Linux 运维工作中的经典应用ansible(批量管理)

一 Ansible自动化运维工具 Python 在运维工作中的经典应用 ansible(批量管理操作) 1.安装ansible(需要bese epel 2种源) wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum

运维工作中的bootstraping之PXE自动安装操作系统

运维工作纵向来看主要分为三个方向: 1.BootStraping:主要做的是操作系统的安装与配置,包括Bare Metal(pxe,cobbler)和Virtual Machine(image files). 2.Configuration:主要使用运维工具如puppet(rubby研发).saltstack(python研发).ansible.chef.cfengine等自动化运维工具做应用程序做批量部署与配置. 3.Command and Conrol:主要使用自动化运维工具发送命令或指令实

关于运维工作中的问题和自学方面的浅谈

我是一个运维工程师,因为主要侧重系统监控方面,所以相对来讲知道的东西面上比较广,但是实际根据业务的需要,或者某类产品的特定要求,又必须深入的了解内部原理. 所以我们经常要快速的掌握大量的知识,信息,已经相关的标准或者协议. 那么我们要有各自的自学方法. 工作前几年的时候,我主要是通过去图书馆,查阅相关资料,或者做知识储备,那时还是从事的web站点管理的工作,通过查阅大量的书籍后,我迷茫了,没有了方向.但是这种泡图书馆的方法,使我确实获得了很多知识. 后来我转到运维这块,当时的维护工作,主要是针对

运维工作中的一些标准流程

一.服务器上架标准 因为我们的服务器有专门的人员在IDC进行上架,下面几项我们按照标准来进行提供. 要指定配置的IP,子网掩码,网关: 安装系统的版本(CentOS 7.6 mini),比如分区如下: 目录 大小 boot 200MB swap 8GB / 剩余大小 二.系统初始化标准 系统的初始化标准流程使用一键初始化脚本,主要包含一下几个参数的设定: 1.配置服务器时区 rm -f /etc/localtime cp /usr/share/zoneinfo/Asia/Shanghai /et

运维工作中经常用到的一些知识总结(二)

接上篇:http://blog.51cto.com/bobo365/2125121 31.screen: screen -S xxx screen -r xxx screen -D -r <session-id> -D -r 先踢掉前一用户,再登陆. screen -X -S 31978 quit 32.Markdown基本语法 一级标题 二级标题 三级标题 四级标题 五级标题 六级标题 无序列表1 列表1 列表1.1 列表1.2 列表2 列表3 无序列表2 1 1 1 2 3 2 3 2 3

运维工作中经常用到的一些知识总结(四)

接上篇:http://blog.51cto.com/bobo365/2125159 54.rabbitMQ http://blog.csdn.net/lishaojun0115/article/details/53152255 用户管理 用户管理包括增加用户,删除用户,查看用户列表,修改用户密码. (1) 新增一个用户 rabbitmqctl add_user Username Password (2) 删除一个用户 rabbitmqctl delete_user Username (3) 修改

IT运维服务中的一些工作思路探索(二)

1.  重承诺.讲计划 (1)重承诺:对于用户的任何承诺,包括:服务的目标与级别要求.提供的资源或方案.应给予的回复等,运维人员都应在约定的时间内.按约定的要求予以提供或实现,严格履行承诺.确因特殊原因导致无法履行时,应提前和用户进行说明和解释,获得对方的谅解:并提出补救措施,以尽量接近当初的承诺. (2)讲计划:工作计划是整个运维工作的龙头,工作计划依据公司要求及对用户的承诺而制定,各项运维服务将围绕计划展开.决策管理系统的运维工作以主动服务为主,所有的主动服务类工作都可以提前策划.中烟信息的