Ãâ·Ñ×¢²á ²é¿´ÐÂÌû |

Chinaunix

  ƽ̨ ÂÛ̳ ²©¿Í ÎÄ¿â
12ÏÂÒ»Ò³
×î½ü·ÃÎÊ°å¿é ·¢ÐÂÌû
²é¿´: 7440 | »Ø¸´: 12
´òÓ¡ ÉÏÒ»Ö÷Ìâ ÏÂÒ»Ö÷Ìâ

¡ºÔ­´´¡»solaris³õ¼¶¹ÜÀíÔ±Ö¸ÄÏ [¸´ÖÆÁ´½Ó]

ÂÛ̳»ÕÕÂ:
0
Ìøתµ½Ö¸¶¨Â¥²ã
1Â¥ [ÊÕ²Ø(0)] [±¨¸æ]
·¢±íÓÚ 2005-06-15 09:32 |Ö»¿´¸Ã×÷Õß |µ¹Ðòä¯ÀÀ
Ŀ¼
1¡¢        ϵͳÆô¶¯ºÍ²âÊÔ
1.1        OKÌáʾ·û
1.2        ÔÚ´®¿Ú״̬²âÊÔ
1.3        ÖØÆôSUN¹¤×÷Õ¾
1.4        ²âÊÔϵͳ
1.4.1±êÌâ
1.4.2 probe
1.4.3²âÊÔÈ«²¿
1.4.4 printenvºÍdevailas
1.4.5½ûÖ¹ÏÔʾÍøÂç´íÎóÐÅÏ¢
2¡¢ÏµÍ³¹ÜÀíÓ²ÅÌ
   2.1Âß¼­Ó²Å̵ØÖ·
   2.2·ÖÇø
   2.3ÒâÍâ´íÎó¼Ç¼
   2.4ʵÀý
   2.5¿ÉÒƶ¯É豸
      2.5.1¾í¹ÜÀí
      2.5.2ÈíÇý
      2.5.3¹âÅÌÇý¶¯Æ÷
      2.5.4¿É²Áд¹âÅÌÇý¶¯Æ÷
      2.5.5 USB´æ´¢É豸
      2.5.6´Å´ø
   2.6¸´ÖÆÓ²ÅÌ£¨clone£©
      2.6.1¸´ÖÆÄÚÖÃÓ²ÅÌ
   2.7ʹÓÃSDSÈí¼þ½«ÏµÍ³Ó²Å̾µÏñ
3¡¢½»»»·ÖÇø
   3.1ÔÚ/etc/vfstabÎļþÖÐÓÀ¾ÃÐÞ¸Ä
   3.2ÁÙʱÐÞ¸Ä
4¡¢ÏµÍ³µÄ°²×°ºÍά»¤
   4.1´Ó¹âÅÌ°²×°
   4.2Èí¼þ°üµÄ°²×°
   4.3ϵͳ²¹¶¡µÄ°²×°
5¡¢X-ServerºÍCDEÓû§Ê¹ÓýçÃæ
   5.1×ۺϹ۲ì
   5.2¶¨ÖƵǽ½çÃæ
   5.3Ë«ÆÁÏÔʾ£¬Ë«ÆÁÁ¬½ÓºÍ24λÉîÉ«µÄÉèÖÃ
      5.3.1Ë«ÆÁ
      5.3.2Ë«ÆÁÁ¬½Ó
      5.3.2 24λɫÉîµÄÉèÖÃ
6¡¢ÏµÍ³¹ÜÀí
   6.1Ö÷»úÃû
   6.2´®¿ÚÁ¬½Ó
   6.3´òÓ¡»ú
   6.4Óû§½¨Á¢
7¡¢ÍøÂçÁ¬½Ó
   7.1 /etc-files
   7.2 ifconfig
   7.3·ÓÉ
   7.4 NIS¿Í»§¶Ë
   7.5 DNS¿Í»§¶Ë
   7.6 DHCP¿Í»§¶Ë
   7.7 sys-unconfig
   7.8 10Õ׺ͰÙÕ×£¬È«Ë«¹¤ºÍ°ëË«¹¤
8¡¢ÌáʾÊÕ¼¯
   8.1Ç°Èý¸öÌáʾ
   8.2·ÖÎöÓ²¼þ¹ÜÀí
       8.2.1 prtdiag
       8.2.2 prtconf / path_to_inst
       8.2.3 Sun Explorer Èí¼þ
   8.3·ÖÎöÔËÐÐʱ¼äÊý¾Ý
       8.3.1 time / ptime
       8.3.2 vmstat / mpstat
       8.3.3 iostat
       8.3.4 32λ»òÕß64λ
   8.4µ÷ÊÔ¹¤¾ß
      8.4.1 truss
      8.4.2 pstack, pmapºÍÆäËû
      8.4.3 snoop
9¡¢ÍøÂç×ÊÔ´
   9.1ÍøÂç×ÊÔ´

















1¡¢        ϵͳÆô¶¯ºÍ²âÊÔ
1.1        OKÌáʾ·û
ÔÚ½øÈëSolaris²Ù×÷ϵͳ»òÕßϵͳÆô¶¯Ö®Ç°£¬SUNµÄ²Ù×÷ϵͳÓÐÒ»¸öBOOT-PROM״̬¡£½øÈëÕâ¸ö״̬µÄ·½·¨ÊÇͬʱ°´¼üÅÌÉϵÄstop+a£¬Èç¹û¼üÅÌÉÏûÓÐSTOPÕâ¸ö¹¦Äܼü£¨PC¼üÅÌ£©£¬¿ÉÒÔʹÓÃCtrl+break¼ü½øÈë¡£
Èç¹ûÄã½øÈëÁËBOOT-PROM״̬£¬ÔÚOKÌáʾ·ûÏ£¬¶øÄãµÄSolaris²Ù×÷ϵͳ»¹ÔÚÔËÐУ¬Äã¿ÉÒÔÔÚokÌáʾ·ûÏÂʹÓÃgoÕâ¸öÃüÁîʹϵͳ¼ÌÐøÔËÐС£
1.2        ÔÚ´®¿Ú״̬²âÊÔ
BOOT-PROM¿ÉÒÔ½øÈëÒâζ׿ÆËã»úÓÐһ̨ÏÔʾÆ÷ºÍ¼üÅÌ»òÕßÏÔʾÖնˡ£Èç¹ûϵͳÆô¶¯ÁË£¬¶ø²¢Ã»ÓмüÅ̺ÍÏÔʾÆ÷£¬ÄÇôÊäÈëÊä³ö½«±»Ä¬ÈÏΪµÚÒ»¸ö´®¿Ú£¨/dev/ttya£¬Í¨³£ÊǽÐA£©¡£¿ÉÒÔʹÓÃÖն˻òÕßÆäËûµÄ¼ÆËã»úʹÓý»²æ´®¿ÚÀ´Á¬½Óµ½ÕâÀï¡£
   1.3ÖØÆôSUNµÄ¹¤×÷Õ¾
ÔÚÖØÆô֮ǰ£¬sunµÄ¹¤×÷Õ¾ÐèÒªÒ»¸öÊʵ±µÄ·½Ê½£¬¿ÉÒÔ´ÓÒÔϵļ¸¸öÃüÁîÖÐÑ¡ÔñÒ»¸ö£º
# init 5 ¹Ø±ÕËùÓеĽø³Ì£¬²¢ÇҹرռÆËã»úµçÔ´
# init 6 ¹Ø±ÕËùÓеĽø³Ì£¬²¢ÇÒÖØÐÂÆô¶¯¼ÆËã»ú
# init 0 ¹Ø±ÕËùÓеĽø³Ì£¬²¢ÇÒʹ¼ÆËã»ú»Øµ½OK״̬
ÔÚÕâ3¸öÃüÁʽÖУ¬/etc/rc0.dĿ¼ÏµÄK*µÄ½Å±¾½«»á±»Ö´ÐУ¬Ê¹ÏµÍ³ÖØÐÂÆô¶¯»òÕ߹ػú£¬ÖØÒªµÄÊý¾Ý¿âÒ²»á±»¹Ø±Õ£¬ÍøÂç·þÎñÆ÷Ò²½«»á¹Ø±ÕËùÓеĽø³ÌID¡£Èç¹ûÒÔÉϵÄÃüÁûÓз´Ó¦£¬¿ÉÒÔ³¢ÊÔʹÓÃÒÔϵÄÃüÁ
-stop+a
-sync
×¢Ò⣺ϵͳµÄºËÐĽ«»áÁÙʱ´æ´¢ÔÚ/var/crash/<hostname>ÖС£
   1.4²âÊÔϵͳ
Æô¶¯ÏµÍ³£¬ÔÚÄÚ´æ×Ô¼ìµÄʱºò°´ÏÂstop+a£¬ÔÚÏÂÃæµÄ¶ÎÂäÀォ¿ÉÒÔ¿´µ½Ó²¼þµÄ²âÊÔÃüÁî¡£
   1.4.1±êÌâ
bannerÕâ¸öÃüÁ¿ÉÒÔÏÔʾÏÂÏûÏ¢£º
cpuµÄÊýÁ¿£¬ÆµÂÊÒÔ¼°CPUµÄ»ù±¾ÐÅÏ¢
ÄÚ´æµÄ´óСºÍÐÅÏ¢
MACµØÖ·ºÍHost-ID
Èç¹ûÓÐÏÔʾÉ豸£¬»¹¿ÉÒÔ¿´¼ûÏÔ¿¨µÄÐÅÏ¢
   1.4.2 probe
probe-scsi-all½«¿ÉÒÔ¿´¼ûËùÓеÄSCSIÉ豸£¬Èç¹ûÊÇIDE½Ó¿ÚµÄ¼ÆËã»ú£¬¿ÉÒÔʹÓÃprobe-ide-allÕâ¸öÃüÁî¡£
   1.4.3²âÊÔÈ«²¿
test-all½«Ö´Ðа²È«¼ì²âÀ´²âÊÔËùÓеÄÉ豸£¬²¢ÇÒÈç¹ûÍøÂçÁ¬½ÓµÄ»°£¬»¹¿ÉÒÔͨ¹ý·¢ËÍÐÅÏ¢°üµÄ·½Ê½À´²âÊÔÍøÂç¡£
   1.4.4 printenvºÍdevalias
printenv¿ÉÒÔÁгöËùÓеıäÁ¿¶ødevalias½«ÁгöËùÓеıðÃû£¬ÀýÈçÆô¶¯É豸µÄ±äÁ¿Èç¹ûÊÇdisk£¬ÄÇôϵͳ½«´ÓÓ²ÅÌ¿ªÊ¼Æô¶¯£¬¶ødisk¾ÍÊÇĬÈϵÄÓ²¼þÉ豸µÄ±ðÃû¡£
Ìáʾ£ºÈç¹ûÏ뽫ËùÓеıäÁ¿»Ö¸´µ½³õʼ״̬£¬¿ÉÒÔÔÚok״̬Ï°´stop+n¼üÀ´ÊµÏÖ¡£×¢Ò⣺ÔÚ»Ö¸´ËùÓбäÁ¿µ½Ä¬Èϳõʼ״̬µÄʱºò£¬»áʧȥÄãµÄÆô¶¯É豸µÄ±ðÃû£¬½«»áÔì³Éϵͳ²»ÄÜ×Ô¶¯Æô¶¯¡£
   1.4.5¹Ø±ÕÍøÂç´íÎóÌáʾ
Èç¹ûÔÚ¿ª»úµÄʱºò²»Ïë¿´¼û¡°Interface: No link¡±ÕâÑùµÄ´íÎóÐÅÏ¢£¬¿ÉÒÔÔÚok״̬ÏÂʹÓÃsetenv tpelink-test? false Õâ¸öÃüÁîÀ´½ûÖ¹ÏÔʾ¡£
×¢Ò⣺Èç¹û²»ÏëÈÃδÁ¬½ÓÍøÏßµÄÍø¿¨ÏÔʾÐÅÏ¢£¬Ò²¿ÉÒÔÔÚ½øÈëϵͳºóÓÃifconfig interface unplumbÕâ¸öÃüÁîÀ´Í£Ö¹Íø¿¨µÄ¹¤×÷¡£
2¡¢        ϵͳ¹ÜÀíÓ²ÅÌ
2.1Âß¼­Ó²Å̵ØÖ·
ËùÓеÄÓ²ÅÌÃüÃû¹æÔò¶¼ÓÐÒ»¸öÆÕͨµÄ¹æ¶¨¡£ÓÉÒÔÏÂ4¸ö²¿·Ö×é³É£º
c ¿ØÖƽӿÚ
t Ä¿±êµØÖ·£¨scsiÉ豸½«¸øÓèscsi-ID£©
d É豸µØÖ·»òÕß¾íµÄraidµØÖ·£¨Ò»¸öµØÖ·£¬¶à¸öÅÌ£©
s ƬµØÖ·£¬Ò²¾ÍÊÇ˵·ÖÇøµØÖ·
ËùÓеÄÉ豸µØÖ·¶¼½«×÷ΪÁ´½ÓÎļþ´æÓÚ/dev/dsk ºÍ /dev/rdsk.ÕâÁ½¸öĿ¼Ï£¬ÕâЩÁ´½Óµã½«Ö±½ÓÁ´½Óµ½ÎïÀíÉ豸Ãû¡£Ìí¼ÓÁËеÄÉ豸¿ÉÒÔÔÚok״̬ÏÂʹÓÃboot ¨CrÕâ¸öÃüÁî»òÕß½øÈëϵͳºóʹÓÃdevfsadmÀ´Ê¹ÐµÄÉ豸±»È·ÈÏ£¬¶øÇÒ¿ÉÒÔÔÚok״̬ÏÂÓÃprobe-scsi-allÀ´²é¿´ÐµÄÉ豸¡£
    2.2·ÖÇø
ÔÚÒ»¸öÓÐÁ½¿éÄÚÖÃÓ²Å̵Ť×÷Õ¾ÖУ¬Ê¹ÓÃformatÃüÁ¿ÉÒÔ¿´¼ûÒÔϵÄÊä³öÑ¡Ôñ£º
c0t0d0
c0t1d0
ÕâÀïÁгöµÄÊÇÓ²ÅÌ£¬¶øûÓе¥¶ÀµÄÉÈÇø»ò·ÖÇø£¬¶øʹÓÃformatµÄÄ¿µÄ¾ÍÊÇΪÁ˽¨Á¢»òÕß¹ÜÀí·ÖÇø£¬Ò»¿éÓ²ÅÌ¿ÉÒÔ·Ö8¸ö·ÖÇø£¬Õâ¸ö¿ÉÒÔÔÚformatÃüÁîºóÓÃprint-partitionÀ´¿´¼û¡£
Èç¹ûʹÓÃsolarisµÄĬÈÏ°²×°£¬ÄÇôϵͳ½«»áĬÈϽ¨Á¢ÒÔϼ¸¸ö·ÖÇø£º/£¨root£©£¬/usr£¬/var£¬/export/home£¬Èç¹ûÊÇsolaris 8µÄĬÈÏ°²×°£¬½«»á½¨Á¢3¸ö·ÖÇø£º/·ÖÇø½«ÓÐ1G£¬swap·ÖÇø½«¸ù¾ÝÄÚ´æ´óС¶ø¶¨£¬¶øʣϵÄÈÝÁ¿½«È«²¿¸øµ½/export/home¡£
µ«ÊǶÔÓÚÒ»¸ö¹¤×÷Õ¾À´Ëµ£¬ÕâÑùµÄ·ÖÇø²¢²»ÊÇ×îÀíÏëµÄ£¬·ÖÇøµÄ´óС²»ÊÊÓ¦ÓÚÊý¾ÝµÄÕ¹¿ª£¬¶ÔÓÚ²»Í¬µÄÓ¦Óã¬Ó¦¸Ã²ÉÈ¡²»Í¬µÄ·ÖÇø·½Ê½¡££¨Ô­ÊéÖиøÁ˺ܶàʾÀý£¬µ«ÊǸöÈËÈÏΪӦ¸Ã¸ù¾Ý×Ô¼ºµÄ¾­ÑéºÍ¿Í»§µÄÒªÇóÀ´´¦ÀíÓ²Å̵ķÖÇø¡££©
    2.3ÒâÍâ´íÎó¼Ç¼
´Ósolaris 7¿ªÊ¼£¬ÒâÍâ´íÎó¼Ç¼¶¼»áĬÈϵı»Ð´ÔÚswap·ÖÇøÖУ¬Õâ¾ÍÊÇΪʲôҪ°Ñswap·ÖÇøµÄ´óСÓëÄÚ´æµÄ´óСÁªÏµÆðÀ´µÄÔ­Òò¡£
ÔÚÏ´ÎÆô¶¯µÄʱºò£¬ÏµÍ³»á°ÑÎļþºÍÕªÒª´ÓswapÀï¶Á³öÀ´£¬²¢ÇÒдÈëµ½/var/crash/<hostname>ÖУ¬Òò´Ë£¬/var»òÕß/£¨Èç¹ûûÓе¥¶À»®·Ö/var·ÖÇøµÄÇé¿öÏ£©¾Í²»ÄÜ·ÖµÄ̫С¡£
Èç¹ûϵͳͻȻʹÓÃÁ˺ܶàµÄswap·ÖÇø£¨ÉÏGBµÄ£©£¬ÄÇôϵͳ½ø³Ì½«»áʹÓÃһЩʱ¼äÒòΪijЩ³ÌÐò»á±»Ê¹Ó᣾ßÌåµÄһЩ·½Ê½¿ÉÒÔÈ¥²ÎÕÕdumpadmÕâ¸öÃüÁî¡£
×¢Ò⣺¾­³£¼ì²é²¢ÇÒÇå³ý/var/crash/<hostname>ÖеÄÄÚÈÝ£¬·ñÔòÄã±ØÐëÓÐ×ã¹»µÄ¿Õ¼äÀ´´¢´æÕâЩÊý¾Ý¡£
    2.4ʾÀý
Èç¹ûÓÐһ̨sun E450µÄ·þÎñÆ÷£¬²¢ÇÒÓпÉÒÔÆô¶¯²Ù×÷ϵͳµÄÓ²ÅÌ£¬µ«ÊDz¢²»ÖªµÀÒÔϵÄÁ½¼þÊÂÇ飺
1¡¢        Ó²ÅÌ·ÅÔÚʲôλÖã¨ÒòΪ450ÓÐ20¸öÓ²Å̵IJå²Û£¬²¢ÇÒÈç¹ûÐèÒªÓ²ÅÌÆô¶¯£¬Ó²Å̱ØÐë²åÔÚµÚÒ»´Î°²×°Ê±ËùÔÚµÄÄǸö²Û룩¡£
2¡¢        rootÓû§µÄÃÜÂë¡£
ÄÇô¿ÉÒÔ°ÑÓ²Å̲åÔÚÒ»¸ö¿ÉÓõĵIJÛλÉÏ£¬¿ªÊ¼ÒÔϵIJ½Öè¡£
µÚÒ»²½£º½«Ò»ÕÅϵͳÅÌ·ÅÔÚ¹âÇýÖУ¬²¢ÇÒÔÚok״̬ÏÂÊäÈëboot cdrom ¨Cs£¬cdromµÄµØÖ·ÊÇϵͳĬÈϵģ¬Èç¹û²»ÄÜʹÓ㬿ÉÒÔÓÃprobe-scsi-allÀ´²é¿´cdromµÄʵ¼ÊµØÖ·£¬ÓÃboot ʵ¼ÊµØÖ· ¨CsÀ´Æô¶¯¡£
ϵͳÆô¶¯ºó£¬¿ÉÒÔ¿´µ½Ò»¸öÎÞÐèÃÜÂëµÄrootÓû§Ìáʾ·û¡£
µÚ¶þ²½£ºÈ»ºó¿ªÊ¼mountÓ²ÅÌ£¬Ê×ÏÈʹÓÃdevfsadmÃüÁ¿ÉÒÔÔÚ/dev/dskÐγÉÓ²Å̵ÄÐÅÏ¢¡£Ê¹ÓÃformat-disk-print-partitionÃüÁîÀ´¿´Õâ¿éÐÂÌí¼ÓµÄÓ²ÅÌ£¬Èç¹ûËüµÄµØÖ·ÊÇc2t1d0£¬ÄÇôc2t1d0s0¾ÍÊÇËüµÄroot·ÖÇø£¬Ê¹ÓÃfsck ¨Cy /dev/dsk/c2t1d0s0£¬mkdir /tmp/dsk£¬mount /dev/dsk/c2t1d0s0 /tmp/dsk£¬cd /tmp/dsk¡£
µÚÈý²½£ºÊ×ÏÈ£¬°ÑrootµÄÃÜÂëÉèÖÃΪ¿Õ£¬ÐèÒª½øÈëµ½/tmp/dsk/etc/shadowÎļþÖУ¬É¾³ýrootÓû§ºóµÄ×Ö·û¡£È»ºó£¬ÐÞ¸Ä/tmp/dsk/etc/vfstabÎļþ£¬½«/µÄÆô¶¯µØÖ·ÉèÖÃΪ/dev/dsk/c2t1d0s0£¬¸ù¾Ýʵ¼ÊÇé¿öµÄ²»Í¬£¬Ð޸ĵĵØÖ·Ò²ÊDz»Ò»ÑùµÄ¡£
µÚËIJ½£ºÈç¹ûÎÒÃÇÔÚ/tmp/dsk/etc/vfstabÖп´¼ûʵ¼ÊµÄ/µÄÆô¶¯µØÖ·¾ÍÊÇ/dev/dsk/c2t1d0s0£¬ÄÇô˵Ã÷±¾À´°²×°µÄʱºò¾ÍÔÚÕâ¸ö²Û룬µ«ÊÇÒ»°ãĬÈϵĵØÖ·ÊÇ/dev/dsk/c1t0d0s0£¬Èç¹ûÊÇÕâÑù£¬ÐèÒªÕÒµ½Êµ¼ÊµÄ¹Ò½Óµã£¬È»ºóдÈë¡£
µÚÎå²½£ºÖØÐÂÆô¶¯ÏµÍ³£¬okÌáʾ·ûÏÂÊäÈëboot Ó²Å̵ÄÎïÀíµØÖ·¡£
µÚÁù²½£º¿ÉÒÔÓÃnvalias mydisk Ó²Å̵ÄÎïÀíµØÖ·À´¸øеÄÆô¶¯ÅÌÆðÒ»¸ö±ðÃû£¬ÕâÑùÎÒÃÇ¿ÉÒÔÓÃboot mydisk»òÕßsetenv boot-device mydiskÈÃϵͳ×ÜÊÇ´ÓÕâ¿éÓ²ÅÌÆô¶¯¡£
    2.5¿ÉÒƶ¯É豸
    2.5.1 ¾í¹ÜÀíÆ÷
ËùÓеĿÉÒƶ¯É豸¶¼ÊÇÓɾí¹ÜÀíÆ÷À´¹ÜÀíµÄ£¬¾í¹ÜÀíÆ÷ĬÈϵĹâÇý¼ÓÔصãÊÇ/cdrom/cdrom0¡£SolarisϾí¹ÜÀíÆ÷ÊÇ×Ô¶¯Æô¶¯µÄ£¬Èç¹ûûÓÐÆô¶¯£¬¿ÉÒÔÓÃ
/etc/init.d/volmgt stop£¬/etc/init.d/volmgt start£¬À´ÊÖ¹¤Æô¶¯¡£
    2.5.2 ÈíÅÌÇý¶¯Æ÷
ÈíÅÌ£¨unixÎļþϵͳ¸ñʽ»¯»òÕßMS-dosÎļþϵͳ¸ñʽ»¯£©ÊÇÓë¾í¹ÜÀíÆ÷ÖеÄvolcheckÏà¹ØÁªµÄ£¬Ä¬ÈϵļÓÔصãÊÇ/floppy/floppy0£¬Èç¹û²»ÄÜ×Ô¶¯Í˳öÈíÅ̵Ļ°£¬¿ÉÒÔÓÃeject floppyÃüÁîÀ´ÊµÏÖ¡£
    2.5.3 ¹âÅÌÇý¶¯Æ÷
¹âÅ̲»ÐèÒªvolcheckÃüÁîÖ§³Ö£¬Í˳ö¹âÅÌ¿ÉÒÔÓÃeject cdromÀ´ÊµÏÖ¡£
Èç¹û¹âÅ̲»ÄÜ×Ô¶¯mount£¬»òÕß¾í¹ÜÀíÆ÷²»¿ÉÓ㬿ÉÒÔÓÃÒÔÏÂÃüÁîʵÏÖ£º
- mkdir /tmp/cdrom
- mount -F hsfs /dev/dsk/c0t6d0s0 /tmp/cdrom
- (Work with CD mounted on /tmp/cdrom)
- umount /tmp/cdrom
- eject /dev/dsk/c0t6d0s0
    2.5.4 ¿É²Áд¹âÅÌÇý¶¯Æ÷
ÔÚsolaris8Ï¿ÉÒÔʹÓÿɲÁд¹âÅÌ£¬ÕâÊÇsolaris 8ϵÄÒ»¸ö¹¤¾ß£¬¿ÉÒԿ̼isoµÄ¾µÏñ£¬¿ÉÒÔÓÃmkisofsÃüÁîÀ´½«solarisϵͳ×ö³É¾µÏñÎļþ¡£
Àý×Ó£º
#! /bin/sh
# ./nfscd <ARAMETER1> <ARAMETER2>
# PARAMETER1 = Application ID
# PARAMETER2 = from where
#
# ./nfscd SunNetManager /net/center2000/export/pkg/SUNWsnm
# set Umask
umask 022
# Remove old image
rm /data/disk.img
# Create image
mkisofs -A $1 -d -l -L -o /data/disk.img -P \"Sun Microsystems\" -p
\"Solaris SPARC\" -r -R -J -V \"$1\" -v $2
# Burn
cdrw -i /data/disk.img
£¨ÎÒûÓÐÊÔ¹ý£¬Èç¹ûÓг¢ÊԳɹ¦µÄÅóÓÑ¿ÉÒÔ¹²ÏíÒÔÏ£©
    2.5.5 USB´æ´¢É豸
ÏÖÔںܶàеÄÉ豸¶¼ÓÐUSBµÄ½Ó¿Ú£¬ËùÒԺܶàUSBµÄ´æ´¢É豸¿ÉÒÔÔÚsunµÄ»úÆ÷ÉÏʹÓá£Èç¹û¾í¹ÜÀíÈí¼þ¿ÉÒÔ×Ô¶¯¼ÓÔØ£¬ÎÒÃÇ¿ÉÒÔ½¨Á¢/rmdiskĿ¼£¬²¢ÇÒ°ÑȨÏÞ×öµÄºÍ/cdromĿ¼Ïàͬ£¬ÕâÑù¾Í¿ÉÒÔ×Ô¶¯¿´¼ûUSB´æ´¢ÀïµÄÎļþ£¬Èç¹û²»ÄÜ×Ô¶¯¼ÓÔØ£¬ÐèÒªÔÚ/dev/dskÖÐÈ¥²éÕÒ£¬²¢ÇÒÊÖ¶¯mount¡£
Àý×Ó£º
mkdir /tmp/usbstick
mount -F pcfs /dev/dsk/c1t0d0s2:c /tmp/usbstick
    2.5.6´Å´ø
´Å´øÉ豸²¢²»Ê¹Óþí¹ÜÀíÆ÷£¬¶ÔÓÚËüµÄʹÓÃÐèÒªÓÃһЩÃüÁÀýÈçtar»òÕßcpio¡£Í¨³£´Å´ø»ú½«»áÁ´½ÓÔÚÖ÷»úµÄSCSI×ÜÏßÉÏ£¬ÔÚϵͳÆô¶¯µÄʱºò»á×Ô¶¯¼ÓÔØ£¬Ò²¿ÉÒÔʹÓÃdevfsadmÃüÁîÀ´Ê¹´Å´ø»ú±»¼ÓÔØÉÏÀ´¡£¿ÉÒÔʹÓÃÃüÁîtar tvf /dev/rmt/0¶Ô´Å´ø»ú½øÐвÙ×÷¡£
    2.6¸´ÖÆÓ²ÅÌ
¿ÉÒÔÓÃÀàËÆ¿Ë¡µÄ·½·¨À´¸´ÖÆÓ²ÅÌ£¬µ«ÊDZØÐëÊÇÏàͬ½Ó¿ÚµÄ£¬ÀýÈçultra 10µÄÓ²Å̾Ͳ»¿ÉÒÔÓÃÔÚultra 60µÄ¹¤×÷Õ¾ÉÏ¡£Èç¹ûÓ²¼þ²»Í¬µÄ¼ÆËã»ú£¬ÀýÈçÓв»Í¬µÄÏÔ¿¨£¬Íø¿¨µÈÉ豸µÄ¼ÆËã»ú£¬¿ÉÒÔÔÚ¿ª»úʱʹÓÃboot ¨CrÃüÁîÀ´ÖØÐÂÈϳöеÄÉ豸¡£
    2.6.1¸´ÖÆÄÚÖÃÓ²ÅÌ
¶ÔÓÚͬÑù½Ó¿ÚµÄÓ²ÅÌ£¬Ä¿±êÅ̵ÄÈÝÁ¿Ò»¶¨Òª´óÓÚ»òµÈÓÚÔ´Å̵ĴóС¡£
·½·¨£º
1¡¢        ½«Ä¿±êÓ²Å̲åÈëÓ²Å̲å²Û£¬Ê¹ÓÃdevfsadmÈϳöеÄÓ²ÅÌ¡£
2¡¢        ʹÓÃdd if=/dev/rdsk/c0t0d0s2 of=/dev/dsk/c0t1d0s2 Bs=1024kÃüÁʼ¸´ÖÆ¡£
3¡¢        ¸´ÖÆÍê³ÉºóÓÃfsck ¨Cy /dev/dsk/c0t1d0s0¼ì²éÐÂÓ²Å̵ÄÎļþϵͳ¡£
4¡¢        È¡³öÄ¿±êÓ²ÅÌ£¬·ÅÈëδ°²×°ÏµÍ³µÄ¼ÆËã»úºóÆô¶¯¡£
×¢Ò⣺¶ÔÓÚʹÓùâÏËÓ²Å̵ĻúÆ÷£¬ÐèҪʹÓÿÉÒÔÆô¶¯µÄ¹âÅÌÀ´Æô¶¯ºó½«Ô´Å̼ÓÔØ£¬²¢ÇÒÔÚ¸´ÖÆÍê³ÉºóÐèÒª½«/etc/path_to_instÎļþÐÞ¸ÄΪ/etc/path_to_inst.old£¬ÔÚеļÆËã»úÉÏʹÓÃboot ¨CarÀ´ÖØн¨Á¢ÏµÍ³ÐÅÏ¢¡££¨¹âÏËÓ²Å̵ÄddÎÒûÓÐ×ö³É¹¦¹ý£¬Èç¹ûÄÄλÓгɹ¦µÄ¾­ÑéÒ²¿ÉÒÔ¹²Ïí£©
    2.7ʹÓÃSDSÈí¼þ½«ÏµÍ³Ó²Å̾µÏñ
SDSÈí¼þÊÇsun×Ô¼ºµÄÈí¼þraid¹¤¾ß£¬Ö§³Öraid 0£¬1£¬5£¬0+1µÈ¶àÖÖraid·½Ê½¡£
¾µÏñ¾ÍÊǽ«Á½¿éÓ²ÅÌ×ö³ÉһģһÑùµÄÎļþºÍϵͳ£¬²¢ÇÒÏ໥ÈßÓ࣬ÔÚÒ»¿éÓ²ÅÌËð»µÊ±¿ÉÒÔʹÓÃÁíÒ»¿éÓ²ÅÌ£¬ÊÇÒ»ÖÖ±£»¤Êý¾Ý°²È«µÄ·½Ê½¡£
·½·¨£º
1¡¢        ·ÖÇø£¬¿ÉÒÔÓÃformatÃüÁÁ½¸öÅ̵ķÖÇø×ö³ÉÒ»Ñù£¬Ò²¿ÉÒÔʹÓÃÃüÁµ«ÊÇÐèÒªÁ½¿éͬÑùµÄÓ²ÅÌ£¬ÃüÁprtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
2¡¢        ½¨Á¢raidÊý¾Ý¿â£¬ metadb -a -f -c 3 c0t0d0s3 c0t1d0s3
3¡¢        ¶ÔÁ½¿éÓ²Å̽øÐвÙ×÷£º²½Ö裺metainit ¨Cf d1 1 1 c0t0d0s0
metainit d2 1 1 c0t1d0s0
metainit d0 ¨Cm d1
metaroot d0
lockfs ¨Cfa
reboot
£¨Èç¹ûÐèÒª¸øÆäËûµÄ·ÖÇø×ö¾µÏñ£¬Ò²¿ÉÒÔ²ÎÕÕÒÔÉÏÃüÁ¿ÉÄÜÂÔÓв»Í¬£¬Êµ¼ÊÇé¿öʵ¼Ê²Ù×÷¡££©
3¡¢        ½»»»·ÖÇø
3.1ÔÚvfstabÎļþÖÐÓÀ¾ÃÐÞ¸Ä
´ó¼Ò¿ÉÒÔ¿´¼û£¬ÔÚ/etc/vfstabÎļþÖУ¬¹ØÓÚswapµÄд·¨ÊÇÕâÑùµÄ£º
/dev/dsk/c0t0d0s1 - - swap - no ¨C
Èç¹ûÐèÒªÌí¼Ó£¬¿ÉÒÔ°´ÕÕÕâ¸ö·½Ê½Ìí¼Ó·ÖÇø¾Í¿ÉÒÔ£¬»òÕßÓÃmkfileµÈ°ì·¨£¬¹ØÓÚÕâ¸ö·½·¨ÔÚSA-288µÄ½Ì²ÄÖÐÓкÜÏêϸµÄ½éÉÜ£¬ÕâÀï¾Í²»¶à˵ÁË¡£
    3.2ÁÙʱÌí¼Óswap·ÖÇø
ʾÀý£º
# mkfile 100m /export/home/swapfile
# swap ¨Ca /export/home/swapfile
# swap ¨Cl
4¡¢        ϵͳµÄ°²×°ºÍά»¤
4.1´Ó¹âÅÌ°²×°
ÔÚ°²×°¹ý³ÌÖУ¬¿ÉÒÔ¸ù¾ÝÏÔʾÆ÷ÉϵÄÌáʾһ²½²½µÄ½øÐа²×°£¬Ò²¿ÉÄÜ»áÓÐһЩȱÏÝ·¢Éú£º
¨D¨DÃû³Æ·þÎñ£ºÑ¡Ôñnone£¬Èç¹ûÄãÑ¡ÔñÁËÀýÈçNISÕâÑùµÄ·þÎñ¶øNISÍøÂç·þÎñÆ÷²¢²»¿ÉÓã¬ÏµÍ³¾Í»áµ±ÔÚÕâÀ²¢ÇÒ¿ªÊ¼Ñ°ÕÒNIS·þÎñÆ÷¡£¸üºÃµÄ·½·¨ÊÇ°²×°Íê³ÉÒÔºóÔÙÈ¥ÉèÖÃÕâЩ¶«Î÷£¬ÀýÈçNIS»òÕßDNS¡£
¨D¨D°²×°cluster£ºÈç¹ûÊǹ¤×÷Õ¾£¬Ó¦¸ÃÑ¡Ôñ¡°Entire Plus OEM Software¡±Õâ¸ö°²×°Ä£Ê½£¬ÒòΪclusterµÄ°²×°ÐèҪһЩ×é¼þµÄÖ§³Ö¡£
¨D¨DÓ²ÅÌ·ÖÇø£ºÓÉÓÚ²»Í¬µÄÐèÇó»áÓв»Í¬µÄ°²×°·½Ê½£¬ËùÒÔÔÚ´ÅÅÌ·ÖÇøµÄʱºò²»ÒªÑ¡Ôñdefault£¬¶øÓ¦¸ÃÑ¡Ôñcustom¡£
×¢Ò⣺solaris 8ÒÔºóµÄϵͳÖУ¬°²×°Íê³ÉºórootÓû§Ö»ÄÜÔÚ¿ØÖÆÖÕ¶ËÉϵǽ£¬Èç¹ûÐèҪʹÓÃtelnet»òÕßrshµÄ·½Ê½À´µÇ½µÄ»°£¬ÇëÐÞ¸Ä/etc/default/loginÖеÄCONSOLE=/dev/console£¬°ÑÕâ´®×Ö·û×¢Ê͵ô¾Í¿ÉÒÔ¡£
    4.2Èí¼þ°üµÄ°²×°
ͨ³£Çé¿öÏ£¬ËùÓеÄÈí¼þ°ü¶¼»á±»Ê¹ÓÃtar£¬zcat£¬zipµÈ·½Ê½À´´ò°ü£¬ËùÒÔÐèÒªÏÈ°ÑÈí¼þ°ü´ò¿ªÖ®ºóʹÓÃpakaddÃüÁî°²×°£¬»òÕßÓÃpkginfo²é¿´¡£
ʾÀý£º
pkgadd ¨Cd .
pkginfo | grep ***
    4.3ϵͳ²¹¶¡µÄ°²×°
ϵͳµÄ²¹¶¡ÊÇsun¹«Ë¾ÎªÁËÐÞÕýϵͳÄÚµÄһЩbug»òÕßÔö¼ÓһЩϵͳµÄ¹¦ÄܶøרÃÅ·¢ÐеÄһЩÈí¼þ°ü£¬ÔÚsolaris 8ÒÔÇ°£¬ËùÓеİü¶¼ÊÇ*.tar.Z¸ñʽµÄ£¬¶ø´Ósolaris 8¿ªÊ¼£¬ËùÓеİü¶¼ÊÇ*.zip¸ñʽµÄ£¬ËùÓеÄpatch¶¼ÊÇÒÔÒ»¸ö8λÊýµÄ¼¯ºÏ´æÔڵģ¬ÀýÈç123456-78£¬Ç°ÃæµÄ6λ´ú±ípatchµÄºÅÂ룬¶øºóÃæµÄÁ½Î»´ú±íÆä°æ±¾ºÅ£¬¿ÉÒÔÓÃÒÔÏÂÃüÁî´ò¿ª£º
zcat 123456-78.tar.Z | tar xvf -
unzip 123456-78.zip
È»ºó£¬½øÈëpatchIDµÄĿ¼£¬Ê¹ÓÃpatchadd°²×°£¬patchrmɾ³ý¡£°²×°ºóµÄ¼Ç¼¶¼´æÔÚÓÚ/var/sadm/patchµÄÏÂÃ棬Ҳ¿ÉÒÔʹÓÃshowrev -p | grep <patch number>ÃüÁîÀ´²é¿´ÊÇ·ñpatchÒѾ­°²×°¡£
5¡¢X-ServerºÍCDEÓû§Ê¹ÓýçÃæ
   5.1×ÛºÏÉèÖÃ
¹ØÓÚX-ServerºÍCDEÓû§Ê¹ÓýçÃæµÄÉèÖÃÎļþ×ÜÊÇ´æÔÚÓÚÏÂÃæ3¸öÎļþÖУ¬²éÕÒ˳ÐòΪ£º
1. $HOME/.dt/...
2. /etc/dt/...
3. /usr/dt/...
ϵͳ¿í¶ÈµÄÎļþÊDz»¿ÉÐ޸ĵģ¬´æÔÚÓÚ/usr/dt/£¬¶ø/etc/dt/ÏÂÃæµÄÎļþÊÇΪÁËά³Öϵͳ²»³öÏÖÎÊÌâµÄ£¬¶øÓû§¸öÈ˵ÄÉèÖÃÎļþ×ÜÊÇ´æÔÚ$HOME/.dt/ÏÂÃæ¡£
   5.2¶¨ÖƵǽ½çÃæ
¿ÉÒÔͨ¹ýÐÞ¸Ä<DT>/config/$LANG/XresourcesÎļþÀ´¶¨ÖÆÓû§µÇ½½çÃæ
ÏóËغͷֱæÂÊÐèÒªÐÞ¸ÄDtlogin*logo*bitmapFile: /usr/local/lib/X11/dt/bitmaps/Mylogo.bm
±êÌâÏÔʾÐ޸ĿÉÒÔͨ¹ýDtlogin*greeting*labelString: Here\'s %LocalHost%!
¶ø»¶Ó­Óï¿ÉÒÔÐÞ¸ÄDtlogin*greeting*persLabelString: Hello %s
   5.3Ë«ÆÁÏÔʾ£¬Ë«ÆÁÁ¬½ÓºÍ24λÉîÉ«µÄÉèÖÃ
Ê×ÏÈ£¬¼ÙÉèÓÐÁ½¿éExpert3DµÄÏÔ¿¨£¬ÄÇôÔÚ/dev/fbsϾͿÉÒÔ¿´µ½/dev/fbs/ifb0ºÍ/dev/fbs/ifb1ÕâÁ½¸öÎļþ£¬¶ø½«XserversÎļþ´Ó/usr/dt/config¿½±´µ½/etc/dt/configÏ£¬È»ºó²é¿´£¬½«¿ÉÒÔ¿´µ½ÒÔÏÂÄÚÈÝ£¬:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner
     5.3.1Ë«ÆÁÏÔʾ
Ë«ÆÁÏÔʾ¾ÍÊÇ˵CDE×ÀÃ潫»á³öÏÖÔÚÿһ¸öÇ°¶ËµÄÏÔʾÆ÷ÉÏ£¬Êó±êµÄÖ¸ÕëÒ²¿ÉÒÔÔÚÁ½¸öÇ°¶ËʹÓã¬ÔÚifb0ÉÏÏÔʾµÄÏÔʾÉ豸½Ð:0.0£¬¶øifb1ÉϵÄÉ豸Ôò½Ð:0.1¡£
Ö»ÒªÐÞ¸ÄXserversÎļþ£¬½«×îºóÒ»ÐиÄΪ
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ifb0 -dev /dev/fbs/ifb1 ¨Cnobanner¾Í¿ÉÒÔʵÏÖÁË
     5.3.2Á¬ÆÁÏÔʾ
Á¬ÆÁÏÔʾÊÇÒ»ÖÖ½«ÐéÄâÏÔʾ¸²¸ÇÔÚËùÓеÄÎïÀíÉ豸Éϵķ½Ê½¡£Êó±êºÍ´°¿Ú½«¿ÉÒÔÔÚËùÓеÄÏÔʾÆ÷ÖÐÒƶ¯£¬µ«ÊÇÖ»ÓÐÒ»¸öÇ°¶ËµÄÏÔʾ£¬½«»áÖ»ÓÐÒ»¸öÏÔʾÆ÷¶Ë¿ÚºÅ:0.0¡£Á¬ÆÁÏÔʾֻÄÜÖ§³ÖÁ½¿éͬÑùµÄÏÔ¿¨£¬Í¬ÑùÊÇÐÞ¸ÄÎļþ£º
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 +xinerama -dev /dev/fbs/ifb0 -dev /dev/fbs/ifb1 ¨Cnobanner
Á¬ÆÁͬÑù¿ÉÒÔ¶¨ÒåÓÚ½»µüÓÚxÖáºÍyÖᣬ¿ÉÒÔ»ºÂýµÄ»ìºÍ½»µü»òÕß½«Ë«ÃæµÄͼƬÏÔʾÔÚÁ½¸öÏÔʾÆ÷ÉÏ£¬Ð޸ķ½Ê½£º
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 +xinerama -xoverlap -dev /dev/fbs/ifb0 -dev /dev/fbs/ifb1 ¨Cnobanner
     5.3.3 24λɫÉîµÄÉèÖÃ
CDEĬÈ϶¼ÊÇʹÓÃ8λɫÉ256É«£©µÄ£¬Èç¹ûÏëÐ޸ģ¬PGXµÄÏÔ¿¨¿ÉÒÔʹÓÃÃüÁîfbconfig -depth 24À´ÊµÏÖ£¬µ«ÊÇÓеÄÏÔ¿¨²»Ö§³ÖÕâÑùµÄÃüÁËùÒÔÐèÒª½«ÎļþÐ޸ijÉΪ£º
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -dev /dev/fbs/ifb0 defdepth 24 -dev /dev/fbs/ifb1 defdepth 24 ¨Cnobanner
6¡¢ÏµÍ³¹ÜÀí
   6.1Ö÷»úÃû
¿ÉÒÔʹÓÃadmintool»òÕßsmcÀ´½¨Á¢Ö÷»úÃû£¬µ«ÊÇÒ²¿ÉÒÔͨ¹ýÐÞ¸Ä/etc/hosts£¬/etc/hostname.interface£¬/etc/nodenameÎļþÀ´ÐÞ¸ÄÖ÷»úÃû£¬£¨/etc/hostsÎļþÊÇÁ´½ÓÔÚ/etc/inet/hostsÎļþÉϵģ©£¬ÏµÍ³Ä¬ÈÏ°²×°Ê±»áÆô¶¯sendmail-daemon£¬Õâ¸ö»áʹÄãµÄϵͳÔÚ¿ª»úʱ±¨´í£¬Èç¹û²»Ïëϵͳ³öÏÖÌáʾÐÅÏ¢£¬¿ÉÒÔ½«/etc/inet/hostsÎļþÖйØÓÚÖ÷»úÃûµÄÄÇÒ»ÐÐÐÞ¸ÄΪ£º192.168.0.2 myhost myhost.domain.com loghost
6.2´®¿ÚÁ¬½Ó
ÔÚsolaris 8ÏÂ×îºÃʹÓÃadmintool»òÕßsolaris 9ÏÂʹÓÃsmc¡£
   6.3´òÓ¡»ú
ÔÚsolaris 8ÏÂ×îºÃʹÓÃadmintool¶øÔÚsolaris 9ÏÂʹÓÃ\"rinter Setup Wizard\"/usr/sadm/admin/bin/printmgr.
   6.4Óû§½¨Á¢
ÔÚsolaris 8ÏÂ×îºÃʹÓÃadmintool»òÕßsolaris 9ÏÂʹÓÃsmc£¬µ«ÊÇÓû§Ä¿Â¼²»¿ÉÒÔʹÓÃ/home/xxx£¬Ö»ÄÜʹÓÃ/export/home/xxx£¬ºÜ¶àʹÓÃÆäËü²Ù×÷ϵͳµÄÈË×ÜÊÇÏ°¹ß½«Óû§Ä¿Â¼½¨Á¢ÔÚ/homeÏ£¬µ«ÊÇsolarisÏÂ/homeĿ¼ÊôÓÚautofs¹ÜÀí£¬Èç¹û¹Ø±Õautofs£¬¿ÉÄÜ»áÔì³ÉijЩ²»±ØÒªµÄÂé·³¡£
7¡¢ÍøÂçÁ¬½Ó
   7.1 /etc-files
ÔÚsolaris²Ù×÷ϵͳÏ£¬°ÑÍøÂçÅäÖÃÎļþ·ÅÔÚ/etcĿ¼Ï£¬ËùÓеĹØÓÚIPµØÖ·¡¢Íø¹Ø»òÕßÆäËü²ÎÊýµÄÐ޸Ķ¼»áÔÚÖØÆôºó¸´Ô­£¬Òò´ËÖ»ÄÜͨ¹ýÐÞ¸Ä/etcϵÄÎļþÀ´Ð޸ĹØÓÚÍøÂçµÄ²ÎÊý¡£ÕâЩÎļþÊÇ£º
- /etc/nodename
- /etc/hostname.<interface-name>
- /etc/inet/hosts
-/etc/net/{ticlts,ticots,ticotsord}/hosts
/etc/nodenameÎļþÊÇÈ·¶¨ÏµÍ³µÄÖ÷»úÃûµÄÎļþÖ®Ò»£¬µ«ÊÇÎÒÃÇÒÀÈ»ÐèÒªÐÞ¸Ä/etc/hostname.<interface-name>ºÍ/etc/inet/hostsÎļþ£¬/etc/inet/hostsÎļþÊǽ«Ö÷»úÃûºÍIPµØÖ·°ó¶¨ÔÚÒ»Æðͨ¹ýϵͳ¹ã²¥£¬½«Ö÷»úÃû¹ã²¥³öÈ¥¡£/etc/hostname.<interface-name>ÖеÄinterface-nameÒ²Óв»Í¬£¬Í¨³£µÄÇé¿öÈçÏ£º
le        ±È½ÏÔçµÄsparcµÄϵͳÖдæÔÚ
hme      ¸ßËÙµÄÍø¿¨½Ó¿ÚÔÚUltrasparcϵͳÖÐ
eri       ¸ßËÙµÄÍø¿¨½Ó¿ÚÔÚsparcIIIϵͳÖÐ
qfe       ¸ßËÙµÄÍø¿¨½Ó¿ÚÔÚQuadFastEthernetÍø¿¨ÉÏ
ge        Ç§Õ׵ĹâÏËÍø¿¨½Ó¿Ú
ÁíÍ⣬×ÓÍøÑÚÂëµÄÐÞ¸ÄÊÇÔÚ/etc/netmasksÎļþÖС£
   7.2 ifconfig
ifconfigÃüÁîÊDz鿴ºÍÐÞ¸ÄÍøÂçIPµÄÃüÁî
ʾÀý£º
ifconfig ¨Ca
ifconfig hme0 down
ifconfig hme0 192.168.0.3 netmask 255.255.255.0
ifconfig hme0 up
ifconfig qfe0 plumb
ifconfig qfe0 unplumb
   7.3·ÓÉ
·ÓÉÆ÷µÄIPµØÖ·´æÔÚÓÚ/etc/defaultrouterÎļþÖУ¬Ò²¿ÉÒÔÃüÁîµÄ·½Ê½Ð޸ģº
ɾ³ýËùÓзÓÉ£ºrouter flush
Ìí¼ÓÒ»¸ö·ÓɵØÖ·£ºrouter add xxx.xxx.xxx.xxx
¿ÉÒÔÓÃnetstat ¨CrnÀ´²é¿´Â·ÓÉÊÇ·ñ³É¹¦¡£
   7.4 NIS¿Í»§¶Ë
1.ÏȽ«NISÓòдÈë/etc/defaultdomain
2.½«NIS·þÎñÆ÷ÃûºÍIPдÈë/etc/inet/hosts
3.ʹÓÃypinit ¨CcÃüÁ²¢½«¿Í»§¶ËÖ÷»úÃûдÈëNIS·þÎñÆ÷
4.¿Í»§¶ËʹÓÃ/usr/lib/netsvc/yp/ypstartÃüÁî»òÕßÖØÆô¿Í»§¶Ë
   7.5 DNS¿Í»§¶Ë
1.½«DNS·þÎñÆ÷µÄIPµØַдÈë/etc/resolv.confÎļþ£¬¸ñʽ£ºnameserver   xxx.xxx.xxx.xxx
2.ÐÞ¸Ä/etc/nsswitch.confÎļþ£¬½«hosts: filesºó¼ÓÉÏdns
   7.6 DHCP¿Í»§¶Ë
ÍøÂç½Ó¿ÚʹÓÃDHCPÐèÒªÔÚ/etcϽ¨Á¢/etc/hostname.<interface>ºÍ/etc/dhcp.<interface>ÕâÁ½¸öÎļþ¡£
ÁÙʱÐÞ¸ÄÖ»ÐèҪʹÓÃÃüÁ
ifconfig qfe0 plumb
ifconfig qfe0 dhcp start
   7.7 sys-unconfig
Èç¹ûÏëÐÞ¸ÄÍøÂçÅäÖ㬵«ÊÇÓÖ²»ÄÜÈ·¶¨ÐÞ¸ÄÄÄЩÎļþ£¬ÓÐÒ»¸öºÜ¼òµ¥µÄ°ì·¨£ºsys-unconfigÃüÁÖØÆôÖ®ºó£¬¾Í¿ÉÒÔÉèÖÃIP£¬×ÓÍøÑÚÂ룬·ÓɵȵÈÅäÖÃÁË¡£
   7.8 10Õ׺ͰÙÕ×£¬È«Ë«¹¤ºÍ°ëË«¹¤
¿ÉÒÔʹÓÃnddÃüÁîÀ´ÐÞ¸ÄÍø¿¨¹¤×÷ģʽ£¬Ê¾Àý£º
- ndd /dev/eri link_status: 0 = down, 1 = up
- ndd /dev/eri link_speed: 0 = 10 Mbit, 1 = 100 Mbit
- ndd /dev/eri link_mode: 0 = half-duplex, 1 = full-duplex
8¡¢ÌáʾÊÕ¼¯
   8.1Ìáʾ
1.ps ¨Cef|grep <search text>¿ÉÒÔÕÒµ½ËùÐèÒªµÄ½ø³ÌID£¬¿ÉÒÔÓÃkill -9 PIDÀ´É±ËÀ½ø³Ì¡£
2.Èç¹û²»Ï°¹ßʹÓÃVI£¬¿ÉÒÔ³¢ÊÔʹÓÃCDEµÄ±à¼­¹¤¾ßdtpad¡£
   8.2·ÖÎöÓ²¼þ¹ÜÀí
       8.2.1 prtdiag
./usr/platform/<uname ¨Ci>/sbin/prtdig ¨Cv¿ÉÒÔ¿´µ½cpu£¬Äڴ棬À©Õ¹¿¨ºÍÆäËüÓ²¼þµÄÐÅÏ¢¡£
       8.2.2 prtconf / path_to_inst
prtconf¿ÉÒÔÏÔʾ·Ö²ãĿ¼Ӳ¼þÊ÷ÐÅÏ¢£¬Ó²¼þµØÖ·ºÍÂß¼­µØÖ·µÄÐÅÏ¢´æÔÚÓÚ/etc/path_to_instÎļþÖУ¬Õâ¸öÎļþ½«»áÔÚboot ¨Cr»òÕßdevfsadmºóÖؽ¨¡£
       8.2.3 Sun Explorer Èí¼þ
Õâ¸öÈí¼þ¿ÉÒÔÔÚhttp://sunsolve.Sun.COM/pub-cgi/ ... òËùÐγɵÄÎļþΪ׼¡£
   8.3·ÖÎöÔËÐÐʱ¼äÊý¾Ý
       8.3.1 time / ptime
timeºÍptimeÊÇÖ´ÐÐÃüÁ²¢ÔÚÖ´ÐÐÍêºóÏÔʾÆäÔËÐеÄʱ¼ä
       8.3.3 vmstat / mpstat
vmstat ÊǼàÊÓCPUºÍÄÚ´æµÄÃüÁmpstat ¿ÉÒÔ¼àÊÓ¶à¸öCPU״̬
       8.3.4 iostat
iostat ÊǼàÊÓ´ÅÅÌ״̬µÄÃüÁî
       8.3.6 32λ»òÕß64λ
isainfo ¨Ckv¿ÉÒÔÏÔʾϵͳºËÐÄÊÇ32λ»òÕß64룬´Ósparc II¿ªÊ¼£¬ËùÓеÄϵͳ¶¼ÊÇ×Ô¶¯Ê¹ÓÃ64λµÄºËÐÄÁË£¬¿ÉÒÔÔÚOK״̬ÓÃboot kernel/unixÌæ´úboot kernel/sparcv9/unixʹÓÃ32λºËÐÄ£¬µ«ÊÇ´Ósparc III¿ªÊ¼£¬¾ÍÖ»ÓÐ64λµÄºËÐÄ¿ÉÒÔÓÃÁË¡£
   8.4µ÷ÊÔ¹¤¾ß
      8.4.1truss
truss <command>¿ÉÒÔÏÔʾÃüÁîÖ´ÐÐʱËùµ÷ÓõÄϵͳµÄ½ø³Ì£¬¿ÉÒÔÓÃÕâ¸öÃüÁîÀ´²âÊÔijЩÃüÁî³ö´íµÄµØ·½¡£
      8.4.2 pstack, pmapºÍÆäËü
pstack <ID>  ÏÔʾ×îºóÒ»¸ö½ø³ÌËùµ÷Óõĺ¯Êý¡£
pldd <ID>    ÏÔʾËùÓй²ÏíµÄ¿â
pmap -x <ID> ÏÔʾÄÚ´æʹÓõĽø³ÌËüµÄÄ£¿é¡£
      8.4.3 snoop
snoopÃüÁî¿ÉÒÔÏÔʾËùÓдÓÒ»¸öÍøÂç½Ó¿ÚËù·¢³öµÄ°ü
9¡¢ÍøÂç×ÊÔ´
   9.1ÍøÂç×ÊÔ´
www.sun.com              sun¹«Ë¾µÄ¹Ù·½ÍøÕ¾
docs.sun..com              sun¹«Ë¾µÄËùÓÐÔÚÏß²úÆ·µÄÎĵµÏÂÔØÍøÕ¾
sunsolve.sun.com           ¼¼ÊõÉϵÄÎÊ´ð£¬sunµÄ²úÆ·Ïêϸ½éÉÜ£¬patchÏÂÔØ
www.sunfreeware.com       solarisϵÄÃâ·Ñ¹¤¾ß£¬È«ÓɵÚÈý·½¿ª·¢

ÂÛ̳»ÕÕÂ:
0
2Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-15 20:03 |Ö»¿´¸Ã×÷Õß
:rose:  ºÃ¶«¶«Å¶£¬ÐÁ¿àGGÀ²£¬ºÇºÇ£¬Ö§³ÖÒ»ÏÂ

ÂÛ̳»ÕÕÂ:
0
3Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-16 11:14 |Ö»¿´¸Ã×÷Õß

ºÇºÇ ÎʸöСÎÊÌâ

$ sar
sar: can\'t open /var/adm/sa/sa16
No such file or directory

sar Ϊʲô²»ÄÜʹÓã¿:rose:

ÂÛ̳»ÕÕÂ:
0
4Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-16 11:40 |Ö»¿´¸Ã×÷Õß
root ÊÇ su root µÄ£¬Ò²²»¿ÉÒÔ

Õâ¸öÒѾ­È¡Ïû×¢ÊÍ£¬ CONSOLE=/dev/console
Ϊʲô»¹²»ÄÜtelnet ?
ÄѵÀÒªÖØÐÂÆô¶¯£¿

ÂÛ̳»ÕÕÂ:
0
5Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-16 12:24 |Ö»¿´¸Ã×÷Õß
1. edit /etc/rc2.d/S21perf,½«³ÌÐòÖеÄ#ºÅÈ¥µô£¬²»Òª°Ñ¸Ã×¢Ê͵ôµÄµØ·½µÄ#ºÅÈ¥µô¡£
2./etc/rc2.d/S21perf
È»ºó¾Í¿ÉÒÔÓÃsarÁË¡£
»òÕßman sarһϣ¬¿´Ò»Ï²ÎÊý£¬Æ©Èçsar -b sar -uÖ®ÀàµÄÒ²¿ÉÒÔ
CONSOLE=/dev/consoleÊÇҪעÊÍÁ˲ſÉÒÔtelnetµÄ

ÂÛ̳»ÕÕÂ:
0
6Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-21 19:35 |Ö»¿´¸Ã×÷Õß
ûÓмÆËã»ú»ù´¡µÄÈ˿ɲ»¿ÉÒÔѧϰÕâ¸ö¶«¶« ÄØ
Òª²¹ÄÇЩ·½ÃæµÄ»ù´¡ÖªÊ¶ÄØ

ÂÛ̳»ÕÕÂ:
0
7Â¥ [±¨¸æ]
·¢±íÓÚ 2005-06-22 13:03 |Ö»¿´¸Ã×÷Õß
×î³õÓÉ liuxingyh ·¢²¼
[B]ûÓмÆËã»ú»ù´¡µÄÈ˿ɲ»¿ÉÒÔѧϰÕâ¸ö¶«¶« ÄØ
Òª²¹ÄÇЩ·½ÃæµÄ»ù´¡ÖªÊ¶ÄØ [/B]

ÐèÒªÄÍÐĺÍÐÅÐÄ£¬Ö»ÒªÄãŬÁ¦£¬Ò»¶¨»á³É¹¦µÄ£¬Ë­Ò²²»ÊÇÌìÉú¾Í»áÕâЩ¶«Î÷£¬²»ÊÇÂð£¿

ÂÛ̳»ÕÕÂ:
0
8Â¥ [±¨¸æ]
·¢±íÓÚ 2005-11-03 09:44 |Ö»¿´¸Ã×÷Õß
×òÌìÔÚÐéÄâ»úÉÏ×°ÁËSOLARIS10£¬µ«ÄÔ´üһƬ¿Õ°×£¬µ½´¦ÕÒ×ÊÁÏÀ´¿´£¬½ñÌì¿´µ½ÕâƪºÃÎÄÕ£¬Ð»Ð»Â¥Ö÷ÁË

ÂÛ̳»ÕÕÂ:
0
9Â¥ [±¨¸æ]
·¢±íÓÚ 2006-03-09 22:37 |Ö»¿´¸Ã×÷Õß
ΪʲôÎÒÔËÐÐbanner,ÏÔʾ£ºusage:banner \"up to 10 char arg string

ÂÛ̳»ÕÕÂ:
0
10Â¥ [±¨¸æ]
·¢±íÓÚ 2007-06-02 19:53 |Ö»¿´¸Ã×÷Õß
ÓÐûÓпÉÒÔÄ£ÄâSUN »úÆ÷µÄÐéÄâ»ú£¿
ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á

±¾°æ»ý·Ö¹æÔò ·¢±í»Ø¸´

  

±±¾©Ê¢ÍØÓÅѶÐÅÏ¢¼¼ÊõÓÐÏÞ¹«Ë¾. °æȨËùÓÐ ¾©ICP±¸16024965ºÅ-6 ±±¾©Êй«°²¾Öº£µí·Ö¾ÖÍø¼àÖÐÐı¸°¸±àºÅ£º11010802020122 niuxiaotong@pcpop.com 17352615567
δ³ÉÄê¾Ù±¨×¨Çø
Öйú»¥ÁªÍøЭ»á»áÔ±  ÁªÏµÎÒÃÇ£ºhuangweiwei@itpub.net
¸ÐлËùÓйØÐĺÍÖ§³Ö¹ýChinaUnixµÄÅóÓÑÃÇ ×ªÔر¾Õ¾ÄÚÈÝÇë×¢Ã÷Ô­×÷ÕßÃû¼°³ö´¦

Çå³ý Cookies - ChinaUnix - Archiver - WAP - TOP