linuxÏÂapche+php+mysqlµÄ±àÒë°²×°(8)
# cp share/mysql/my-huge.cnf /etc/my.cnf
# cp share/mysql/mysql.server /etc/rc.d/init.d/mysqld //¿ª»ú×Ô¶¯Æô¶¯ mysql¡£
# chmod 755 /etc/rc.d/init.d/mysqld
# chkconfig --add mysqld
# /etc/rc.d/init.d/mysqld start //Æô¶¯ MySQL
# bin/mysqladmin -u root password "password_for_root"
# service mysqld stop //¹Ø±Õ MySQL
8. ±àÒë°²×° Apache
# cd /usr/local/src
# wget http://www.ip97.com/apache.org/httpd/httpd-2.2.3.tar.gz
# tar zxvf httpd-2.2.3.tar.gz
# cd httpd-2.2.3
# CHOST="i686-pc-linux-gnu" CFLAGS="-O3 -msse2 -mmmx -mfpmath=sse -funroll-loops -mcpu=pentium4 -march=pentium4 -pipe -fomit-frame-pointer" ./configure --prefix=/usr/local/apache2 --enable-module=so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared --enable-cache --enable-file-cache --enable-mem-cache --enable-disk-cache --enable-static-support --enable-static-htpasswd --enable-static-htdigest --enable-static-rotatelogs --enable-static-logresolve --enable-static-htdbm --enable-static-ab --enable-static-checkgid --disable-cgid --disable-cgi --disable-userdir --with-mpm=worker --enable-authn-dbm=shared --enable-authn-anon=shared --enable-authn-dbd=shared --enable-auth-basic=shared
# make
# make install
# echo '/usr/local/apache2/bin/apachectl start ' >> /etc/rc.local //½« apachectl µÄµ÷ÓüÓÈëµ½ÄãµÄϵͳÆô¶¯ÎļþÖС£
×¢½â£º
./configure //ÅäÖÃÔ´´úÂëÊ÷
--prefix=/usr/local/apache2 //ÌåϵÎÞ¹ØÎļþµÄ¶¥¼¶°²×°Ä¿Â¼PREFIX £¬Ò²¾ÍApacheµÄ°²×°Ä¿Â¼¡£
--enable-module=so //´ò¿ª so Ä£¿é£¬so Ä£¿éÊÇÓÃÀ´Ìá DSO Ö§³ÖµÄ apache ºËÐÄÄ£¿é
--enable-deflate=shared //Ö§³ÖÍøҳѹËõ
--enable-expires=shared //Ö§³Ö HTTP ¿ØÖÆ
--enable-rewrite=shared //Ö§³Ö URL ÖØд
--enable-cache //Ö§³Ö»º´æ
--enable-file-cache //Ö§³ÖÎļþ»º´æ
--enable-mem-cache //Ö§³Ö¼ÇÒ仺´æ
--enable-disk-cache //Ö§³Ö´ÅÅÌ»º´æ
--enable-static-support //Ö§³Ö¾²Ì¬Á¬½Ó(ĬÈÏΪ¶¯Ì¬Á¬½Ó)
--enable-static-htpasswd //ʹÓþ²Ì¬Á¬½Ó±àÒë htpasswd - ¹ÜÀíÓÃÓÚ»ù±¾ÈÏÖ¤µÄÓû§Îļþ
--enable-static-htdigest //ʹÓþ²Ì¬Á¬½Ó±àÒë htdigest - ¹ÜÀíÓÃÓÚÕªÒªÈÏÖ¤µÄÓû§Îļþ
--enable-static-rotatelogs //ʹÓþ²Ì¬Á¬½Ó±àÒë rotatelogs - ¹ö¶¯ Apache ÈÕÖ¾µÄ¹ÜµÀÈÕÖ¾³ÌÐò
--enable-static-logresolve //ʹÓþ²Ì¬Á¬½Ó±àÒë logresolve - ½âÎö Apache ÈÕÖ¾ÖеÄIPµØַΪÖ÷»úÃû
--enable-static-htdbm //ʹÓþ²Ì¬Á¬½Ó±àÒë htdbm - ²Ù×÷ DBM ÃÜÂëÊý¾Ý¿â
--enable-static-ab //ʹÓþ²Ì¬Á¬½Ó±àÒë ab - Apache HTTP ·þÎñÆ÷ÐÔÄܲâÊÔ¹¤¾ß
--enable-static-checkgid //ʹÓþ²Ì¬Á¬½Ó±àÒë checkgid
--disable-cgid //½ûÖ¹ÓÃÒ»¸öÍⲿ CGI ÊØ»¤½ø³ÌÖ´ÐÐCGI½Å±¾
--disable-cgi //½ûÖ¹±àÒë CGI °æ±¾µÄ PHP
--disable-userdir //½ûÖ¹Óû§´Ó×Ô¼ºµÄÖ÷Ŀ¼ÖÐÌṩҳÃæ
--with-mpm=worker // ÈÃapacheÒÔworker·½Ê½ÔËÐÐ
--enable-authn-dbm=shared // ¶Ô¶¯Ì¬Êý¾Ý¿â½øÐвÙ×÷¡£RewriteʱÐèÒª¡£
½«apacheÉèÖóɿª»ú×ÔÆô¶¯:
ÔÚ/etc/rc.d/rc.localÎļþÖмÓÈëÒ»ÐÐ
/usr/local/apache/bin/apachectl start
ÕâÑùÿ´ÎÖØÐÂÆô¶¯ÏµÍ³ÒÔºó,apacheÒ²»áËæϵͳһÆðÆô¶¯.
»òÕß
# cp /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd
È»ºó vi /etc/rc.d/init.d/httpd Ìí¼Ó(#!/bin/shÏÂÃæ)
# chkconfig: 2345 10 90
# description: Activates/Deactivates Apache Web Server
×îºó£¬ÔËÐÐchkconfig°ÑApacheÌí¼Óµ½ÏµÍ³µÄÆô¶¯·þÎñ×éÀïÃ棺
# chkconfig --add httpd
# chkconfig httpd on
9¡¢±àÒëphp 5.2.0
# cd /usr/local/src
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ