Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux ÅжϻúÆ÷µÄ×Ö½Ú˳Ðò

#include <fcntl.h>
int main(void)
{
    typedef union un{
        short s;
        char c[sizeof(short)];
    }un;
    un myun;
    myun.s = 0x0102;
    if(sizeof(short) == 2){
        if(myun.c[0] == 1 && myun.c[1] == 2)
                printf("big-endian\r\n");
        else if(myun.c[0] == 2 && myun.c[1] == 1)
                printf("little-endian\r\n");
        else
                printf("unkown\r\n");
       
    }
    return 0;
}
Õª×Ô¡¶Unix ÍøÂç±à³Ì¡·


Ïà¹ØÎĵµ£º

LinuxµÄ¹¤×÷¶ÓÁÐ

1£¬ÏÈ¿´¿´¹¤×÷¶ÓÁкÍtaskletµÄÇø±ð£º
    £¨1£© ¶¨Ê±Æ÷ºÍtasklet£º
    Tasklets resemble kernel timers in 3 ways.
      1)They are always run at interrupt time,
      2)they always run on the same CPU that schedules the ......

LinuxÏÂnginxµÄ°²×°

nginx("engine x")ÊÇÒ»¸ö¸ßÐÔÄܵÄHTTPºÍ·´Ïò´úÀí·þÎñÆ÷£¬ÊÇÓɶíÂÞ˹ÈËIgor Sysoev½¨Á¢µÄÏîÄ¿£¬³¬ÇáÁ¿¼¶£¬³¬¿ì´¦ÀíÄÜÁ¦¡£
ĿǰʹÓõÄnginx°æ±¾ÊÇ0.7.61
nginxµÄ¹ÙÑÔÍøÕ¾Îª£ºhttp://nginx.net/
ÏÂÔØµØÖ·Îª£ºhttp://sysoev.ru/nginx/nginx-0.7.61.tar.gz
nginxÐèÒªpcreµÄÖ§³Ö£¬ËùÒÔÎÒÃÇÐèÒªÏÂÔØpcre
pcreÈ«ÃûΪPerl Compa ......

LinuxÏÂnginxµÄ°²×°ÎÊÌâ

×î½ü×¼±¸¸ø¹«Ë¾µÄÍøÕ¾¼Ü¹¹×öϵ÷Õû£¬°²×°²¿ÊðлúÆ÷µÄʱºòÓöµ½Ò»Ð©ÎÊÌ⣬nginxÔÚ°²×°µÄʱºòÒ»Ö±ÌáʾδÕÒµ½openssl
./configure --prefix=/usr/local/nginx
 ³ÌÐò´úÂë
./configure: error: the HTTP cache module requires md5 functions from OpenSSL library.  You can either disable the module by us ......

wmware linux Íø¿¨ÎÊÌâ

Device eth0 has different MAC address than expected
   ǰÌìÔÚŪVMwareµÄʱºò,ÔÚVMwareÉÏcloneÁËÒ»¸ölinux,ºóÀ´ÔÚcloneµÄlinux(RedHat Enterprise Linux 4)Éϲ»ÄÜÉÏÍøÁË,¼¤»îeth0ʱÀϵ¯³ö Device eth0 has different MAC address than expected ,ÎÒÃÇÖ»Òª±à¼­Õâ¸öÎļþ:/etc/sysconfig/network-scripts/ifcfg- ......

ÓÃNohupÃüÁîÈÃLinuxϵijÌÐòÔÚºǫִ́ÐÐ

Unix/LinuxÏÂÒ»°ãÏëÈÃij¸ö³ÌÐòÔÚºǫ́ÔËÐУ¬ºÜ¶à¶¼ÊÇʹÓà & ÔÚ³ÌÐò½áβÀ´ÈóÌÐò×Ô¶¯ÔËÐС£±ÈÈçÎÒÃÇÒªÔËÐÐmysqlÔÚºǫ́£º
¡¡¡¡/usr/local/mysql/bin/mysqld_safe –user=mysql &
¡¡¡¡µ«ÊÇÎÒÃǺܶà³ÌÐò²¢²»ÏómysqldÒ»Ñù¿ÉÒÔ×ö³ÉÊØ»¤½ø³Ì£¬¿ÉÄÜÎÒÃǵijÌÐòÖ»ÊÇÆÕͨ³ÌÐò¶øÒÑ£¬Ò»°ãÕâÖÖ³ÌÐò¼´Ê¹Ê¹Óà & ½á⣬Èç¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ