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 Compatible Regular Expressions£¬¼´PerlÕýÔò±í´ïʽ¿â£¬Ä¿Ç°×îеÄÊÇ7.9;
pcreµÄ¹Ù·½ÍøÕ¾Îª£ºhttp://www.pcre.org/
ÏÂÔØµØÖ·Îª£ºhttp://sourceforge.net/project/showfiles.php?group_id=10194
°²×°pcre
tar xzvf pcre-7.9.tar.gz
#cd pcre-7.9
#./configure
#make
#make install
°²×°nginx
tar -xzvf nginx-0.7.61.tar.gz
#cd nginx-0.7.61
#./configure --prefix=/usr/local/nginx
#make
#make install
Æô¶¯nginx
nginxĬÈÏÊDz»»á×Ô¼ºÆô¶¯µÄ
Æô¶¯ÃüÁîΪ£º/usr/local/nginx/sbin/nginx ......
windowsÏÂÓзdz£ºÃÓõľÖÓòÍøÍ¨ÐÅÈí¼þ£ºipmsg£¨·É¸ë´«Ê飩¡£
ipmsgÒ²ÓÐlinux°æ±¾£¬µ«ÊÇ£¬ÓÐbug£¬¸üÐÂÒ²Âý¡£
linuxÏÂÓÐÒ»¸ö¹úÈË¿ª·¢µÄiptux£¬¼æÈÝipmsgÐÒ飬¿çƽ̨ʹÓ㬸üÐÂÒ²ºÜ¿ì£¬Äã¿ÉÒÔËæÊ±Ìá½»bug£¬×÷Õß»áºÜ¿ìÐ޸ġ£
1. iptux
°²×°iptux±È½ÏÈÝÒ×£¬ÏÂÔØiptuxµÄ¶þ½øÖưühttp://iptux.googlecode.com/files/iptux_0.4.4_i386.deb
È»ºóʹÓÃÃüÁî sudo dpkg -i iptux_0.4.4_i386.deb
»òÕߣ¬ÐµÄubuntuÀïÒѾÌí¼ÓÁËiptuxµÄÔ´£¬¿ÉÒÔÔÚеÃÁ¢ÀïËÑË÷iptux²¢°²×°¡£
ÔÙ»òÕß¿ÉÒÔµ½¹ÙÍøhttp://code.google.com/p/iptux/
ÏÂÔØÔ´´úÂë×Ô¼º±àÒë°²×°¡£
°²×°Íê³ÉºóÔÚÓ¦ÓóÌÐò££¾»¥ÁªÍøÃæ°åÏ¿ÉÒÔÕÒµ½iptux£¬ÔËÐкó½çÃæÓëʹÓÃÀàËÆQQ
2. ipmsg
Ê×Ïȵ½·É¸ë´«Êé¹ÙÍøÏÂÔØunix°æ±¾µÄÔ´Âë
http://www.ipmsg.org/archive/g2ipmsg-0.9.6.tar.gz
È»ºóÒÀ´ÎÊäÈëÒÔÏÂÃüÁî
sudo ./configure --prefix=/usr --sysconfdir=/etc --enable-systray
sudo make
sudo make install
Èç¹û±àÒë»ò°²×°¹ý³ÌÖгöÏÖÁËerror£¬¿ÉÒÔʹÓÃÒÔÏÂÃüÁî
sudo apt-get install gettext intltool
sudo apt-get install libxml-parser-perl libgnomeui-dev libpanel-applet2-dev
......
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 Compatible Regular Expressions£¬¼´PerlÕýÔò±í´ïʽ¿â£¬Ä¿Ç°×îеÄÊÇ7.9;
pcreµÄ¹Ù·½ÍøÕ¾Îª£ºhttp://www.pcre.org/
ÏÂÔØµØÖ·Îª£ºhttp://sourceforge.net/project/showfiles.php?group_id=10194
°²×°pcre
tar xzvf pcre-7.9.tar.gz
#cd pcre-7.9
#./configure
#make
#make install
°²×°nginx
tar -xzvf nginx-0.7.61.tar.gz
#cd nginx-0.7.61
#./configure --prefix=/usr/local/nginx
#make
#make install
Æô¶¯nginx
nginxĬÈÏÊDz»»á×Ô¼ºÆô¶¯µÄ
Æô¶¯ÃüÁîΪ£º/usr/local/nginx/sbin/nginx ......
¶¯Ì¬»ñÈ¡IP
ÐéÄâ»úµÄÍø¿¨Ê¹ÓÃNATµÄÁ¬½Ó·½Ê½£¨Ã»°ì·¨£¬µ¥Î»Ò»¸ö¶Ë¿ÚÖ»ÔÊÐí1¸öIP£¬Á¬hub¶¼Ã»·¨Óã©
pwd> vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTOµÄÖµ¸ÄΪdhcp£¬²¢±£´æ
ifdown eth0; ifup eth0;ÖØÆôÍø¿¨
ifconfig ·¢ÏÖ±»·ÖÅäÁ˸öIP£º10.0.2.15
ping www.163.com ͨ¹ý
¾²Ì¬ÉèÖÃIP
´ýÐø.... ......
×î½ü×¼±¸¸ø¹«Ë¾µÄÍøÕ¾¼Ü¹¹×öϵ÷Õû£¬°²×°²¿ÊðлúÆ÷µÄʱºòÓöµ½Ò»Ð©ÎÊÌ⣬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 using --without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using --with-http_ssl_module --with-openssl=<path> options.
ÏÂÔØÁËopenssl-0.9.8l.tar.tar°ü£¬´«µ½·þÎñÆ÷
./configure
make
make install
×îºó²é¿´µ±Ç°°æ±¾
openssl version
ϵͳÏÔʾ¸÷·½ÃæÕý³£
ÖØÐÂÔÙ°²×°nginx£¬°´ÕÕÍøÉϵÄÌáʾָ¶¨opensslµÄλÖÃ
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-openssl=/usr/local/ssl/include/openssl
ϵͳ¿ÉÒÔͨ¹ý./configure
µ«ÊÇ£¬ÔÚmake¹ý³Ìµ±ÖУ¬ÏµÍ³±¨ÁËÁ½¸öerror
ÉÏÍøÕÒÁ˺ܶà×ÊÁÏ£¬»¹ÊÇûÓнâ¾öÎÊÌ⣬ºóÀ´£¬ÎÊÁËÒ»¸ölinuxÀÏÊÖ£¬È˼ҸæËßÎÒnginxºÜÖÇÄܵģ¬ÄãÖ»ÐèÒªÖ¸ÏònginxµÄ°²×°Â·¾¶¾ ......
administer@administer-laptop:~/tem/tt$ cat hello.asm
[section .data]
strHello db "Hello, world!",0Ah
STRLEN equ $-strHello
[section .text]
global _start
_start:
mov edx,STRLEN
mov ecx,strHello
mov ebx,1
mov eax,4
int 0x80
mov ebx,0
mov eax,1
int 0x80
administer@administer-laptop:~/tem/tt$ nasm -f elf hello.asm -o hello.o
administer@administer-laptop:~/tem/tt$ ls
a b boot.asm boot.bin Coded f g hello hello.asm hello.c hello.o
administer@administer-laptop:~/tem/tt$ ld -s hello.o -o hello
ld: i386 architecture of input file `hello.o' is incompatible with i386:x86-64 outputadminister@administer-laptop:~/tem/tt$
ʹÓÃ64λ²Ù×÷ϵͳµÄÞÏÞΣ¬Ï൱µÄ¾½,¿Éϧµ±Ê±Ì°ÐÄÁË£¬
Ò»Ìý˵Intel´Ó¿áªÊ¼È«Ãæ²ÉÓÃ64λCPU£¬¾Í×°ÁË£¬囧¡£ ......