欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Solaris新手必讀-121個(gè)問(wèn)題解答

  發(fā)布時(shí)間:2008-09-08 19:10:58   作者:佚名   我要評(píng)論
Solaris新手必讀 -121個(gè)問(wèn)題解答讓你從菜鳥(niǎo)到高手 1. Q: Solaris 的系統(tǒng)配置文件一般在什么地方? A: 可以查看/etc/system文件,里面有一些solaris啟動(dòng)時(shí)默認(rèn)加載的選項(xiàng),包括 共享內(nèi)存大小等的設(shè)置, 2. Q: 在solaris中,用戶默認(rèn)的Shell在什么文件中規(guī)定?

117 Q: 我們有一臺(tái)Natra T1,它的/tmp目錄已經(jīng)長(zhǎng)到90%,如果目錄滿了是否會(huì)使系統(tǒng)
運(yùn)行異常.(因?yàn)槲覀冞\(yùn)行的業(yè)務(wù)不能停,故不能重啟SUN機(jī)器來(lái)讓系統(tǒng)清空該目
錄,也不能直接清空該目錄,應(yīng)為應(yīng)用程序正在運(yùn)行.)下面是一些數(shù)據(jù):

# df -k
Filesystem kbytes used a vail capacity Mounted on
/proc 0 0 0 0% /proc
/dev/dsk/c0t0d0s0 1258491 51942 1143625 5% / /dev/dsk/c0t0d0s6 1612343 500741 1063232 33% /usr
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s3 33099 9211 20579 31% /var
/dev/dsk/c0t0d0s7 13550703 838475 12576721 7% /export/home
/dev/dsk/c0t0d0s5 30743 10319 17350 38% /opt
/dev/dsk/c0t0d0s1 548687 369368 124451 75% /usr/openwin
swap 627864 563360 64504 90% /tmp
# cd tmp
# ls
ps_data
# ls -a -l
total 98
drwxrwxrwt 6 sys sys 443 May 7 15:29 .
drwxr-xr-x 22 root root 512 Mar 20 17:45 ..
drwxrwxr-x 2 root root 176 Feb 27 23:18 .X11-pipe
drwxrwxr-x 2 root root 176 Feb 27 23:18 .X11-unix
drwxrwxrwx 2 root root 179 Feb 27 23:18 .pcmcia
drwxrwxrwt 2 root root 327 Feb 27 23:18 .rpc_door
-rw-rw-r-- 1 root sys 5056 Feb 27 23:18 ps_data
# cd .pcmcia
# ls -a -l
total 32
drwxrwxrwx 2 root root 179 Feb 27 23:18 .
drwxrwxrwt 6 sys sys 443 May 7 15:35 ..
prw-rw-rw- 1 root root 0 Feb 27 23:18 pcram
# cd ..
# pwd
/tmp
# cd .rpc_door
# ls -a -l
total 32
drwxrwxrwt 2 root root 327 Feb 27 23:18 .
drwxrwxrwt 6 sys sys 443 May 7 15:36 ..
Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.1
Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.2
Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.3
# cd ..
# cd .X11-pipe
# ls -a -l
total 32
drwxrwxr-x 2 root root 176 Feb 27 23:18 .
drwxrwxrwt 6 sys sys 443 May 7 15:37 ..
-rw-rw-rw- 1 root root 0 Feb 27 23:18 X0
# cd ..
# ls
ps_data
# cd .X11-unix
# ls -al
total 32
drwxrwxr-x 2 root root 176 Feb 27 23:18 .
drwxrwxrwt 6 sys sys 443 May 7 15:38 ..
srwxrwxrwx 1 root root 0 Feb 27 23:18 X0
等待您的回答,謝謝

A: 我認(rèn)為是系統(tǒng)統(tǒng)計(jì)信息錯(cuò)誤的, 本人的經(jīng)驗(yàn)是當(dāng)/tmp的使用率超過(guò)10%時(shí),系統(tǒng)就
變的很慢了。出現(xiàn)這種情況,首先,要檢查系統(tǒng)中運(yùn)行的程序有沒(méi)有不停分配內(nèi)存,
卻沒(méi)有釋放(指自己開(kāi)發(fā)的程序)。另外看一下系統(tǒng)對(duì)/tmp的swap交換情況。使用工
具sar 和iostat 都可以看到。關(guān)于sar和iostat的用法, 可以看man即可。

118 Q: 有一用MOTIF 寫的程序,運(yùn)行之后不能顯示中文(亂碼),由于顯示的信息是
不固定的,故不能使用資源文件.懷疑程序中與創(chuàng)建字體時(shí)使用了以下的函數(shù)
有關(guān),但注釋掉后也一樣:
font1=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal--12-*";
font2=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal--14-*";
font3=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal--16-*";
fontlist=XmFontListCreate(font1, "charset1";
fontlist=XmFontListAdd(fontlist, font2, "charset2";
fontlist=XmFontListAdd(fontlist, font3, "charset3");
運(yùn)行環(huán)境是ULTRA 60 ,Solaris 2.6 ,安裝了中文環(huán)境。編譯環(huán)境是SUN C++ 4.0 。
還懷疑與LANG 相關(guān),曾試過(guò)設(shè)置為zh ,chinese 等也不行,請(qǐng)教此問(wèn)題如何解決?

A: 實(shí)際上,關(guān)于選擇字體和字符集可以看<Font Administrator Guide>;這個(gè)資料,使
用系統(tǒng)提供的標(biāo)準(zhǔn)工具來(lái)從中間找到系統(tǒng)中存在的字體和字體的名稱。這個(gè)資料在
Answer Book 的System Administration Collection 中。 實(shí)際上,上面的問(wèn)題不
出現(xiàn)在字體的選擇上面, 而是在MOTIF中在選擇框的使用設(shè)置中還要設(shè)置一次字體

119 Q: 請(qǐng)問(wèn)SUN的E250以上機(jī)器支持"雙機(jī)熱備+磁盤陣列"的使用方式嗎?Ultra系
列的機(jī)器是否也能支持呢?
A: SUN的E250以上機(jī)器支持"雙機(jī)熱備+磁盤陣列"的使用方式,可以使用
SunCluster軟件實(shí)現(xiàn);Netrat系列電信服務(wù)器也支持;Ultra系列的機(jī)器,不
在支持的列表中。但是,"雙機(jī)熱備+磁盤陣列"的具體含義應(yīng)該搞清楚。推
薦的文檔在sun cluster collection 中。

120 Q: 我在一個(gè)JA VA程序中打開(kāi)50個(gè)SOCKET端口,結(jié)果出現(xiàn)異常:
ja va.net.SocketException:Too many open files
請(qǐng)問(wèn)如何解決此問(wèn)題?謝謝!另外,請(qǐng)問(wèn)在一個(gè)JA VA進(jìn)程中可以同時(shí)啟動(dòng)的線
程數(shù)是多少?最大線程數(shù)受什么限制?能否達(dá)到240個(gè)線程?謝謝!如上問(wèn)題
如果可以通過(guò)修改配置來(lái)解決的話,會(huì)有什么樣的負(fù)面影響?
A: You ha ve two ways to modify the limit number of files that a process
can open simutanously.
One: modify the /etc/system file add the following entry:
set rlim_fd_cur = #n
#n is the number you want. Should be no more than 1024.
You should reboot the machine.
Two: Use the system command: ulimit
$ulimit -n #n
Note: You should use B-shell.
And using the same terminal session(in the same terminal
window) to run the your application program( to guarantee your
application process is a child process of the setting
terminal.)You can man ulimit to see the detailed usaged.
The disadvantage brought by incread the file limite for a
process or the whole system is increasing the system memory
usage. But, for today's machine, this disadvantage is not too
expensive. (William said There is no limit for max open
socket number in Ja va. But the operating system has a limit for
max open file descriptors.A socket resource is treated as a
file descriptor in Unix. The previous email answered your
question. You can try as said.

121 Q: 我想把一個(gè)HP平臺(tái)上運(yùn)行的B SHELL 腳本在SOLARIS 2。6上運(yùn)行,但是出現(xiàn)了
問(wèn)題:要運(yùn)行的腳本部分:
command_count = 0
command_item[$command_count]=check_AutoRaid
command_count=`expr $command_count + 1`
command_item[$command_count] = check_system_resource
command_count=`expr $command_count + 1`
command_item[$command_count]= check_diskspace
command_count=`expr $command_count + 1`
command_item[$command_count]= check_bill_record
command_count=`expr $command_count + 1`
 

相關(guān)文章

最新評(píng)論