Linux»·¾³µÄAMP°²×° APACHE°²×°
2¡¢APACHEµÄ°²×°
1£©µ±È»»¹ÊÇÏÂÔØÔ´Âë°ü£¬È磺httpd-2.0.55.tar.gz£¬µØÖ·×Ô¼ºÕÒ……
2£©½âѹËõ£¬>tar -zxvf httpd-2.0.55.tar.gz
3£©½øÈë½âѹºóµÄhttpd-2.0.55£¬>cd httpd-2.0.55
4£©°²×°ÅäÖã¬>./configure --prefix=/opt/apache --enable-cgi
5£©±àÒ룬>make
6£©°²×°£¬>make install
7£©Æô¶¯£¬>/opt/apache/bin/apachectl start (restart ÖØÆô£¬stopÍ£Ö¹)
ÏÖÔÚ´ò¿ªä¯ÀÀÆ÷£¬ÊäÈëhttp://localhost£¬¼´¿É¿´µ½apacheµÄ»¶Ó½çÃæ¡£
×¢£º
1£©apacheÅäÖÃÎļþµÄÐ޸ģ¬Â·¾¶£º/opt/apache/conf/httpd.conf£¬ÐÞ¸ÄÍêÅäÖÃÎļþ¼ÇµÃÖØÆôapache
*ÐÞ¸ÄĬÈÏÊ×Ò³£ºDirectoryIndex index.html index.html£¬¸ÄΪ£ºDirectoryIndex index.html index.html index.php
*Ìí¼ÓÖ´ÐÐPHPÎļþ£ºAddType application/x-httpd-php .php
*ÐÞ¸ÄĬÈϱàÂ룺AddDefaultCharset utf-8
2£©apache½¨Á¢ÐéÄâ»ú
NameVirtualHost *:80
<VirtualHost *:80>
ServerName test.test.com
DocumentRoot /opt/htdocs/test
</VirtualHost>
Ïà¹ØÎĵµ£º
LinuxϵͳÐÅÏ¢²é¿´ÃüÁî´óÈ«
°æÈ¨ÉùÃ÷
£º¿ÉÒÔÈÎÒâ×ªÔØ£¬µ«×ªÔØÊ±±ØÐë±êÃ÷Ô×÷Õßcharlee¡¢ÔʼÁ´½Óhttp://tech.idv2.com/2008/01/11/linux-sysinfo-cmds
ÒÔ¼°±¾ÉùÃ÷¡£
<!--
google_ad_client = "pub-3705997236397030";
//ÎÄÕÂÄÚÈÝÓÒ²à¹ã¸æ
google_ad_slot = "1819082211";
google_ad_width = ......
¾²Ì¬¿âÓÃar -t YourFile
¶¯Ì¬¿âÓà nm -D YourFile
ÏÂÃæÊÇarºÍnmÃüÁîµÄһЩ²ÎÊý˵Ã÷
1.ar»ù±¾Ó÷¨
¡¡¡¡arÃüÁî¿ÉÒÔÓÃÀ´´´½¨¡¢Ð޸Ŀ⣬Ҳ¿ÉÒÔ´Ó¿âÖÐÌá³öµ¥¸öÄ£¿é¡£¿âÊÇÒ»µ¥¶ÀµÄÎļþ£¬ÀïÃæ°üº¬Á˰´ÕÕÌØ¶¨µÄ½á¹¹×éÖ¯ÆðÀ´µÄÆäËüµÄһЩÎļþ£¨³Æ×ö´Ë¿âÎļþµÄmember£©¡£ÔʼÎļþµÄÄÚÈÝ¡¢Ä£Ê½¡¢Ê±¼ä´Á¡¢ÊôÖ÷¡¢×éµÈÊôÐÔ¶¼±£ÁôÔÚ¿âÎ ......
һЩ³£ÓõĻù±¾ÃüÁî:
uname -a ²é¿´Äں˰汾
ls -al ÏÔʾËùÓÐÎļþµÄÊôÐÔ
pwd ÏÔʾµ±Ç°Â·¾¶
cd - ·µ»ØÉÏÒ»´ÎĿ¼ &nbs ......
¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst GRUBÉèÖÃ
/boot/vmlinuz ÄÚºË
  ......
²Î¿¼¡¶linuxÄÚºËÍêȫעÊÍ¡·ºÍÍøÉÏÏà¹ØÎÄÕÂ
/*
* ¿ØÖÆÌ¨ÏÔʾ²Ù×÷
*/
/*
* linux/kernel/console.c
*
* (C) 1991 Linus Torvalds
*/
/*
* console.c
*
* This module implements the console io functions
* 'void con_init(v ......