|
 |
À¸Ä¿µ¼À¸ |
|
| |
|
|
|
|
 |
×ÊÁÏËÑË÷ |
|
| |
|
|
|
|
 |
ÈÈÃÅÎÄÕÂ |
|
| |
|
|
|
|
 |
×îÐÂÎÄÕ |
|
| |
|
|
|
| |
| |
|
|
|
[ ×÷Õß: LinuxÁªÃËÊÕ¼¯ ¼ÓÈëʱ¼ä:2006-06-14 01:33:27 À´×Ô:LinuxÁªÃËÊÕ¼¯
] | |
|
£8GFLinuxÁªÃË 2¡¢ÇëÎÊÈçºÎÔÙsolarisÉÏÉèÖÃdns£¿8GFLinuxÁªÃË 3¡¢Èç¹ûÏëÔÙsolarisÉϽ«¹Ì¶¨ip·½Ê½¸ÄΪ×Ô¶¯»ñÈ¡ipµÄdhcp·½Ê½£¬ÐèÒªÐÞ¸ÄÄÄ8GFLinuxÁªÃË Ð©Îļþ£¿¶øÈç¹û½«¹¤×÷Õ¾ÉèΪdhcp·þÎñÆ÷£¬ÓÖÈçºÎÉèÖã¿×îºÃÊÇÄÜ·¢Ò»·Ý8GFLinuxÁªÃË solarisÕâ·½ÃæµÄÅäÖÃ×ÊÁÏ£¬Ð»Ð»8GFLinuxÁªÃË A: 1. ɾµô²»ÏëÒªµÄ´°¿Ú£¬Ñ¡Ôñ exit Í˳ö×ÀÃæ»·¾³£¬ÏµÍ³ÌáʾÊÇ·ñ±£´æµ±Ç°×À8GFLinuxÁªÃË Ãæ£¬»Ø´ðÊÇ¡£.8GFLinuxÁªÃË 2. Êֱ߸պÃÓÐÒ»±¾½Ì³Ì£¬Çë²ÎÕÕ½øÐÐÅäÖÃ.8GFLinuxÁªÃË dnsconfig8GFLinuxÁªÃË 3. You can create a empty file dhcp.hme0 in /etc directory. If you 8GFLinuxÁªÃË don't want to reboot your machine, run the command:8GFLinuxÁªÃË # ifconfig hme0 dhcp start8GFLinuxÁªÃË 8GFLinuxÁªÃË 124 Q: ÎÒÃÇÓÃһ̨Netra T1£¬²Ù×÷ϵͳΪsolaris7£¬ÔËÐÐÒ»¸öÓ¦ÓóÌÐò¡£8GFLinuxÁªÃË ÓÃdf -k /tmp²é¿´swap¿Õ¼ä£¬·¢ÏÖÒ»Ð©Ææ¹ÖµÄÏÖÏó£º8GFLinuxÁªÃË Ó¦ÓóÌÐòÆô¶¯Ê±£º8GFLinuxÁªÃË Îļþϵͳ ǧ×Ö½Ú ÓÃÁË ¿ÉÓà ÈÝÁ¿ ¹Ò½ÓÔÚ8GFLinuxÁªÃË swap 1158400 8 1156392 1% /tmp8GFLinuxÁªÃË ÔËÐÐ1Сʱºó£º8GFLinuxÁªÃË Îļþϵͳ ǧ×Ö½Ú ÓÃÁË ¿ÉÓà ÈÝÁ¿ ¹Ò½ÓÔÚ8GFLinuxÁªÃË swap 1158392 8 1158384 1% /tmp8GFLinuxÁªÃË ÔÙ¹ýÒ»¶Îʱ¼ä£º8GFLinuxÁªÃË Îļþϵͳ ǧ×Ö½Ú ÓÃÁË ¿ÉÓà ÈÝÁ¿ ¹Ò½ÓÔÚ8GFLinuxÁªÃË swap 1158276 8 1158268 1% /tmp8GFLinuxÁªÃË ÔÙ¹ýÒ»¶Îʱ¼ä£º8GFLinuxÁªÃË Îļþϵͳ ǧ×Ö½Ú ÓÃÁË ¿ÉÓà ÈÝÁ¿ ¹Ò½ÓÔÚ8GFLinuxÁªÃË swap 1158392 8 1158384 1% /tmp8GFLinuxÁªÃË ÆäÖУ¬1158400ΪswapµÄ×ܿռä´óС£¬ÎªÊ²Ã´×ܵÄswap¿Õ¼ä»á±ä»¯¡£Èç¹ûswap²»¶Ï¼õÉÙ8GFLinuxÁªÃË £¬×ÜÓÐÒ»Ìì»áÓÃÍ꣬¸ÃÔõô°ì¡£´ø×ÅÒÉ»óÏòÄúÇë½Ì8GFLinuxÁªÃË 8GFLinuxÁªÃË A: Actually, the sample data in your table look very healthy. Don't 8GFLinuxÁªÃË trust so much about these statistics numbers. In fact, if the gloss 8GFLinuxÁªÃË number of swap file system reduced not big, the system can run well. 8GFLinuxÁªÃË If the number decrease much, it means a process use a lot of swap 8GFLinuxÁªÃË space. If you kill the process, the number will increase some.8GFLinuxÁªÃË 8GFLinuxÁªÃË 125 Q: ÔÚWinNTÖÐÓÐÈÎÎñ¹ÜÀíÆ÷£¬ ÔÚLinuxÉÏÃæÓÐtop³ÌÐò£¬ ¿ÉÒԲ鿴һ¸ö½ø³ÌÕ¼ÓÃ8GFLinuxÁªÃË µÄCPUʱ¼ä£¬Äڴ棬µ±Ç°ÔËÐеÄÏß³ÌÊýµÈ£¬µ«ÊÇÔÚSolarisÉÏÃæÈçºÎ²éѯÕâЩÐÅ8GFLinuxÁªÃË Ï¢ÄØ£¿8GFLinuxÁªÃË A: There are two ways to see a process's cpu occuptation.8GFLinuxÁªÃË 1. run the command in a terminal or console: #ps -elf8GFLinuxÁªÃË 2. In cde interface, there is a graphic utility which you can find 8GFLinuxÁªÃË in tool(or ¹¤¾ß) column8GFLinuxÁªÃË 8GFLinuxÁªÃË 126 Q: ÇëÎÊ: ÉèÖÃÁËÒ»¸öÆÕͨÓû§,¸ÃÓû§ÉèÖÃÓÐÏàÓ¦µÄ$PATH»·¾³±äÁ¿,ÓÃsuÃüÁî(²»8GFLinuxÁªÃË ÊÇsu -)Çл»µ½³¬¼¶Óû§ÒÔºó,ÔÀ´µÄ$PATH±äÁ¿µÄÖµ·¢ÉúÁ˸ıä,µ¼ÖÂÁËÓ¦ÓÃÓÐ8GFLinuxÁªÃË Ð©²»Õý³£,ÇëÎÊÕâÈçºÎ½â¾ö?8GFLinuxÁªÃË A: ʵ¼ÊÉÏ£¬Ê¹ÓÃsuÃüÁîÇл»µ½³¬¼¶Óû§£¬»·¾³±äÁ¿$PATHÖ»ÊÜÎļþ8GFLinuxÁªÃË /etc/default/suÖÐSUPATHÌõÄ¿µÄ¿ØÖÆ¡£ÏÖÔÚ£¬Äã¿ÉÒÔ²ÎÕÕ´ËÎļþ¶ÔSUPATHÌõ8GFLinuxÁªÃË Ä¿½øÐÐÐ޸ļ´¿ÉÂú×ãÄãµÄÒªÇó¡£8GFLinuxÁªÃË 8GFLinuxÁªÃË 127 Q: Èç¹û²ÉÓá°Cluster¡±»úÖÆ½øÐÐË«»úÈȱ¸£¬Á½Ì¨»úÆ÷Ö®¼äÐèҪͨ¹ýÐÄÌøÏßÏàÁ¬8GFLinuxÁªÃË £¬ÇëÎÊÕâЩÐÄÌøÏßÊÇÈçºÎÁ¬½ÓµÄ£¿Ò²¾ÍÊÇ˵£¬Ã¿Ì¨»úÆ÷ÓÐÁ½¸öÍø¿Ú×öÐÄÌøÕìÌý£¬8GFLinuxÁªÃË 8GFLinuxÁªÃË Á½Ì¨»úÆ÷¼äµÄÐÄÌøÍøÏßÊǽ»²æÖ±½ÓÏàÁ¬£¬»¹ÊÇ¿ÉÒÔͨ¹ý¡°Lanswitch¡±»ò¡°Hubor¡±8GFLinuxÁªÃË ¼ä½ÓÏàÁ¬£¿8GFLinuxÁªÃË A: ½»²æ568a-568b8GFLinuxÁªÃË 8GFLinuxÁªÃË 128 Q: ÎÒÃǵijÌÐòÐèÒª½¨Á¢ºÜ¶àsocketÁ¬½Ó£¬µ«ÒòΪ²Ù×÷ϵͳµÄÏÞÖÆ£¬Ö»Äܽ¨Á¢ÓÐÏÞ8GFLinuxÁªÃË µÄÁ¬½Ó¡£ÈçºÎÐÞ¸Äϵͳ²ÎÊý£¬Ìá¸ß²Ù×÷ϵͳ¶ÔÎļþÃèÊö·ûÊýÁ¿µÄÏÞÖÆ¡£8GFLinuxÁªÃË A: You have two ways to modify the limit number of files that a process 8GFLinuxÁªÃË can open simutanously.8GFLinuxÁªÃË One: modify the /etc/system file add the following entry:8GFLinuxÁªÃË set rlim_fd_cur = #n8GFLinuxÁªÃË #n is the number you want. Should be no more than 1024.8GFLinuxÁªÃË You should reboot the machine.8GFLinuxÁªÃË Two: Use the system command: ulimit8GFLinuxÁªÃË $ulimit -n #n8GFLinuxÁªÃË Note: You should use B-shell.8GFLinuxÁªÃË And using the same terminal session(in the same terminal 8GFLinuxÁªÃË window) to run the your application program( to guarantee your 8GFLinuxÁªÃË application process is a child process of the setting 8GFLinuxÁªÃË terminal.)You can man ulimit to see the detailed usaged.8GFLinuxÁªÃË 8GFLinuxÁªÃË 129 Q: ipcsÃüÁîÓÐûÓй¦ÄÜÀ´É¾³ýÒ»¸ö¹²ÏíÄÚ´æ8GFLinuxÁªÃË A: No, ipcs can only print some usage information about shared memory, 8GFLinuxÁªÃË locks, and semaphores.8GFLinuxÁªÃË 8GFLinuxÁªÃË 130 Q: ÎÒÃǵijÌÐòÐèÒª½¨Á¢ºÜ¶àsocketÁ¬½Ó£¬µ«ÒòΪ²Ù×÷ϵͳµÄÏÞÖÆ£¬Ö»Äܽ¨Á¢ÓÐÏÞ8GFLinuxÁªÃË µÄÁ¬½Ó¡£ÈçºÎÐÞ¸Äϵͳ²ÎÊý£¬Ìá¸ß²Ù×÷ϵͳ¶ÔÎļþÃèÊö·ûÊýÁ¿µÄÏÞÖÆ¡£8GFLinuxÁªÃË A: You have two ways to modify the limit number of files that a process 8GFLinuxÁªÃË can open simutanously.8GFLinuxÁªÃË One: modify the /etc/system file add the following entry:8GFLinuxÁªÃË set rlim_fd_cur = #n8GFLinuxÁªÃË #n is the number you want. Should be no more than 1024.8GFLinuxÁªÃË You should reboot the machine.8GFLinuxÁªÃË Two: Use the system command: ulimit8GFLinuxÁªÃË $ulimit -n #n8GFLinuxÁªÃË Note: You should use B-shell.8GFLinuxÁªÃË And using the same terminal session(in the same terminal 8GFLinuxÁªÃË window) to run the your application program( to guarantee your 8GFLinuxÁªÃË application process is a child process of the setting 8GFLinuxÁªÃË terminal.) You can man ulimit to see the detailed usaged.8GFLinuxÁªÃË 8GFLinuxÁªÃË 131 Q: Çë½âÊÍÒ»ÏÂsolaris 8ÓÐûÓÐdynamic partitionµÄ¸ÅÄî.ÊÇ·ñ¿ÉÒÔÏòwindowsÒ»8GFLinuxÁªÃË Ñù¶¯Ì¬·ÖÇø¶ø²»ÓÃformatÔÀ´µÄÎļþϵͳ,лл.8GFLinuxÁªÃË A: There is no dynamic partition in Solaris 8. Let's make the 8GFLinuxÁªÃË conception "dynamic partition" clear first. "dynamic partition" 8GFLinuxÁªÃË means to change a disk's partition without a new format,and all the 8GFLinuxÁªÃË data in the former partitions are kept.Up to now, in Solaris system, 8GFLinuxÁªÃË it impossible to change a disk's partition without formatting, and 8GFLinuxÁªÃË the data should be lost when formatting. The dynamic configuration, 8GFLinuxÁªÃË which means a disk adaptor can be loaded, or disconnected from8GFLinuxÁªÃË system without restarting the system. It is an alternative word of 8GFLinuxÁªÃË "hot plug" for disk adaptor.8GFLinuxÁªÃË 8GFLinuxÁªÃË 132 Q: ÎÒ»úÆ÷×°µÄÊÇSolaris 8£¬ÎªÊ²Ã´³ýÁËrootÓû§ÍâÆäËûµÄÓû§¶¼²»ÄÜÔÚ±¾»úµÇ8GFLinuxÁªÃË Â¼£¬¿ÚÁîûÓÐÎÊÌ⣬ÏÖÏóΪ½øÈë½çÃæÒ»»á¶ùºóÓֻص½µÇ¼״̬£¬ÐÂÔö¼ÓµÄÓû§8GFLinuxÁªÃË Ò²²»ÄܵǼ£¬Ð»Ð»£¡8GFLinuxÁªÃË A: I solve this problem by manually operating. After checking log files 8GFLinuxÁªÃË and the system file system, I solve the problem. The following is my 8GFLinuxÁªÃË conclusion.The cause is the system is not properly installed, more 8GFLinuxÁªÃË presicely, the disk is not properly formatted. The problem is that 8GFLinuxÁªÃË /c0t0d0s6 is used as /tmp. So, /tmp file system type is "ufs" 8GFLinuxÁªÃË instead of "tmpfs". The difference between "ufs" and "tmpfs" is 8GFLinuxÁªÃË "tmpfs" is automatically freed empty at booting, while "ufs" is not.8GFLinuxÁªÃË So, because some temperate files used by Xession are not deleted at 8GFLinuxÁªÃË booting, the dtsession can not be launched properly. The way is 8GFLinuxÁªÃË clearing all the /tmp files and rebooting.8GFLinuxÁªÃË 8GFLinuxÁªÃË 133 Q: SUN MOTIF±à³ÌÔõô¸Ä±äÖÐÎÄ×ÖÌåµÄ´óС£¬Çë°ïÖúÌṩ×Éѯ8GFLinuxÁªÃË A: In fact, Motif is a GUI programming standard which is wildly 8GFLinuxÁªÃË supported by UNIX operating systems. The fonts in Motif programing 8GFLinuxÁªÃË envrionment are standard named, which means, by the same name, you 8GFLinuxÁªÃË can refernce the same font, in all UNIX system, no matter the system 8GFLinuxÁªÃË is HP, AIX or Solaris. If you want to know something about Motif 8GFLinuxÁªÃË programming, you can search for documnets about it, and you will get 8GFLinuxÁªÃË hundreds of references or faqs no matter what search engine you use. 8GFLinuxÁªÃË In my knowledge, in Motif, you can set the font, not the size of8GFLinuxÁªÃË the font. In Solaris, there are some utilities to find the fonts 8GFLinuxÁªÃË install in the system. You can find the usage of these utilities in 8GFLinuxÁªÃË Solaris Answerbook. The name of the reference book is "Font 8GFLinuxÁªÃË Administration", in System Administration Collection. So, I 8GFLinuxÁªÃË recommend you 8GFLinuxÁªÃË 1.to find some references of Motif programming, which are easy to 8GFLinuxÁªÃË find in Internet. 8GFLinuxÁªÃË 2.to find the "Font Administration" book, in System Administration 8GFLinuxÁªÃË Collection, this book will help you to find the fonts installed in 8GFLinuxÁªÃË solaris environment.8GFLinuxÁªÃË 8GFLinuxÁªÃË 134 Q: ÎÒÔÚһ̨netra1120ÉÏ °²×°ÁËsolaris7ºó£¬ÓÖ°²×°ÁËÒ»¸ö106541-09µÄpatch£¬8GFLinuxÁªÃË patch°²×°²»³É¹¦£¬ÏµÍ³½øÈëok״̬£¬È»ºóÎÒ¼üÈëÒÔÏÂÃüÁîÖØÆð£º8GFLinuxÁªÃË ok reboot8GFLinuxÁªÃË ÏµÍ³¾ÍÒ»Ö±²»¶ÏµÄÖØÆð£¬ÎÒÏ£ÍûÖØÐ´ӹâÅ̰²×°ÏµÍ³¶¼Ã»Óа취£¬´ËÎÊÌâ¸ÃÈç8GFLinuxÁªÃË ºÎ½â¾ö£¿8GFLinuxÁªÃË A: In this situation, you should reinstall you system. If you want to 8GFLinuxÁªÃË install you system through cdrom, issue the following command under 8GFLinuxÁªÃË ok prompt:8GFLinuxÁªÃË ok boot cdrom8GFLinuxÁªÃË 8GFLinuxÁªÃË 135 Q: ÈçºÎÔÚSolaris8 ÖÐÅäÖÃipµØÖ·£¬ºÍÉèÖ÷ÓÉ8GFLinuxÁªÃË # ifconfig -a8GFLinuxÁªÃË hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 28GFLinuxÁªÃË inet 10.76.175.102 netmask ff000000 broadcast 10.255.255.2558GFLinuxÁªÃË ether 8:0:20:c3:a9:b18GFLinuxÁªÃË do as you said£º8GFLinuxÁªÃË # ifconfig hme0 10.76.175.102 255.255.255.08GFLinuxÁªÃË ifconfig: setifdstaddr: SIOCSLIFDSTADDR: hme0: Cannot assign requested address8GFLinuxÁªÃË 8GFLinuxÁªÃË # route add default 10.76.175.2518GFLinuxÁªÃË add net default: gateway 10.76.175.251: entry exists8GFLinuxÁªÃË # more defaultrouter8GFLinuxÁªÃË 10.76.175.2518GFLinuxÁªÃË # more /etc/netmasks8GFLinuxÁªÃË 10.76.0.0 255.255.254.08GFLinuxÁªÃË # more nodename8GFLinuxÁªÃË VPNMServer18GFLinuxÁªÃË # more hosts8GFLinuxÁªÃË 10.76.175.102 VPNMServer18GFLinuxÁªÃË in 7.08GFLinuxÁªÃË ifconfig -a8GFLinuxÁªÃË hme0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 15008GFLinuxÁªÃË inet 10.76.165.155 netmask ffffff00 broadcast 10.76.165.2558GFLinuxÁªÃË ether 8:0:20:c3:a9:908GFLinuxÁªÃË 8GFLinuxÁªÃË A:8GFLinuxÁªÃË The command to set ip address is:8GFLinuxÁªÃË #ifconfig hme0 10.76.175.102 netmask 255.255.255.08GFLinuxÁªÃË from the output of adding default router, your router has been correctly 8GFLinuxÁªÃË set.Add a file in you system:8GFLinuxÁªÃË /etc/hostname.hme08GFLinuxÁªÃË in these file just add an entry, which is your host name. This name 8GFLinuxÁªÃË have a correponding entry in /etc/hosts.8GFLinuxÁªÃË 8GFLinuxÁªÃË You have correctly set other files.8GFLinuxÁªÃË So every time, you reboot the system, the system's ip address and router 8GFLinuxÁªÃË are correctly set.8GFLinuxÁªÃË 8GFLinuxÁªÃË 136 Q: ÎÒ×°SUNË«»ú£¬ volumn manager 2.6 , sun cluster 2.2²¹¶¡ÒÑ´ò£º8GFLinuxÁªÃË showrev -p|grep 1077638GFLinuxÁªÃË Patch: 107763-02 Obsoletes: Requires: 108520-01 Incompatibles: Packag8GFLinuxÁªÃË es: SUNWsc8GFLinuxÁªÃË ÔÚÖ÷»ú227ºÍ228É϶¼ÒѰ²×°¡£µ«227 nafo test error8GFLinuxÁªÃË 227:8GFLinuxÁªÃË Check nafo0... < 20 seconds8GFLinuxÁªÃË hme0 is active8GFLinuxÁªÃË remote address = 10.225.1.2288GFLinuxÁªÃË test hme1 wait...8GFLinuxÁªÃË Setting netmask of hme1 to 255.255.255.08GFLinuxÁªÃË nafo0 test failed8GFLinuxÁªÃË A: ÊÇÔËÐÐPNMSET£¬ÌáʾµÄÎÊÌâ°É£¿ÕâÖÖÎÊÌ⣬¶àÊýÊÇÍøÂç²»Îȶ¨Ôì³É¡£Ò»°ãÕâÌõ8GFLinuxÁªÃË ÃüÁî¿ÉÊÔ¶à´Î£¬ÇÒ×îºÃÔÚClusterͣϺóÔËÐУ¨ÒÔ¼õÉÙÍøÂçµÄ¸´ÔÓÐÔ£©¡
LinuxÁªÃËÊÕ¼¯ÕûÀí ,תÌùÇë±êÃ÷ÔʼÁ´½Ó,ÈçÓÐÈκÎÒÉÎÊ»¶ÓÀ´±¾Õ¾LinuxÂÛ̳ÌÖÂÛ |
|
|
|
|
|