SUN服務器可能遇到的問題總結(一)1) Q:現在遇到這樣一個問題,telnet一臺SUN機時報下面的錯誤: No utmpx entry. You must exec "login" from the lowest level "shell".
我做了下面的處理后: cd /var/adm mv utmpx utmpxbak touch utmpx
telnet 恢復了正常,可在該機器的終端下執行login 命令時,又報了上面相同的錯誤。而且重新啟動機器以后,telnet時還是報相同的錯誤! A:進入單用戶模式,清空(不是刪除)這兩個文件 # cat /dev/null > /var/adm/wtmpx # cat /dev/null > /var/adm/utmpx
之后,重新啟動系統 找了很多國外的論壇,都是這么說的:
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下實現bash里面export PATH=$PATH:/path/to/my/program的賦值,應該怎么寫啊?
沒用過CShell,請各位多指點,謝謝。 A:CShell別用等號 setenv PATH "$PATH":/path/to/my/program
?
3) Q:系統是SUN 280R,我在#提示符下輸入init s回車后屏幕閃了幾下,然后就成了白屏,強行重啟也沒反應 A:關掉電源,從光盤啟動,進去看看是怎么回事 boot cdrom –s 就是從光盤啟動后進入系統
4) Q: 在sunfree的網站上,比如我想安裝libiconv-1.8 那么libiconv-1.8-sol10-intel-local.gz 與 libiconv-1.8.tar.gz 有什么區別呢?
A: 第一個是編譯好的適合solaris系統的binary格式package文件 安裝,可以用pkgadd命令直接添加的
后邊的source文件,還沒有編譯 安裝,需要configure,make,make install的過程
5) Q: 求助:vmware下安裝solaris10之后不能改分辨率和刷新率 A: 用kdmconfig命令,然后選擇Xsun,即可調整分辨率
6) Q: fsck -F ufs -y /dev/rdsk/c1t0d0s6 A: fsck 修復文件系統 命令格式:fsck raw-device 等同于DOS的chkdsk命令 例子:fsck /dev/rdsk/c0t1d0s0 ufs - UNIX文件系統。是Solaris缺省的文件系統。 -F好像是一個修復參數 -F ufs 是文件格式 -y 不要你敲y了,全部自動yes fsck是對news過程的一個恢復 這兩個操作是對裸設備文件的。
?
7) Q: 在solaris9上怎樣設置oracle10g隨系統