LinuxÖÐ×Ó¸¸½ø³Ì - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø
ÔÚLinuxÖУ¬
Èç¹û¸¸½ø³Ìµ÷ÓÃexit(0)Í˳ö£¬
ÄÇôÓɸýø³Ì´´½¨µÄÁ½¸ö×Ó½ø³Ì»áÁ¢¼´Í˳öÂ𣿣¿£¿
Ï£ÍûΧÈƸÃÎÊÌâ˵Çå³þµã£¬Ð»Ð»ÁË¡£
²»»á
Á½¸ö×Ó½ø³ÌÍÑÀëÁ˸¸½ø³Ì£¬¶ÀÁ¢ÔËÐÐ
¸¸½ø³ÌËÀµôºó£¬ÆäËùÓÐ×ÓËï½ø³Ì±»initÊÕÑø
Èç¹ûÊǶàỊ̈߳¬ÈÎÒâÒ»Ï̵߳÷ÓÃexit£¬Õû¸ö½ø³Ì¶¼Í˳ö
¸ßÊÖÖ¸½Ì£º
exitÊÇÖÕÖ¹½ø³ÌµÄ£¬ÄÇÖÕÖ¹Ï̵߳ÄÊÇÄĸöº¯Êý£¨_exit()£©?
лл
pthread_exit()
exitÊÇÖÕÖ¹½ø³ÌµÄ£¬ÄÇÖÕÖ¹Ï̵߳ÄÊÇÄĸöº¯Êý£¨_exit()£©?
pthread_exit()Ö÷¶¯Í˳öÏß³Ì
pthread_cancel(),ÍⲿÉèÖÃÏß³ÌÍ˳öµã
Èç¹û¸¸½ø³Ìµ÷ÓÃexit(0)Í˳ö£¬
ÄÇôÓɸýø³Ì´´½¨µÄÁ½¸ö×Ó½ø³Ì»áÁ¢¼´Í˳öÂ𣿣¿£¿
Ï£ÍûΧÈƸÃÎÊÌâ˵Çå³þµã£¬Ð»Ð»ÁË¡£
¸¸½ø³ÌÍ˳öÖ®ºó,×Ó½ø³Ì»á±»i
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
linux ÏÂusbÉ豸£¬ÔÚrootȨÏÞÏ£¬É豸¿ÉÒÔÕý³£ÕÒµ½Çý¶¯£¬
µ«ÔÚÆÕͨÓû§ÏÂÕÒ²»µ½É豸Çý¶¯£¬
ÔõÑù²Å¿ÉÒÔÔÚÆÕͨÓû§ÏÂʹÓÃusbÉ豸£¿
Çë¸ßÊÖÖ¸½Ì
°ï¶¥Ï¡¢
ûÓöµ½¹ý£¬ÎÒÓõÄfedoraÆÕͨÓû§Ä¬ÈϵÄÒ²ÄÜÓðɣ ......
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
ÎÒµÄÎļþÊÇ·ÅÔÚwebappsÏÂÃæ
ÔÚ /etc/hosts ¼ÓÈëÁË 127.0.0.1 www.abc.com
conf/server.xml ¼ÓÁË
<Host name="www.abc.com" appBase="webapps" unpackWARs="true" autoDepl ......
ÎÒÓõÄLinuxϵͳÊÇFedora7£¬ÊÇÒ»¸öÉù¿¨²É¼¯È»ºó·¢ËÍÊý¾Ýµ½·þÎñÆ÷µÄÏÂλ»ú³ÌÐò£¬ÎÒÔÚ/etc/rc.d/rc.localÀïÃæ¼ÓÁË¿ª»úÆô¶¯µÄ·¾¶£¬³ÌÐòÖ±½ÓÔÚÕË»§µÇ¼֮ǰ¾ÍÆô¶¯ÁË£¬¶øÇÒÀïÃæµÄÏß³ÌÅܵÄÒ²ÓÐÎÊÌ⣬²»ÖªµÀÔõô»ØÊ£¿ÊÇÎÒ ......