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

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

  發(fā)布時(shí)間:2008-09-08 19:10:58   作者:佚名   我要評論
Solaris新手必讀 -121個(gè)問題解答讓你從菜鳥到高手 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ī)定?

73 Q: 經(jīng)實(shí)驗(yàn),兩臺Sun工作站之間通過網(wǎng)絡(luò)發(fā)Syslog日志,也不支持漢字,該問題可
能是syslogd的問題。
A: 估計(jì)是由于syslogd在望上傳輸時(shí)丟掉了字節(jié)的最高位.

74 Q: 如果需要ID:105181-15的patch,請問ID:105181-19可以代替嗎?ID毫最好兩位
是不是patch的版本號,如果是版本號有沒有前項(xiàng)兼容性?
A: 可以, 后兩位表示同一patch的版本號.

75 Q: 以下代碼在Forte C++下導(dǎo)致編譯錯(cuò)誤,請問如何解決?

template<typename p1, typename p2>;
void testimpl(int i1, int i2, p1* n1 = 0, p2* n2 = 0)
{
p1* pReq = new p1;
p2* pRsp = new p2;
}
void test()
{
int i = 0;
int j = 0;
testimpl<int, int>;( i, j);
}
A: 請下載新的patch更新Forte C++

76 Q: 請問:如何設(shè)置工作站的最大客戶端數(shù)?現(xiàn)有一臺測試用機(jī),使用人較多,經(jīng)
常出現(xiàn)"無法得到pty"的提示。
A: 在/etc/system ,可以用參數(shù) maxusers 設(shè)置,最大2048,如果這里沒有設(shè)置,默
認(rèn)為與系統(tǒng)內(nèi)存容量相同(以M記,最大為1024),

77 Q: I install visibroker into my solaris 2.7.
When I execute a example program,it cannot execute and tell me:
ld.so.1: Server: 致命的: liborb64r_so:打開失敗:無此文件或目錄
被殺掉

(Server is my program)
Can you tell me how to settle it?

A: you should set this envirnment variable: LD_LIBRARY_PATH

78 Q: 貴處有無磁帶機(jī)的使用手冊或指導(dǎo)說明?
A: answerbook 中系統(tǒng)管理員手冊 I 有使用說明.
answerbook 的文檔不是html格式,需要一個(gè)服務(wù)器程序轉(zhuǎn)換, 察看本機(jī)http進(jìn)
程看有沒有下面這個(gè):

# ps -ef |grep http
# /usr/lib/ab2/dweb/sunos5/bin/dwhttpd /usr/lib/ab2/dweb/data

79 Q: 在 solaris 2.5.1 上 把 系統(tǒng)時(shí)間 改為 2004 年,無問題,然后把時(shí)間再改回
來后,整個(gè)UNIX 死機(jī),請SUN工程師答復(fù). 具體操作為: 將操作系統(tǒng)時(shí)間設(shè)為
2004年3月1日,然后再將操作系統(tǒng)時(shí)間改回當(dāng)前的時(shí)間,則系統(tǒng)的cpu資源被兩個(gè)
進(jìn)程dtwm,dtfile嚴(yán)重占用,X Window反應(yīng)非常緩慢,在低配置的系統(tǒng)上導(dǎo)致系統(tǒng)
不可操作.同時(shí)顯示 "Warning:selected failed;error code 22.
A: 在窗口環(huán)境下或多用戶模式下來回切換時(shí)間,會導(dǎo)致不可預(yù)測的結(jié)果,所以,
如果當(dāng)真要執(zhí)行此類操作,請?jiān)趩斡脩裟J较逻M(jìn)行.

80 Q: shell 文件中如何從文件中讀參數(shù)?
A: cat yourfile`

81 Q: 如何分析網(wǎng)絡(luò)負(fù)載,在SUN上面有沒有相應(yīng)的工具
A: netstat -i

82 Q: 請問目前SUN E250,E450,E3500支持的CPU主頻和緩存分別是多少?您能將這
些配置列表發(fā)給我嗎?
A: docs.sun.com 有 硬件的answerbook ,可以參考一下。
現(xiàn)在支持的CPU到400M, 480M 產(chǎn)品已有.but still ha ve not released

83 Q: mt -f /dev/rmt/0 有個(gè)參數(shù):retension中文為"拉緊",在磁帶操作中具體
做什么?
A: the man page of this command said it clearly:
Rewind the cartridge tape completely, then wind it
forward to the end of the reel and back to beginning-
of-tape to smooth out tape tension.
so ,it is not 拉緊, but 放松 instead.

84 Q: 具體問題是:有一個(gè)進(jìn)程不停的向該文件增加內(nèi)容,同時(shí)另外一個(gè)進(jìn)程建立了
與該文件的管道,從該文件中讀取一行記錄進(jìn)行處理。然后刪除該行記錄。因
此需要保持該文件i-node不能改變,否則,向該文件寫的進(jìn)程就不能將信息寫
入該文件了。有沒有解決方法,請指教。
A: I don't know if I ha ve understood you :
If you want sa ve this file for later use, you should not remove its'
content,if you don't need these content, you don't need this file as
well, you can use pipe only, or other interprocess communication
methods.

85 Q: 我用dos2unix轉(zhuǎn)換一文件,卻不成功,提示信息如下:(我用PC機(jī)通過rexec遠(yuǎn)
程登陸的)
$dos2unix filename1 filename2
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard tyep US keyboard assumed

請問此問題是怎麼回事?如何解決?
A: 權(quán)限問題, 檢查一下 /dev/kbd 讀寫權(quán)限

86 Q: 我希望在一臺ultra機(jī)器為以下網(wǎng)絡(luò)配置路由
子網(wǎng):10.1.0.0
掩碼:255.255.0.0
網(wǎng)關(guān):10.220.10.113
應(yīng)該如何配置?
用以下命令可以嗎?如果永久配置需要修改那些文件?
%route add 10.1.0.0 10.220.10.113
A: no,try this commond:
#route add default 10.220.10.113

87 Q: 有個(gè)patch 107311-09,能解決CC4.2不能處理#pragma pack()的問題嗎?
A: the right patch is 104631, but you should add all related patch
to a void other problem,find them at: sunsolve.sun.com

88 Q: 在CSH下我輸入以下命令?
$setenv IWA VE 'pwd'
$echo $IWA VE
結(jié)果顯示為:pwd
在我的理解中應(yīng)該是將pwd的輸出(如/tmp)賦值給變量IWA VE,所以我想象的
輸出是/tmp
A: use ` instead ' apparently,they are different. read some unix books
for reference

89 Q: 為什么有時(shí)普通用戶不能登錄CDE?
A: 這個(gè)錯(cuò)誤可能是由于CDE的不正確設(shè)置造成的。在每一個(gè)用戶的home目錄下有一
個(gè).dt子目錄.在此目錄下有一個(gè)errorlog文件記錄了CDE登錄失敗的原因.查
看此文件可以找到失敗的原因.一個(gè)可行的方法是:使用root登錄并且刪除對
應(yīng)用戶home目錄下的.dt目錄,同時(shí)可以刪除<home>;/.dtprofile文件, 然后使用
用戶口令登錄即可.外檢查/usr/dt/bin/dtsessoin的使用權(quán)限.正確的權(quán)限應(yīng)
當(dāng)是-r-sr-xr-x

90 Q: 關(guān)于Solaris8上DHCP的配置問題安裝Solaris8后,進(jìn)程dhcpagent的CPU占用率一
直都超過88%, 請問有什么方法可以解決.謝謝.
A: I solve this program by going to the field sit.
The update period parameter can not be set longer than 2 weeks in the
DHCP server side.

91 Q(1)能否在Ultra60上只安裝64位的Solaris8?
(2) Solaris8安裝在Ultra60上,內(nèi)核是32位還是64位?
(3)在其上安裝的Oracle 8是安裝的32位版本還是64位版本?
A: Solaris8 的內(nèi)核是64位的, 但是,它同時(shí)帶有32位程序的解釋器,也就是說32位
的程序也可以在Solaris8上面運(yùn)行。事實(shí)上Solaris8上面有一些系統(tǒng)命令就是
32位的程序,如link等。所有的Solaris8都是64位的,但是都帶有32位的解釋
器。(就現(xiàn)在的情況而言,32位的解釋器是必 須的)。在Solairs 8上面運(yùn)行
的應(yīng)用程序可以是64位,也可以是32位的,包括Oracle 8在內(nèi)

92 Q: 很感謝你的答復(fù)。原來不能創(chuàng)建用戶的原因應(yīng)該是文件系統(tǒng)已滿,我刪除了一
些用戶賬號后,創(chuàng)建正?!,F(xiàn)在的問題是c0d0t0s0文件系統(tǒng)的容量太小,現(xiàn)在
已經(jīng)達(dá)到100%,如何擴(kuò)展這個(gè)文件系統(tǒng),是否只有重裝系統(tǒng)這一個(gè)辦法?
A: 在系統(tǒng)安裝時(shí),各個(gè)分區(qū)劃分的有些不太合理。/ 目錄和 /usr 太小
/export/home和/tmp 太大。實(shí)際上在安裝時(shí),比較合理的辦法是只設(shè)置 / 和
/tmp,/tmp最多 500M即可。然后在 / 上面建立/usr,/opt 和/export/home。
現(xiàn)在補(bǔ)救的辦法是利用軟link的辦法:首先將一些在/或/usr中不太是系統(tǒng)直接
使用的目錄(一定不可以包含/usr/sbin,/sbin, /etc,等等)轉(zhuǎn)移到有空間的分
區(qū)上面,然后使用ln建立軟連接。關(guān)于ln的使用可以man.這種辦法是不得已而
為之。不是很好把握,搞不好就會死機(jī),并且啟動(dòng)不起來。所以在進(jìn)行此項(xiàng)活
動(dòng)時(shí),首先要備份數(shù)據(jù),以免發(fā)生以上情況時(shí)丟失。如果您在下午下班的時(shí)間
可以抽出一點(diǎn)時(shí)間,最好還是將系統(tǒng)重新安裝一遍的好。因?yàn)?,每一個(gè)目錄都
有一定的用意,一些軟件的安裝不是地方會讓人感到很別扭。而使用軟連接又
會降低系統(tǒng)的運(yùn)行速度。

93 Q: 求助--請教一個(gè)多線程編程問題。關(guān)于我們發(fā)現(xiàn)的問題具體現(xiàn)象如下:
函數(shù) void* A(void *pInput)
{
char szBuf[30000]; //this buffer maybe larger than 30,000
...
...
}
在多線程程序中,該函數(shù)在main中運(yùn)行(此時(shí)相當(dāng)于在主線程中運(yùn)行)正常。
如果使用pthread_create創(chuàng)建一個(gè)線程,以A作為線程入口函數(shù),用內(nèi)存測試工
具purify可以觀察到該線程運(yùn)行過程中出現(xiàn)Beyond Stack Read、Beyond Stack
Write錯(cuò)誤。如果把szBuf改為堆中分配的內(nèi)存,則無此問題。據(jù)此,我們判斷
是線程的??臻g溢出造成該問題。按資料描述,主線程的缺省棧空間大小為8M
,子線程缺省??臻g為2M;我們使用pthread_attr_setstack函數(shù)將子線程的棧
空間設(shè)置為8M,但仍未解決問題。后又將線程屬 性設(shè)置為
PTHREAD_SCOPE_SYSTEM, 問題仍然存在。函數(shù)A以靜態(tài)庫方式由第三方提供,
我們現(xiàn)需要使之在一個(gè)子線程中運(yùn)行,因此希望能夠提供主線程與子線程差異
的資料,除堆??臻g、調(diào)度方式外,是否還有其他差別,造成以上錯(cuò)誤的發(fā)生
A: In fact, there is no problem in the program. I think there is a bug
in their debug tool: purify. You can use dbx to debug your program.

94 Q: 請問一塊硬盤上可以有兩個(gè)Solaris分區(qū)嗎?在一塊硬盤上分了兩個(gè)solaris分
區(qū),一個(gè)是active的系統(tǒng)安裝分區(qū),另一個(gè)是后來用fdisk創(chuàng)建的,請問怎樣把
第二個(gè)分區(qū)加入到solaris系統(tǒng)中使用。謝謝。
A: Yes, There can be up to six partitions in a disk. you can see the
partition using utility format. Command list:
#format
Then you will see the disks installed in you system.then select the
disks you are interested in. then print "partition" and then "print"
to see the partition information. The partition you want to add to
the system can be identified as c#t#d#s#. Make sure the mount point(
a empty directory in file system). such as /disk1.then run the
command:
#mount /dev/dsk/c#t#d#s# /disk1

run the command
#df -k
to verify the slice(partition) is properly installed.

95 Q: 請問在Solaris 2.7上,可以動(dòng)態(tài)改變分區(qū)大小嗎? 我的工作站劃分分區(qū)不合理,
根分區(qū)太小,已經(jīng)滿了,可以使用工具動(dòng)態(tài)改變嗎?
A: No, If you want to modify it, the whole disk data will be lost.
In fact, I think it high time for you to re-instal the solaris
system. In the new installation. You-really need just two partitions
swap and root. Lea ve no more than 1G to swap partition and all the
left to root.Don't forget to backup all you data before re-installation.

96 Q: 用CC編譯器如何實(shí)現(xiàn)結(jié)構(gòu)成員按字節(jié)對齊,類似于其他編譯器的#pragma pack(1)
功能。
A: It is a standard compilation option(#pragma pack). It is also
supported in Solaris C.You can get documents about SC options from
http://sunlibray under workshop directory.

97 Q: 為什么SUN的本地界面有時(shí)候會出現(xiàn)死掉的情況,此時(shí)kill掉用戶的dtsession
是否就可以恢復(fù)正常。如不能恢復(fù)正常還需要做那些操作。
A: In my experince, the interface dying, may be caused by other
application other than dtsession. You should determine which
program's interface causes the interface dying. This situation is not
often happens, and most of them happened when you are manipulating a
program's interface by mouse. When it happen, login the system from
network as "root" or the account which cause the dying, kill the
program.

98 Q: 系統(tǒng)不能啟動(dòng), 任何二級目錄都沒有了,但用戶下,所有命令都不能用,怎么
安裝Solaris,能直接從光盤啟動(dòng)嗎?
A: You harddisk is damaged. It may be salvaged manually, or can not.
You should restall the system. Or even worse, you should change your
harddisk.

99 Q: Can you tell me if I want to add a new CPU chip to a only one CPU
chip machine on solaris system,Can the application run continually in
the old cpu chip without interruption on solaris system ?
A: Please tell me the machine's type. If your machine is a workstation.
CPU chips can not be added without turning down the power. I don't
know so much in this field. But, I ha ve forwarded this message to the
specitest in our company. You will get much more detailed answers.
But you should wait several days. Another way for you is to consult
the vender who sell you the machine directly.

100 Q: what's deference between the processor_bind() and pset_bind()?
A: You can get the differences between two functions by seeing the
manual:
# man processor_bind
# man pset_bind

101 Q: 我們有一個(gè)產(chǎn)品在移植到SOLARIS的過程中出現(xiàn)了大量難以理解的問題,請給
我們現(xiàn)場支援一下,非常感謝!使用Forte Develop6編譯C++程序的時(shí)候出現(xiàn)
以下信息:

"mit/../teglobal.h", line 39: Warning (Anachronism): Attempt to redefine TRUE without using #undef.
"mit/../teglobal.h", line 40: Warning (Anachronism): Attempt to redefine FALSE without using #undef.
>;>; Assertion: (../links/prepexpression.cc, line 65)
while processing mit/multilock.cpp at line 0.

請問是什么意思,難道編譯器還要assert嗎?
A: CC 編譯器要求被編譯的文件以兩個(gè)新行結(jié)束,請?jiān)谙嚓P(guān)頭文件末尾加上新行。

102 Q: solaris的問題:激活小鍵盤上的Numlock,激活中文輸入法,按小鍵盤上的0
鍵,中文輸入法自行關(guān)閉,請問是何原因?
A: You can solve the problem you metioned by trying the following three
ways:
1. Make sure using GB locale, instead of GBK.
2. Visit http://sunsolve.sun.com to get the "recommended patches"
package for the your solaris platform, and add it.
3. If possible, you can change the solaris platform from solaris 2.7
to solaris 2.8

103 Q: 有關(guān)在SOLARIS上使用NETSCAPE問題
問題描述:
1.在SOLARIS2.6上安裝NETSCAP4.04后,安裝提示成功后,運(yùn)行netscape,出現(xiàn)以
下錯(cuò)誤信息:
xlib:connection to "0.0" refused by server
xlib:client is not authorized to server
can't open display : :0.0
2.在SOLARIS2.6上安裝Acroread后,如何設(shè)置能直接點(diǎn)擊打開.pdf文件,而無需
每次要先啟動(dòng)Acroread,然后再打開? 請問上述問題如何解決?
A: 1. You-run the command:
#xhost <hostname>; :0.0
and then, you can use NETSCAPE In the terminal, in which the
netscape is launched, please set the envrionment DISPLAY as :0.0
2. Actually, I don't know how to configure it. If you are interested
in it. You can read some topics in AnswerBook2 User Collection.

相關(guān)文章

最新評論