|
 |
À¸Ä¿µ¼À¸ |
|
| |
|
|
|
|
 |
×ÊÁÏËÑË÷ |
|
| |
|
|
|
|
 |
ÈÈÃÅÎÄÕÂ |
|
| |
|
|
|
|
 |
×îÐÂÎÄÕ |
|
| |
|
|
|
| |
| |
|
|
|
[ ×÷Õß: LinuxÁªÃËÊÕ¼¯ ¼ÓÈëʱ¼ä:2006-06-14 01:33:27 À´×Ô:LinuxÁªÃËÊÕ¼¯
] | |
|
£8GFLinuxÁªÃË # netstat -a|grep 49998GFLinuxÁªÃË # ifconfig hme0 dhcp start8GFLinuxÁªÃË May 7 20:11:11 hwMusa01 dhcpagent[478]: ERROR! Address 10.11.105.147 8GFLinuxÁªÃË 8GFLinuxÁªÃË is already in use ifconfig: internal error in DHCP agent8GFLinuxÁªÃË # netstat -a|grep 49998GFLinuxÁªÃË localhost.4999 *.* 0 0 0 0 LIS8GFLinuxÁªÃË TEN8GFLinuxÁªÃË localhost.4999 localhost.1023 32768 0 32768 0 TIM8GFLinuxÁªÃË E_WAIT8GFLinuxÁªÃË 8GFLinuxÁªÃË ×¥°ü·¢ÏÖÊÇdhcp·þÎñÆ÷offerµÄIPµØÖ·10.11.105.147±»declineÁË¡£ÊÖ¹¤ÔËÐÐ8GFLinuxÁªÃË dhcpagent£¬Ìáʾ4999¶Ë¿Ú±»Ê¹ÓÃÁË¡£ÒÔǰ´Ë¹¤×÷Õ¾ÔøÅäÖÃΪ¹Ì¶¨IP£º8GFLinuxÁªÃË 10.11.105.147£¬µ«ÏÖÔÚÒѸÄΪ10.11.105.247²¢ÖØÆô¹ý¶à´Î¡£ÇëÎÊ£¬¿ÉÄÜÊÇʲ8GFLinuxÁªÃË Ã´ÔÒòµ¼ÖÂdhcpʧ°Ü£¿£¿8GFLinuxÁªÃË 8GFLinuxÁªÃË A: µ¼ÖÂÎÊÌâ³öÏÖµÄÔÒòÊÇ£¬ÓÉÓÚ¿Í»§»úÔÚÉêÇëÔÀ´µÄ±»±£Áô·ÖÅäµÄIPʱ£¬·þÎñÆ÷8GFLinuxÁªÃË ·¢ÏÖÕâ¸öIP²»Äܹ»±»Ê¹Óã¨ÒѾÓÐÆäËü»úÆ÷ʹÓÃÁËÕâ¸öIPµØÖ·£©¡£Ê¹¿Í»§»úÉê8GFLinuxÁªÃË Çëʧ°Ü£¬²¢ÇÒʹÆäÖеÄijЩ½ø³Ì²»ÄÜÕý³£Í˳ö£¬¼ÌÐøÕ¼ÓÃÁ˶˿Ú4999¶øÊ¹ºóÃæ8GFLinuxÁªÃË µÄÉêÇë²»ÄܽøÐС£°ì·¨ÊÇÕÒµ½Õ¼Óö˿Ú4999µÄ½ø³Ì£¬É±µô¼´¿É¡£ÕÒµ½Õâ¸ö½ø³Ì8GFLinuxÁªÃË µÄ°ì·¨ÊÇ£¬Õâ¸öÉêÇë½ø³ÌÊÇ´øÓÐdhcp×ÖÑùµÄ¡£8GFLinuxÁªÃË # ps -e | grep dhcp8GFLinuxÁªÃË »á³öÏÖÒ»µ½Á½¸ö½ø³ÌºÅ¡£ÑéÖ¤ÕâЩ½ø³ÌÊÇ·ñÕ¼ÓÃÁË4999ÊÇ¿´½ø³Ì´ò¿ªµÄÎļþ£º8GFLinuxÁªÃË # /usr/proc/bin/pfiles #pid8GFLinuxÁªÃË Ôçµ½½ø³ÌÈ»ºóɱµô¡£ÕâÑù¾Í¿ÉÒÔ¼ÌÐøÆô¶¯Client ¶ËµÄdhcpÉêÇë¡£×¢Ò⣬ÐÞ¸Ä8GFLinuxÁªÃË ·þÎñÆ÷µÄÉèÖÃʹеÄÉêÇë¿ÉÒԳɹ¦¡£8GFLinuxÁªÃË 8GFLinuxÁªÃË 117 Q: ÎÒÃÇÓÐһ̨Natra T1,ËüµÄ/tmpĿ¼ÒѾ³¤µ½90%,Èç¹ûĿ¼ÂúÁËÊÇ·ñ»áʹϵͳ8GFLinuxÁªÃË ÔËÐÐÒì³£.(ÒòΪÎÒÃÇÔËÐеÄÒµÎñ²»ÄÜÍ£,¹Ê²»ÄÜÖØÆôSUN»úÆ÷À´ÈÃϵͳÇå¿Õ¸ÃÄ¿8GFLinuxÁªÃË Â¼,Ò²²»ÄÜÖ±½ÓÇå¿Õ¸ÃĿ¼,ӦΪӦÓóÌÐòÕýÔÚÔËÐÐ.)ÏÂÃæÊÇһЩÊý¾Ý:8GFLinuxÁªÃË 8GFLinuxÁªÃË # df -k8GFLinuxÁªÃË Filesystem kbytes used avail capacity Mounted on8GFLinuxÁªÃË /proc 0 0 0 0% /proc8GFLinuxÁªÃË /dev/dsk/c0t0d0s0 1258491 51942 1143625 5% /8GFLinuxÁªÃË /dev/dsk/c0t0d0s6 1612343 500741 1063232 33% /usr8GFLinuxÁªÃË fd 0 0 0 0% /dev/fd8GFLinuxÁªÃË /dev/dsk/c0t0d0s3 33099 9211 20579 31% /var8GFLinuxÁªÃË /dev/dsk/c0t0d0s7 13550703 838475 12576721 7% /export/home8GFLinuxÁªÃË /dev/dsk/c0t0d0s5 30743 10319 17350 38% /opt8GFLinuxÁªÃË /dev/dsk/c0t0d0s1 548687 369368 124451 75% /usr/openwin8GFLinuxÁªÃË swap 627864 563360 64504 90% /tmp8GFLinuxÁªÃË # cd tmp8GFLinuxÁªÃË # ls8GFLinuxÁªÃË ps_data8GFLinuxÁªÃË # ls -a -l8GFLinuxÁªÃË total 988GFLinuxÁªÃË drwxrwxrwt 6 sys sys 443 May 7 15:29 .8GFLinuxÁªÃË drwxr-xr-x 22 root root 512 Mar 20 17:45 ..8GFLinuxÁªÃË drwxrwxr-x 2 root root 176 Feb 27 23:18 .X11-pipe8GFLinuxÁªÃË drwxrwxr-x 2 root root 176 Feb 27 23:18 .X11-unix8GFLinuxÁªÃË drwxrwxrwx 2 root root 179 Feb 27 23:18 .pcmcia8GFLinuxÁªÃË drwxrwxrwt 2 root root 327 Feb 27 23:18 .rpc_door8GFLinuxÁªÃË -rw-rw-r-- 1 root sys 5056 Feb 27 23:18 ps_data8GFLinuxÁªÃË # cd .pcmcia8GFLinuxÁªÃË # ls -a -l8GFLinuxÁªÃË total 328GFLinuxÁªÃË drwxrwxrwx 2 root root 179 Feb 27 23:18 .8GFLinuxÁªÃË drwxrwxrwt 6 sys sys 443 May 7 15:35 ..8GFLinuxÁªÃË prw-rw-rw- 1 root root 0 Feb 27 23:18 pcram8GFLinuxÁªÃË # cd ..8GFLinuxÁªÃË # pwd8GFLinuxÁªÃË /tmp8GFLinuxÁªÃË # cd .rpc_door8GFLinuxÁªÃË # ls -a -l8GFLinuxÁªÃË total 328GFLinuxÁªÃË drwxrwxrwt 2 root root 327 Feb 27 23:18 .8GFLinuxÁªÃË drwxrwxrwt 6 sys sys 443 May 7 15:36 ..8GFLinuxÁªÃË Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.18GFLinuxÁªÃË Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.28GFLinuxÁªÃË Drw-r--r-- 1 root root 0 Feb 27 23:18 .rpc_100029.38GFLinuxÁªÃË # cd ..8GFLinuxÁªÃË # cd .X11-pipe8GFLinuxÁªÃË # ls -a -l8GFLinuxÁªÃË total 328GFLinuxÁªÃË drwxrwxr-x 2 root root 176 Feb 27 23:18 .8GFLinuxÁªÃË drwxrwxrwt 6 sys sys 443 May 7 15:37 ..8GFLinuxÁªÃË -rw-rw-rw- 1 root root 0 Feb 27 23:18 X08GFLinuxÁªÃË # cd ..8GFLinuxÁªÃË # ls8GFLinuxÁªÃË ps_data8GFLinuxÁªÃË # cd .X11-unix8GFLinuxÁªÃË # ls -al8GFLinuxÁªÃË total 328GFLinuxÁªÃË drwxrwxr-x 2 root root 176 Feb 27 23:18 .8GFLinuxÁªÃË drwxrwxrwt 6 sys sys 443 May 7 15:38 ..8GFLinuxÁªÃË srwxrwxrwx 1 root root 0 Feb 27 23:18 X08GFLinuxÁªÃË µÈ´ýÄúµÄ»Ø´ð,лл8GFLinuxÁªÃË 8GFLinuxÁªÃË A: ÎÒÈÏΪÊÇϵͳͳ¼ÆÐÅÏ¢´íÎóµÄ£¬ ±¾È˵ľÑéÊǵ±/tmpµÄʹÓÃÂʳ¬¹ý10%ʱ£¬ÏµÍ³¾Í8GFLinuxÁªÃË ±äµÄºÜÂýÁË¡£³öÏÖÕâÖÖÇé¿ö£¬Ê×ÏÈ£¬Òª¼ì²éϵͳÖÐÔËÐеijÌÐòÓÐûÓв»Í£·ÖÅäÄڴ棬8GFLinuxÁªÃË È´Ã»ÓÐÊÍ·Å£¨Ö¸×Ô¼º¿ª·¢µÄ³ÌÐò£©¡£ÁíÍâ¿´Ò»ÏÂϵͳ¶Ô/tmpµÄswap½»»»Çé¿ö¡£Ê¹Óù¤8GFLinuxÁªÃË ¾ßsar ºÍiostat ¶¼¿ÉÒÔ¿´µ½¡£¹ØÓÚsarºÍiostatµÄÓ÷¨£¬ ¿ÉÒÔ¿´man¼´¿É¡£8GFLinuxÁªÃË 8GFLinuxÁªÃË 118 Q: ÓÐÒ»ÓÃMOTIF дµÄ³ÌÐò£¬ÔËÐÐÖ®ºó²»ÄÜÏÔʾÖÐÎÄ£¨ÂÒÂ룩£¬ÓÉÓÚÏÔʾµÄÐÅÏ¢ÊÇ8GFLinuxÁªÃË ²»¹Ì¶¨µÄ£¬¹Ê²»ÄÜʹÓÃ×ÊÔ´Îļþ.»³ÒɳÌÐòÖÐÓë´´½¨×ÖÌåʱʹÓÃÁËÒÔϵĺ¯Êý8GFLinuxÁªÃË Óйأ¬µ«×¢Ê͵ôºóÒ²Ò»Ñù£º8GFLinuxÁªÃË font1=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal-8GFLinuxÁªÃË -12-*");8GFLinuxÁªÃË font2=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal-8GFLinuxÁªÃË -14-*");8GFLinuxÁªÃË font3=XLoadQueryFont(XtDisplay(toplevel), "-*-screen-bold-r-normal-8GFLinuxÁªÃË -16-*");8GFLinuxÁªÃË fontlist=XmFontListCreate(font1, "charset1");8GFLinuxÁªÃË fontlist=XmFontListAdd(fontlist, font2, "charset2");8GFLinuxÁªÃË fontlist=XmFontListAdd(fontlist, font3, "charset3");8GFLinuxÁªÃË ÔËÐл·¾³ÊÇULTRA 60 £¬Solaris 2.6 £¬°²×°ÁËÖÐÎÄ»·¾³¡£±àÒë»·¾³ÊÇSUN C++ 4.0 ¡£8GFLinuxÁªÃË »¹»³ÒÉÓëLANG Ïà¹Ø£¬ÔøÊÔ¹ýÉèÖÃΪzh £¬chinese µÈÒ²²»ÐУ¬Çë½Ì´ËÎÊÌâÈçºÎ½â¾ö£¿8GFLinuxÁªÃË 8GFLinuxÁªÃË A: ʵ¼ÊÉÏ£¬¹ØÓÚÑ¡Ôñ×ÖÌåºÍ×Ö·û¼¯¿ÉÒÔ¿´<Font Administrator Guide>Õâ¸ö×ÊÁÏ£¬Ê¹8GFLinuxÁªÃË ÓÃϵͳÌṩµÄ±ê×¼¹¤¾ßÀ´´ÓÖмäÕÒµ½ÏµÍ³ÖдæÔÚµÄ×ÖÌåºÍ×ÖÌåµÄÃû³Æ¡£Õâ¸ö×ÊÁÏÔÚ8GFLinuxÁªÃË Answer Book µÄSystem Administration Collection ÖС£ ʵ¼ÊÉÏ£¬ÉÏÃæµÄÎÊÌâ²»8GFLinuxÁªÃË ³öÏÖÔÚ×ÖÌåµÄÑ¡ÔñÉÏÃæ£¬ ¶øÊÇÔÚMOTIFÖÐÔÚÑ¡Ôñ¿òµÄʹÓÃÉèÖÃÖл¹ÒªÉèÖÃÒ»´Î×ÖÌå8GFLinuxÁªÃË 8GFLinuxÁªÃË 119 Q: ÇëÎÊSUNµÄE250ÒÔÉÏ»úÆ÷Ö§³Ö¡°Ë«»úÈȱ¸+´ÅÅÌÕóÁС±µÄʹÓ÷½Ê½Âð£¿Ultraϵ8GFLinuxÁªÃË ÁеĻúÆ÷ÊÇ·ñÒ²ÄÜÖ§³ÖÄØ£¿8GFLinuxÁªÃË A: SUNµÄE250ÒÔÉÏ»úÆ÷Ö§³Ö¡°Ë«»úÈȱ¸+´ÅÅÌÕóÁС±µÄʹÓ÷½Ê½£¬¿ÉÒÔʹÓÃ8GFLinuxÁªÃË SunClusterÈí¼þʵÏÖ£»NetratϵÁеçÐÅ·þÎñÆ÷Ò²Ö§³Ö£»UltraϵÁеĻúÆ÷£¬²»8GFLinuxÁªÃË ÔÚÖ§³ÖµÄÁбíÖС£µ«ÊÇ£¬¡°Ë«»úÈȱ¸+´ÅÅÌÕóÁС±µÄ¾ßÌ庬ÒåÓ¦¸Ã¸ãÇå³þ¡£ÍÆ8GFLinuxÁªÃË ¼öµÄÎĵµÔÚsun cluster collection ÖС£120 Q: ÎÒÔÚÒ»¸öJAVA³ÌÐòÖдò¿ª50¸öSOCKET¶Ë¿Ú£¬½á¹û³öÏÖÒì³££º8GFLinuxÁªÃË java.net.SocketException:Too many open files8GFLinuxÁªÃË ÇëÎÊÈçºÎ½â¾ö´ËÎÊÌ⣿лл£¡ÁíÍ⣬ÇëÎÊÔÚÒ»¸öJAVA½ø³ÌÖпÉÒÔͬʱÆô¶¯µÄÏß8GFLinuxÁªÃË ³ÌÊýÊǶàÉÙ£¿×î´óÏß³ÌÊýÊÜʲôÏÞÖÆ£¿ÄÜ·ñ´ïµ½240¸öỊ̈߳¿Ð»Ð»£¡ÈçÉÏÎÊÌâ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ÁªÃË The disadvantage brought by incread the file limite for a 8GFLinuxÁªÃË process or the whole system is increasing the system memory 8GFLinuxÁªÃË usage. But, for today's machine, this disadvantage is not too8GFLinuxÁªÃË expensive. (William said There is no limit for max open 8GFLinuxÁªÃË socket number in Java. But the operating system has a limit for 8GFLinuxÁªÃË max open file descriptors.A socket resource is treated as a 8GFLinuxÁªÃË file descriptor in Unix. The previous email answered your 8GFLinuxÁªÃË question. You can try as said.8GFLinuxÁªÃË 8GFLinuxÁªÃË 121 Q: ÎÒÏë°ÑÒ»¸öHPƽ̨ÉÏÔËÐеÄB SHELL ½Å±¾ÔÚSOLARIS 2¡£6ÉÏÔËÐУ¬µ«ÊdzöÏÖÁË8GFLinuxÁªÃË ÎÊÌ⣺ҪÔËÐеĽű¾²¿·Ö£º8GFLinuxÁªÃË command_count = 08GFLinuxÁªÃË command_item[$command_count]=check_AutoRaid8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count] = check_system_resource8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_diskspace8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_bill_record8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= get_max_CAPS8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_DataBase8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_netstate_SMP8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_work_dir8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_dir_OAM8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_dir_others8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_files_informix8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË command_item[$command_count]= check_crontab8GFLinuxÁªÃË command_count=`expr $command_count + 1`8GFLinuxÁªÃË ³öÏÖµÄÎÊÌ⣺8GFLinuxÁªÃË ./scp.sh: command_item[0]: not found8GFLinuxÁªÃË ./scp.sh: command_item[1]: not found8GFLinuxÁªÃË ./scp.sh: command_item[2]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[3]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[4]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[5]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[6]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[7]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[8]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[9]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[10]=: not found8GFLinuxÁªÃË ./scp.sh: command_item[11]=: not found8GFLinuxÁªÃË ./scp.sh: bad substitution8GFLinuxÁªÃË 8GFLinuxÁªÃË ÇëÎÊÕâÊÇ·ñÒòΪƽ̨µÄÎÊÌâÒýÆðµÄ8GFLinuxÁªÃË 8GFLinuxÁªÃË A: I have looked up several documents about B Shell. There is no array 8GFLinuxÁªÃË definition and usage in original B-shell. It seems like B-shell is 8GFLinuxÁªÃË expended in HP platform. I think you should modify the source script to 8GFLinuxÁªÃË make it pure B-shell and then can run in Solaris.8GFLinuxÁªÃË 8GFLinuxÁªÃË 122 Q: ÏÖÔÚÎÒÃÇÓÐÒ»¸öÌØÊâµÄÐèÇó£¬ÐèÒªÔÚ±àÒëʱ£¬Ö¸¶¨Ò»×Ö½Ú¶ÔÆë£¨È±Ê¡ºÃÏóÊǰË8GFLinuxÁªÃË ×Ö½Ú¶ÔÆëµÄ£©£¬ÇëÎÊÎÒÃÇʹÓÃÄÄÒ»¸ö±àÒëÑ¡ÏîÄÜ´ïµ½Õâ¸öÄ¿µÄ£¿8GFLinuxÁªÃË A: There are some differences between different c/c++ compiler in their 8GFLinuxÁªÃË options. Actually, I don't know so much about the options used in 8GFLinuxÁªÃË gcc, but I think you can get some documents from the web site 8GFLinuxÁªÃË http://www.gnu.org. We have detailed document about Solaris C. If 8GFLinuxÁªÃË you want these documents, you can contact me or get from 8GFLinuxÁªÃË http://docs.sun.com, in which site you find workshop collection.8GFLinuxÁªÃË 8GFLinuxÁªÃË 123 Q: ÓÐÈçϼ¸¸öÎÊÌâÇë°ïÖú½â¾ö£º8GFLinuxÁªÃË 1¡¢solarisÓû§µÇ¼ÒÔºó£¬×ÜÊǵ¯³öºÜ¶à¿ØÖÆÌ¨´°¿ÚºÍä¯ÀÀÆ÷´°¿ÚµÈ£¬ÇëÎÊ£º8GFLinuxÁªÃË ÈçºÎ¶¨ÖÆÓû§µÄµÇ¼½çÃæºÍ»·¾³£¬ÈÃÆäµÇ¼ºóÖ»µ¯³öÒ»¸ö´°¿Ú¡
LinuxÁªÃËÊÕ¼¯ÕûÀí ,תÌùÇë±êÃ÷ÔʼÁ´½Ó,ÈçÓÐÈκÎÒÉÎÊ»¶ÓÀ´±¾Õ¾LinuxÂÛ̳ÌÖÂÛ |
|
|
|
|
|