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 ÍøÂç±à³Ì¡·
Ïà¹ØÎĵµ£º
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 ......
nginxµÄ°²×°
¶ÔÓÚÏÖÔÚÁ÷ÐеÄNginx + Resin£¬ÆäÐÔÄÜ´ó¼Ò¶¼ÓÐÄ¿¹²¶Ã¡£
Ê×ÏÈ£¬°²×°Nginx
¿ÉÒÔ²ÎÊýNginxµÄ°²×°ÎÄÕ£ºhttp://blog.csdn.net/vebasan/archive/2010/02/26/5328494.aspx
Èç¹ûÔÚ°²×°NginxµÄʱºòÌáʾÓÐÎÊÌ⣬¿ÉÒԲο¼£ºhttp://blog.csdn.net/vebasan/archive/2010/02/26/5328545.aspx
ÓйØNginx£¬pcre£¬opensslÏ ......
×î½ü×¼±¸¸ø¹«Ë¾µÄÍøÕ¾¼Ü¹¹×öϵ÷Õû£¬°²×°²¿ÊðлúÆ÷µÄʱºòÓöµ½Ò»Ð©ÎÊÌ⣬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 ......
http://www.softhouse.com.cn/linux/knowledge/tech/7320.html
......
1.ʵÏÖÍâÍø·ÃÎÊÄÚÍøµÄÔ¶³Ì×ÀÃæ
µ¥Î»»úÆ÷·þÎñÆ÷µÄIPµØÖ·ÊÇ10.3.198.108,¿ÉÒÔÉÏÍâÍø,·ÓÉÆ÷ÉÏÉèÖÃÁËÄÚÍøµÄÍâÍøÓ³É䵨ַ,ÄÚÍøµÄµØÖ·ÊÇ192.168.0.*
ÏÖÔÚҪʵÏÖ´Ó10.x.x.xµÄÐ£Ô°ÍøÄÚ·ÃÎÊ»òÕß´ÓinternetÍøÂçÉÏ·ÃÎÊ 192.168.0.*µÄÔ¶³Ì×ÀÃæ
·½·¨ÈçÏÂ
ÏÂÔØrinetd
vi /etc/rinetd.conf
--------------------------------------- ......