最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

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ī)定?

104 Q: syslogd 如何支持漢字? syslogd 好像會(huì)把漢字拆分成兩個(gè)字節(jié),并去掉高位
如何解決?
A: How the background service provider syslogd supports character set
depends on the locale environment it starts. So, if you want Chinese
characters transferring by syslog. You can restart syslogd in
Chinese environment by issuing the following commands:
# LANG=zh; export LANG # set the locale environment in Chinese.
# kill -9 `cat /etc/syslog.pid` # to kill the former syslogd
# /usr/sbin/syslogd

If you want syslogd to support Chinese characters whenever the
machine boot. Put the attacted file in the /etc/rc3.d directory.Make
sure this file's mode is "rwxr-xr-x" and the owner is root.

105 Q: 我的工作站的交換分區(qū)分的太小了,除重裝系統(tǒng)外,是否有其它辦法將空間調(diào)
整一下。
A: You can extend your swap region by issueing the following command:
#mkfile <filename>; -m <size in million>;
#swap -a <filename>;
Note: the <filename>; should be the full path name.

106 Q: 用vi打開(kāi)一個(gè)script文件,發(fā)現(xiàn)里面有非法字符^M,在vi命令行如何全程替代
掉該字符?我試了一下用以下命令來(lái)做,卻不行:0,$s/^M// A: 1,$s/^M//g ,其中,^M是 ctrl+V ,ctrl+M,或者,用下面這個(gè)命令。
%unix2dos $filename >; $newfilename

107 Q: How to add space to a filesystem in solaris2.5.7 ? When I patchadd a
patch,It tell me that there is no sufficient filesystem capacity.
A: It seems like your root partition too small. Please check it
a vailiable size. If it is small, I think you would better to
reinstall the system. Please store all the data in the disk.
In the new installation, you need really to partitions, one is for
swap, and another is for /. The swap partition /tmp needs about 200M
to 500M. Then all the left should be given to /.

108 Q: 請(qǐng)教關(guān)于Solaris Patch的問(wèn)題。我們?cè)诎惭b一些軟件時(shí),經(jīng)常需要先安裝一
些Patch,有一事不明,向您請(qǐng)教一下,比如某個(gè)軟件需要Patch : 107546-02,
現(xiàn)在我的機(jī)器上已經(jīng)安裝107546-08,是不是就不用再安裝107546-02了Patch
后面的那部分是什么意思?是不是大的數(shù)字可以包含小的數(shù)字的功能了? 同一
個(gè)Patch的不同版本之間會(huì)不會(huì)有沖突?
A: You are right. If you ha ve installed a bigger version of the same
patch, it not necessary for you to install the smaller one. The
bigger version will override the earlier one if it installed before.
You need not worry about any collision.

109 Q: 關(guān)于sun的SunNet 我目前想了解關(guān)于sun的SunNet。我從sun的網(wǎng)站上了解到
SunNet已經(jīng)被合并入到Solstice里了,我目前想試著把我做得程序集成到
SunNet或Solstice里,我看了Slostice得White Paper,但里邊只提到了一點(diǎn)點(diǎn)
相關(guān)得Api,我從哪里,怎么才能到比較完全得文檔呢?

A: To my knowledge, you can go to the following for a detailed info:
http://www.sun.com/software/sols ... ork/sunnetmgr.html.

110 Q: 關(guān)于SUN機(jī)器root口令丟失問(wèn)題,如何解決?
A: 辦法如下:
利用SOLARIS的啟動(dòng)盤(pán)來(lái)啟動(dòng),然后把硬盤(pán)mount上去,修改硬盤(pán)上原etc目錄
下的shadow文件,將root項(xiàng)里的password域內(nèi)容刪除,變成無(wú)密碼。然后重新
啟動(dòng)主機(jī),以無(wú)密碼的root登陸后,重新設(shè)置root口令。具體步驟如下:
1.把你的solaris光盤(pán)放進(jìn)cdrom
2.鍵入stop+a
3.當(dāng)出現(xiàn)'ok'字樣時(shí),鍵入boot cdrom -s
4.cd /tmp/root
5.mkdir /tmp/root/xxx (xxx是什么鬼東西就無(wú)關(guān)緊要了)
6.mount /dev/dsk/c0t0d0s0 /tmp/root/xxx (在這里c0t0d0s0是你的root盤(pán))
7.運(yùn)行csh
8.setenv TERM vt220
9.cp /tmp/root/xxx/etc/shadow /tmp/root/xxx/shadow/shadow.bak
10.vi /tmp/root/xxx/shadow,并且將root項(xiàng)里的password域刪除即可。
11.重啟動(dòng),你就可以以無(wú)密碼的root登陸了,登錄后,更改root的密碼。

111 Q: In solaris 2.6. when i use command "killall" ,all process started in
CDE will be killed and the eviroment will change to CDE login. I
looked up the man manual about "killall" ,it told me that "only root
can use the command".But I really use it with common id.In
solaris7 and solairs 8, with common id,i can't use the common.can
you tell me why i can execute "killall" successfully in solaris 2.6?
A: Just see the access mode of /usr/sbin/killall. If you can use it
with a common account identity, the access mode should be x-rsx-rx-r.
If you can not use it in a common account identity, the mode should
be x-r--r--r. You can change the mode as you like, whenever in 2.6,
or 2.7 or 2.8.

112 Q: I downloaded the SDM2.3 from the Download Center of "www.sun.com"
,read the White Paper and web detailed describing.But it is only the
outlook of the software. I need the detailed document about how to
integrated my own network management application to Solstice.
A: I transfer this messag to Sun Service in Guangdong.

113 Q: 請(qǐng)問(wèn)有沒(méi)有磁盤(pán)管理工具。我們有一臺(tái)E450,有5塊硬盤(pán),想做RAID,但是沒(méi)有工
具.
A: If the machine's OS is solaris 2.8, the storage management software
is also installed in you machine. You can make the RAID by issuing
the command family: /usr/sbin/meta*; If you are not so familiar with
these commands. I can do it for you. or you can use solstice
disksuite, it is a GUI tool.

114 Q: 怎樣強(qiáng)制更改NIS客戶端的本地NIS數(shù)據(jù)表?有時(shí)候NIS客戶端和NIS服務(wù)器端有
時(shí)會(huì)出現(xiàn)不一致的情況.NIS服務(wù)器和NIS sla ve 服務(wù)器也會(huì)出現(xiàn)這種情況。
A: 你可以用yppush和 ypxfr 來(lái)做這種工作,更常見(jiàn)的方法是把它們寫(xiě)進(jìn)cron,定
期更新,具體步驟請(qǐng)查閱Answerbook.


115 Q: 為了將工作站設(shè)為從DHCP動(dòng)態(tài)分配IP,并且將主機(jī)名由"unknown"改為原名
修改了/etc/init.d/rootusr,將dhcpinfo后面三行(不是四行)注釋掉;
hostname=`/sbin/dhcpinfo Hostname`
# case $? in
# 0) [ -z "$hostname" ] && hostname='unknown' ;;
# 2) try_dhcp=no ;;
esac
重啟后,提示:
/sbin/rcs:ysntax error at line 143 : 'esac' unexpected
INIT:cannot creat /var/adm/utmp or /var/adm/utmpx
INIT:SINGLE USER MODE
輸入root口令后,只能運(yùn)行在單用戶模式,且vi、ls等都不能用(#vi:not found)
如何才能打開(kāi)/etc/init.d/rootusr文件進(jìn)行修改,恢復(fù)正常狀態(tài)。
A: 請(qǐng)找一個(gè)SOLARIS的安裝啟動(dòng)盤(pán),使用以下方法可以修改rootusr文件,步驟如
下:
1.把你的solaris光盤(pán)放進(jìn)cdrom
2.鍵入stop+a
3.當(dāng)出現(xiàn)'ok'字樣時(shí),鍵入boot cdrom -s
4.cd /tmp
5.mkdir /tmp/xxx (xxx是什么東西無(wú)關(guān)緊要,隨便取一個(gè)名字,如test)
6.mount /dev/dsk/c0t0d0s0 /tmp/xxx (在這里c0t0d0s0是你的root盤(pán))
7.運(yùn)行csh
8.setenv TERM vt220
9.vi /tmp/xxx/etc/init.d/rootusr,把esac那行也注釋掉即可。
10.把solaris光盤(pán)拿出,reboot,重啟動(dòng)即可。

116 Q: 一臺(tái)Ultra60工作站,其固定IP為10.11.105.247,用ifconfig hme0 dhcp
start總是失敗,如下所示。
# netstat -a|grep 4999
# ifconfig hme0 dhcp start
May 7 20:11:11 hwMusa01 dhcpagent[478]: ERROR! Address 10.11.105.147
is already in use ifconfig: internal error in DHCP agent
# netstat -a|grep 4999
localhost.4999 *.* 0 0 0 0 LISTEN
localhost.4999 localhost.1023 32768 0 32768 0 TIME_WAIT

抓包發(fā)現(xiàn)是dhcp服務(wù)器offer的IP地址10.11.105.147被decline了。手工運(yùn)行
dhcpagent,提示4999端口被使用了。以前此工作站曾配置為固定IP:
10.11.105.147,但現(xiàn)在已改為10.11.105.247并重啟過(guò)多次。請(qǐng)問(wèn),可能是什
么原因?qū)е耫hcp失????

A: 導(dǎo)致問(wèn)題出現(xiàn)的原因是,由于客戶機(jī)在申請(qǐng)?jiān)瓉?lái)的被保留分配的IP時(shí),服務(wù)器
發(fā)現(xiàn)這個(gè)IP不能夠被使用(已經(jīng)有其它機(jī)器使用了這個(gè)IP地址)。使客戶機(jī)申
請(qǐng)失敗,并且使其中的某些進(jìn)程不能正常退出,繼續(xù)占用了端口4999而使后面
的申請(qǐng)不能進(jìn)行。辦法是找到占用端口4999的進(jìn)程,殺掉即可。找到這個(gè)進(jìn)程
的辦法是,這個(gè)申請(qǐng)進(jìn)程是帶有dhcp字樣的。
# ps -e | grep dhcp
會(huì)出現(xiàn)一到兩個(gè)進(jìn)程號(hào)。驗(yàn)證這些進(jìn)程是否占用了4999是看進(jìn)程打開(kāi)的文件:
# /usr/proc/bin/pfiles #pid
早到進(jìn)程然后殺掉。這樣就可以繼續(xù)啟動(dòng)Client 端的dhcp申請(qǐng)。注意,修改
服務(wù)器的設(shè)置使新的申請(qǐng)可以成功。

相關(guān)文章

最新評(píng)論

柳河县| 湛江市| 北碚区| 广宁县| 房产| 堆龙德庆县| 青河县| 平利县| 灵山县| 临清市| 漳浦县| 达孜县| 潮安县| 城市| 灵武市| 枣强县| 阜阳市| 仪陇县| 皮山县| 肥西县| 沽源县| 佛冈县| 湘潭市| 五华县| 同仁县| 延津县| 全椒县| 广汉市| 浦东新区| 贵州省| 景洪市| 洪洞县| 容城县| 司法| 元江| 麻城市| 清镇市| 揭阳市| 太仆寺旗| 浮梁县| 襄汾县|