溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

linux系統(tǒng)常見(jiàn)的錯(cuò)誤有哪些

發(fā)布時(shí)間:2021-09-26 10:12:36 來(lái)源:億速云 閱讀:185 作者:iii 欄目:系統(tǒng)運(yùn)維

本篇內(nèi)容主要講解“l(fā)inux系統(tǒng)常見(jiàn)的錯(cuò)誤有哪些”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“l(fā)inux系統(tǒng)常見(jiàn)的錯(cuò)誤有哪些”吧!

一:卸載的時(shí)候出現(xiàn)的錯(cuò)誤:
umount /dev/nb1
device is busy
解決:找到是什么進(jìn)程使得他busy,用 lsof /dev/nb1 . kill掉那個(gè)進(jìn)程,然后重新umount即可。

二:GD2編譯的時(shí)候出現(xiàn)的錯(cuò)誤:
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的時(shí)候出現(xiàn)的錯(cuò)誤:
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等共享庫(kù),如: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同步常見(jiàn)問(wèn)題:
錯(cuò)誤一:
@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)
解決:這是因?yàn)槊艽a設(shè)置錯(cuò)了,無(wú)法登入成功,檢查一下rsync.pwd,看客服是否匹配。還有服務(wù)器端沒(méi)啟動(dòng)rsync 服務(wù)也會(huì)出現(xiàn)這種情況。
錯(cuò)誤二:
password file must not be other-accessible
continuing without password file
Password:
解決:這是因?yàn)閞syncd.pwd rsyncd.sec的權(quán)限不對(duì),應(yīng)該設(shè)置為600。如:chmod 600 rsyncd.pwd
錯(cuò)誤三:
@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)
解決:這是因?yàn)槟阍?rsync.conf 中設(shè)置的 path 路徑不存在,要新建目錄才能開(kāi)啟同步。
錯(cuò)誤四:
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]
解決:對(duì)方?jīng)]開(kāi)機(jī)、防火墻阻擋、通過(guò)的網(wǎng)絡(luò)上有防火墻阻擋,都有可能。關(guān)閉防火墻,其實(shí)就是把tcp udp 的873端口打開(kāi)。

五:軟件安裝的時(shí)候常出現(xiàn)的問(wèn)題:
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
然后運(yùn)行如下命令:
#tar -zxvf beecrypt-4.1.2.tar.gz
#./configure
#make
#make install

到此,相信大家對(duì)“l(fā)inux系統(tǒng)常見(jiàn)的錯(cuò)誤有哪些”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是億速云網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI