linux 守护进程 失败,linux系统常见错误记录与解决(一)

linux系统常见错误记录与解决(一)

发布时间:2009-10-28 15:09:54来源:红联作者:szlfeng

常见的系统错误和安装软件常出错的地方一般都有了。大家可以参考参考。

linux系统维护常见错误记录

点评:一:卸载的时候出现的错误: 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’

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

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端口打开。

五:软件安装的时候常出现的问题:

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

内容来自: 脚本之家 www.jb51.net

问题:在手动编译安装mysql的过程中.发生错误如下:

configure: error: No curses/termcap library found

在网上找了很多的解决办法,发现以下这个正解,放上以备查用

解决方法:安装 ncurses-devel-5.5-24.20060715.i386.rpm

OK!

注意版本问题,也许我们两个需要安装的版本不一样.

mysql版本:5.1.30

已经不记得这次是第几次安装mysql了,遇到这个问题倒是第一次。

之前在tar,./configure,make,make install 经典四步时,从来没有想过其中的过程,只觉得像例行公事一样,做就是了。

不幸的是,这次在./configure后,make时出现以下错误:

make: *** No targets specified and no makefile found. stop.

本来这次还是想向别人请教的,后来转念一想,前段时间还告诉自己:遇到问题,首先想到自己解决。

于是,在网上找到相关资料,确认是./configure出了问题,于是回头查看,果然发现问题:

最后几行出了错。完整错误信息如下:

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for tgetent in -ltinfo... no

checking for termcap functions library... configure: error: No curses/termcap library found

原因:

缺少ncurses安装包

解决办法:

下载安装相应软件包

一、如果你的系统是RedHat系列:

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel

二、如果你的系统是Ubuntu或Debian:

apt-cache search ncurses

apt-get install libncurses5-dev

待安装completed!之后,再./configure,顺利通过,然后make && make install,成功安装,一切OK!~~~

1,mysql 的守护进程是mysqld

[root@localhost ~]# service mysqld start

启动 MySQL: [确定]

你可以看看你的服务是否已经添加到linux上

[root@localhost ~]# chkconfig --list mysqld

mysqld 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:启用 6:关闭

[root@localhost ~]#

如果没有,先添加,用chkconfig --add mysqld

然后在3 5级别上设定服务为on

chkconfig --level 35 mysqld on

然后service start一下;

一旦你启动了服务,可以这样检查服务器是否在运行

[root@localhost ~]# ps -el | grep mysqld

4 S 0 1796 1 0 85 0 - 1513 wait ? 00:00:00 mysqld_safe

4 S 27 1856 1796 0 78 0 - 34055 - ? 00:00:00 mysqld

[root@localhost ~]#

如果你看到有,就说明服务器安装起来了~~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要实现一个基于 Linux 内核的操作系统,首先需要明确实现的目标和基本步骤。以下是大致的操作步骤: 1. 内核选择:选择一个合适的 Linux 内核版本作为基础,可以是官方发布的稳定版本或者其他优秀的内核版本。 2. 编译内核:根据目标硬件平台,配置和编译内核源代码。这里需要根据具体硬件情况进行合适的内核配置,包括文件系统支持、驱动支持、网络支持等。编译过程可能需要花费一定时间。 3. 文件系统:选择合适的文件系统来支持操作系统的存储和管理。常见的文件系统有 ext2/ext3/ext4、XFS、Btrfs 等。根据需求选择合适的文件系统,并进行格式化和挂载。 4. 初始化管理:编写初始化脚本或程序,设置系统运行时环境。这些操作包括加载驱动程序、初始化设备、启动守护进程和服务等。 5. 用户空间工具和程序:编译和安装一些必要的用户空间工具和程序,如 bash、ls、cp 等。这些工具和程序能够提供一些必要的功能,让用户能够在终端中进行基本的操作。 6. 并发管理:实现进程管理和多任务机制,以支持多个进程同时运行。通过调度算法和管理数据结构,确保进程的安全和高效运行。 7. 设备驱动:根据硬件平台情况,选择或编写相应的设备驱动程序。这些驱动程序能够实现对硬件设备的访问和控制。 8. 网络支持:配置和启动网络服务,允许系统进行网络通信。这包括配置 IP 地址、设置 DNS、启动网络服务守护进程等。 9. 安全性和权限管理:实现用户权限管理和文件权限控制,确保系统的安全性和隐私性。 10. 调试和测试:对系统进行测试和调试,发现和修复可能的错误和问题。使用调试工具和技术,确保系统的稳定性和可靠性。 实现一个完整的 Linux 操作系统需要花费大量的时间和精力,并且需要有相应的编程和系统知识。同时,还需要不断学习和探索新的技术和方法来不断改进和完善系统。以上是一个大致的步骤,具体的实现过程可能因需求和环境而有所差异。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值