SUN服务器清除所有报错信息,SUN服务器可能遇到的问题总结.doc
SUN服務(wù)器可能遇到的問題總結(jié)(一)1) Q:現(xiàn)在遇到這樣一個問題,telnet一臺SUN機(jī)時報下面的錯誤: No utmpx entry. You must exec "login" from the lowest level "shell".
我做了下面的處理后: cd /var/adm mv utmpx utmpxbak touch utmpx
telnet 恢復(fù)了正常,可在該機(jī)器的終端下執(zhí)行l(wèi)ogin 命令時,又報了上面相同的錯誤。而且重新啟動機(jī)器以后,telnet時還是報相同的錯誤! A:進(jìn)入單用戶模式,清空(不是刪除)這兩個文件 # cat /dev/null > /var/adm/wtmpx # cat /dev/null > /var/adm/utmpx
之后,重新啟動系統(tǒng) 找了很多國外的論壇,都是這么說的:
The problem comes if utmp or wtmp file becomes corrupted . You need to initialize these and reboot the system to correct the error.
These files are log files and can be initialized without affecting the system, as long as you reboot the system after truncating the files. Perform these steps:
1. Bring the system into System Maintenance mode.
2. Make copies of the files /etc/utmp, /etc/utmpx, /etc/wtmp, and /etc/wtmpx before proceeding with the next step.
3. Delete the contents of these files by executing the following commands:
# > /etc/utmp # > /etc/wtmp # > /etc/utmpx # > /etc/wtmpx
4. Shutdown the system: # shutdown -y -g0 Restart the system
2) Q:我用setenv PATH=$PATH:/path/to/my/program的方式來賦值,總顯示語法或者修飾符有問題。 如果用setenv PATH=/path/to/my/program就可以成功賦值。
請教各位老手,如果我想在CSehll下實現(xiàn)bash里面export PATH=$PATH:/path/to/my/program的賦值,應(yīng)該怎么寫啊?
沒用過CShell,請各位多指點,謝謝。 A:CShell別用等號 setenv PATH "$PATH":/path/to/my/program
?
3) Q:系統(tǒng)是SUN 280R,我在#提示符下輸入init s回車后屏幕閃了幾下,然后就成了白屏,強(qiáng)行重啟也沒反應(yīng) A:關(guān)掉電源,從光盤啟動,進(jìn)去看看是怎么回事 boot cdrom –s 就是從光盤啟動后進(jìn)入系統(tǒng)
4) Q: 在sunfree的網(wǎng)站上,比如我想安裝libiconv-1.8 那么libiconv-1.8-sol10-intel-local.gz 與 libiconv-1.8.tar.gz 有什么區(qū)別呢?
A: 第一個是編譯好的適合solaris系統(tǒng)的binary格式package文件 安裝,可以用pkgadd命令直接添加的
后邊的source文件,還沒有編譯 安裝,需要configure,make,make install的過程
5) Q: 求助:vmware下安裝solaris10之后不能改分辨率和刷新率 A: 用kdmconfig命令,然后選擇Xsun,即可調(diào)整分辨率
6) Q: fsck -F ufs -y /dev/rdsk/c1t0d0s6 A: fsck 修復(fù)文件系統(tǒng) 命令格式:fsck raw-device 等同于DOS的chkdsk命令 例子:fsck /dev/rdsk/c0t1d0s0 ufs - UNIX文件系統(tǒng)。是Solaris缺省的文件系統(tǒng)。 -F好像是一個修復(fù)參數(shù) -F ufs 是文件格式 -y 不要你敲y了,全部自動yes fsck是對news過程的一個恢復(fù) 這兩個操作是對裸設(shè)備文件的。
?
7) Q: 在solaris9上怎樣設(shè)置oracle10g隨系統(tǒng)
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎勵來咯,堅持創(chuàng)作打卡瓜分現(xiàn)金大獎總結(jié)
以上是生活随笔為你收集整理的SUN服务器清除所有报错信息,SUN服务器可能遇到的问题总结.doc的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: dbeaver导出表结构和数据_mall
- 下一篇: 北大青鸟:比尔盖茨:我在微软的10大失误