LinuxÏÂPHP+MYSQL+APACHEÅäÖùý³Ì (Õª)µÚ1/2Ò³

5年以前  |  阅读数:873 次  |  编程语言:PHP 

ÐeÒªÈi¼þÈçÏ£º
apache£º http://www.apache.org
mysql£º http://www.mysql.com
php£º http://www.php.net/downloads.php
gd£º http://www.boutell.com/gd/#buildgd
ZendOptimizer http://www.zend.org/products/zend_optimizer
Gettext http://ftp.gnu.org/pub/gnu/gettext/
netpbm http://sourceforge.net/projects/netpbm/
ËuÓõÄÈi¼þ°ae±¾ÈçÏ£º
Redhat Enterprise As 4
(apache)httpd-2.0.50.tar.gz
mysql-standard-5.0.18-linux-i686.tar.gz
php-5.1.2.tar.gz
gd-2.0.33.tar.gz
ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
Imap
Gettext

Ò».°²×°MYSQL mysql-standard-5.0.18-linux-i686.tar.gz
ÎÒ°ÑËuÈ«²¿ÏÂÔص½/usr/local/softwareĿ¼ÏÂ
½øÈe°²×°°uĿ¼£ºcd /usr/local/software
1¡¢[root@localhost software]# chmod 755 mysql-standard-5.0.18-linux-i686.tar.gz
2¡¢[root@localhost software]# tar xfz mysql-standard-5.0.18-linux-i686.tar.gz
½aѹºoÉu³Émysql-standard-5.0.18-linux-i686Ŀ¼,ÎÒÃǽøÈe¸ÃĿ¼:
3¡¢[root@localhost software]# cd mysql-standard-5.0.18-linux-i686
½øÈeºo¾Í¿ªÊ¼ÅaÖÃmysqlÁË,ÅaÖùý³ÌÖÐÎÒÃÇÒª¸ømysqlÉeÖÃÒ»¸o
°²×°Ä¿Â¼,ÎÒÃÇÉeÖÃÔÚ /usr/local/mysql ÏÂ,ÒÔΪ°ÑÎļþŵ½Ò»¸oµØ½±È½ÏÈÝÒ×¹ÜÀi,Èç¹uÄa»¹Ïe»ñµÃ¸u¶aµÄÅaÖÃÐÅÏ¢,ʹÓà ./configure --help:
ÔÚÕaÀiÎÒÒªÌرðÇ¿µ÷ÔÚ±aÒeµÄʱºoҪѡÔñºÃMYSQLµÄĬÈϱaÂe£¬ÒoΪÈç¹u²»Ñ¡Ôñ°´Ä¬ÈÏ°²×°µÄʱºoÔÚJSPÖоͲ»Ö§³ÖGBK±aÂeÁË
ËuÒÔÎÒÕaÑu±aÒe
ÃÎÊmysqlÒªÒ»¸oרÃŵÄÓû§,¶øÇÒ±ØÐe¸øÏaÓ¦µÄÃÎÊȨÏÞ,ÕaÀiÎÒÃǾÍÉeÖÃrootºÍmysqlÓÐȨÏÞÃÎÊ.
7¡¢ÎÒÃÇÏȽ¨Á¢Ò»¸omysqlºÍmysqlÓû§À´
ÃÎÊmysql:
[root@localhost mysql-standard-5.0.18-linux-i686]# groupadd mysql #½¨Á¢mysql×e
8¡¢[root@localhost mysql-standard-5.0.18-linux-i686]# useradd mysql -g mysql #½¨Á¢mysqlÓû§²¢ÇÒ¼ÓÈeµ½mysql×eÖÐ
9¡¢½¨Á¢Óû§ºoÎÒÃǾͳoʼ»¯±i (×¢Òa:±ØÐeÏÈÖ´Ðб¾²½Öeºo²ÅÄܽøÐÐÒÔϲ½Öe)
[root@localhost mysql-standard-5.0.18-linux-i686]# ./scripts/mysql_install_db --user=mysql

³oÊÔ»¯±i²¢ÇÒ¹ae¶¨ÓÃmysqlÓû§À´ÃÎʳoʼ»¯±iÒÔºo¾Í¿ªÊ¼¸ømysqlºÍrootÓû§Ée¶¨ÃÎÊȨÏÞ,£»

10¡¢[root@localhost mysql-standard-5.0.18-linux-i686]# mv mysql-standard-5.0.18-linux-i686 /usr/local/mysql
È»ºoÉeÖÃȨÏÞ
cd /usr/local/mysql

11¡¢[root@localhost mysql]# chown -R root . #Ée¶¨rootÄÜÃÎÊ/usr/local/mysql
12¡¢[root@localhost mysql]# chown -R mysql data #Ée¶¨mysqlÓû§ÄÜ
ÃÎÊ/usr/local/mysql/data ,ÀiÃae´aeµÄÊÇmysqlµÄÊý¾Ý¿aÎļþ
13¡¢[root@localhost mysql]# chgrp -R mysql . #Ée¶¨mysql×eÄܹ»*ÃÎÊ/usr/local/mysql
14¡¢ÉeÖÃÍe³Éºo,»u±¾ÉϾÍ×°ºÃÁË,ºÃÁË,ÎÒÃÇÔËÐÐÒ»ÏÂÎÒÃǵÄmysql:
[root@localhost mysql]# /usr/local/mysql/bin/mysqld_safe --user=mysql &
Èç¹uûÓÐÎÊÌaµÄ»°,Ó¦¸Ã»a³oÏÖÀaËÆÕaÑuµÄÌaʾ:
[1] 42264

Starting mysqld daemon with databases from /usr/local/mysql/var

Õa¾ÍÖ¤Ã÷Äa°²×°³É¹¦ÁË
ÓÃÈçÏÂÃuÁiÐÞ¸ÄrootÃÜÂe£¬Ä¬ÈÏ°²×°ÃÜÂeΪ¿Õ£¬ÎªÁË°²È«Äa±ØÐeÂiÉÏÐÞ¸Ä
15¡¢/usr/local/mysql/bin/mysqladmin -uroot password xksoft321
ÏÖÔÚÐ޸ĵÄÃÜÂeΪ:xksoft321
16.ÉeÖÿª»u×Ô¶¯Æo¶¯
cp support-files/mysql.server /etc/init.d/

¶þ¡¢°²×°apache
½øÈe°²×°°uĿ¼£ºcd /usr/local/software
1¡¢# chmod 755 httpd-2.0.50.tar.gz
2¡¢# tar xfz httpd-2.0.50.tar.gz
3¡¢# cd httpd-2.0.50
¿ªÊ¼ÅaÖÃAPACHE
4¡¢#./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-mods-shared=most

./configure --prefix=/usr/local/apache2 --enable-so --enable-module=most --enable-shared=max --enable-rewrite

./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-access

./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=all ¨C-enable-rewrite=shared

5¡¢# make
6¡¢# make install
7¡¢²i¿´±aÒe½øapacheµÄÄ£¿e£º

/usr/local/apache2/bin/httpd -l

compiled-in modules:
http_core.c
mod_so.c
¿´µ½ÒÔÉϵÄÐÅÏ¢±iÃ÷apacheÖ§³Ödso½Ê½ÁË¡£ÕaÑu¾Í¿ÉÒÔÓÃdsoµÄ½Ê½°ÑphpºÍresinµÄÄ£¿e¼Ó½øÀ´¡£

Èý¡¢°²×°GD
½øÈe°²×°°uĿ¼£ºcd /usr/local/software
1¡¢tar -zxvf gd-2.0.33.tar.gz
2¡¢cd gd-2.0.33
3¡¢./configure --prefix=/usr/local/gd2
4¡¢make
5¡¢make install

Gettext
1 .tar xfz
2 cd
3 ./configure ¨Cwith-prefix=/usr/local/gettext
4 make
5 make install

ËÄ¡¢°²×°php
½øÈe°²×°°uĿ¼£ºcd /usr/local/software
1¡¢# tar xfz php-5.1.2.tar.gz
2¡¢½aѹºo½øÈeĿ¼:

cd php-5.1.2

3¡¢½øÐÐÅaÖÃ,ÕaÒ»²½±È½Ï¹Ø¼u,Ò»¶¨ÒªÉeÖúÃ,ÌرðÊÇÒª¿¼Âǵ½ÄaÒªÖ§³Öʲô,±ÈÈçGD¿a,xml,mysqlµÈµÈ,Èç¹uÏeÖªµÀÏeϸµÄÅaÖÃ,Ö´ÐÐ ./configure --helpÀ´»ñµÃ:

./configure --enable-mbstring=LANG --with-mysql=/usr/local/mysql --with-gd=/usr/local/gd2 --with-apxs2=/usr/local/apache2/bin/apxs ¨Cwith-gettext=/usr/local/gettext

¨D¨Denable-mbstring=LANG£¨½a¾ophp extension:mbstringµÄÎÊÌa£(C)
Èç¹uÉÏÃaeµÄÅaÖÃûÓдiÎoµÄ»°,ÄÇôӦ¸Ã×iºo»aÏÔʾ¸ÐлʹÓÃPHPµÈ×ÖÑu,ÄÇô֤Ã÷ÅaÖóɹ¦,Èç¹uÉÏÃaeµÄÅaÖÃÑ¡Ïi²»Ö§³ÖµÄ»°,»aÌaʾ´iÎo.
±ÈÈçÄaûÓа²×°mysql,ÄÇô--with-mysql¾ÍÎިʹÓÃ,ËuÒÔÒ»¶¨Òª×¢Òa¶ÔӦѡÏiϵͳÊÇñÄܹ»Ö§³Ö,Èç¹u³oÏÖ´iÎo,ÄÇô¾ÍÏÈ°²×°¶ÔÓ¦µÄ³ÌÐo£¬»oÕßÈ¥µoÏa¹ØÑ¡Ïi£¬ÅaÖÃÖ®ºo¾Í½øÐбaÒe:
4¡¢# make
±aÒe³É¹¦ºo³oÏÖ"Build complete."×ÖÑu,ÄÇô¾Í¿ÉÒÔ½øÐа²×°ÁË:
5¡¢# make install
6¡¢°²×°Íe³Éºo°Ñphp.ini-dist¸´ÖƵ½/usr/local/lib/£¬²¢ÖØÃuÃuΪphp.ini

cp php.ini-dist /usr/local/lib/php.ini

»u±¾µ½ÕaÀiPHP¾Í°²×°³É¹¦ÁË,Èç¹uÖмa³oÏÖ´iÎo,³ýÁËÔÚÅaÖõÄʱºoûÓÐÑ¡¶ÔÑ¡ÏiÖ®ºoÒ»°a¶¼²»³oÏÖ´iÎo.
7¡¢ÎªÁËÈÃApacheÄܹ»Ö±½Ó½aÎophp,ÎÒÃÇ»¹Òª½øÐÐÒ»Ð(C)ÅaÖÃ.

vi /usr/local/apache2/conf/httpd.conf

ÔÚhttpd.confÎļþÖУ¬Ìi¼Ó£¨Ó¦¸Ã½«ÒÔÏÂÁ½¾aÌi¼ÓÔÚÆaËuAddTypeÖ®ºo£(C)
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
È*±£ÎļþÖÐÓÐÒÔÏÂÒ»¾a»°£¬Ã»ÓоÍ×Ô¼ºÌi¼ÓÔÚËuÓÐLoadModuleÖ®ºo£º
LoadModule php5_module modules/libphp5.so
°Ñindex.php¼ÓÈeÒÔÏÂDirectoryIndexºoÃae
DirectoryIndex index.php index.html index.html.var
ºÃÁË,ÔÚviÖÐʹÓÃ":wq"±£´aehttpd.confÎļþ£¬Í˳ovi¡£
8¡¢Æo¶¯apache server:

/usr/local/apache2/bin/apachectl restart

ÏÖÔÚapache¾ÍÄܹ»ÔËÐÐphpÁË,д¸oÎļþ²aÊÔÒ»ÏÂ,ÔÚ/usr/local/apache2/htdocsĿ¼Ï£¬Ð½¨Ò»¸ophpinfo.phpÎļþ£¬
ÎļþÖÐÖ»ÓÐÒ»ÐдuÂe:
<? phpinfo(); ?>
±£´ae´ËÎļþ, ÔÚÄaµÄa¯ÀÀÆ÷ÖÐÊaÈehttp://localhost/phpinfo.php£¬ÄaÓ¦¸Ã¿´µ½PHPµÄϵͳÐÅÏ¢¡£
Èç¹u³oÏÖ´iÎo,±ÈÈçÌaʾÄaÏÂÔØphpinfo.php,ÄÇôapache¾ÍÊÇ»¹ÎÞ¨½aÎophpÎļþ,ÄÇôÇe×Ðϸ¼i²eÒÔÉϵIJÙ×÷ÊÇñÕýÈ*.

Îa¡¢ZendOptimizer
½øÈe°²×°°uĿ¼£ºcd /usr/local/software
1¡¢# tar xfz ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
2¡¢# cd ZendOptimizer-2.6.2-linux-glibc21-i386
3¡¢# ./install.sh
4¡¢ÎÊConfirm the location of your php.ini fileµÄʱºo´oÈe/usr/local/lib/
ÎÊAre you using Apache web server?µÄʱºoÑ¡YES

Áu¡¢
1¡¢./configure --prefix=/usr
2¡¢make
3¡¢make check
4¡¢make install

ËaeϵͳÆo¶¯þÎñÅaÖÃ
Èç¹uÒªÔÚ¼ÆËa»uÆo¶¯µÄʱºo¾ÍÔËÐÐhttpd
þÎñ,¿ÉÒÔÔÚ/etc/rc.d/rc.localÎļþÖмÓÈeÕa¼¸ÐÐ:

start apache

/usr/local/apache2/bin/apachectl start

Èç¹uÆo¶¯²»ÁË£¬Çe¸øÏaÓ¦µÄÆo¶¯½Å±¾¿ÉÖ´ÐÐȨÏÞ
±ÈÈçapacheÆo¶¯²»ÁË chmod a=x apachectl

ΪÁËÒÔºo²Ù×÷²»ÒªÊaÈeÀaËÆ/usr/local/apache2/binµÄ¾¶£¬ÔÚ/etc/profileÎļþÖÐÌi¼Ó$PATH±aÁ¿
°Ñapache¡¢tomcatºÍmysqlµÄÂ
¾¶¶¼¼ÓÉÏ

¸½£º
Ò»¡¢½¨Á¢resinºÍapacheµÄÐeÄaÖ÷»u
ÀýÈ罨Á¢µÄÊÇtes1.jsp.com test2.jsp.com Á½¸oÐeÄaÖ÷»u

vi /usr/java/httpd2/conf/httpd.conf
¸´ÖÆÈçÏÂÄÚÈݵ½httpd.confÀi
NameVirtualHost 192.168.0. ÐeÄaÖ÷»u½¨Á¢ËuÔÚµÄIP
<VirtualHost 192.168.1.
>
DocumentRoot /home/jsp1/ ÎļþËuÔÚĿ¼
ServerName tes1.jsp.com *ÃÎʵÄÓoÃu

VirtualHost 192.168.1.*> DocumentRoot /home/jsp2/ ServerName test2.jsp.com vi /usr/java/resin/conf/resin.conf ²eÕÒÈçÏ´uÂe²¢Ð޸ģº ±£´ae´ÓÆoapacheºÍresin tes1.jsp.com ºÍtes2.jsp.com ÐeÄaÖ÷»u¿ÉÒÔÔËÐÐÁË ¿ÉÒÔ×oÈçϲaÊÔhttp://localhost/caucho-status/ ¿ÉÒÔ¿´µ½²aÊÔÃaeÉÏÓÐ Virtual Host: tes1.jsp.com:80 Virtual Host: tes2.jsp.com:80 Ö¤Ã÷JSPÐeÄaÖ÷»u¹¤×÷ºÜÕý³£ ¶þ¡¢linuxÈi¼þ°²×° ´ÓÍøÕ¾»oÕßÊǹaÅÌÉÏÕÒµ½µÄLinuxÈi¼þ°u£¬³£¼uµÄ¸ñʽ°uÀ¨ÓÐrpm,deb,tar,gz,tgz,zip,bz2µÈµÈ¡£ÎÒÃÇƽʱÓõÄ×i¶aµÄ¿ÖÅÂÊÇrpmºÍtgzÁË£¬¾Ýͳ¼Æ£¬ÔÚÍøÉÏ×iÁ÷Ðеİae±¾Ó¦¸ÄÊÇredhatºÍmandrakeÁË£¬¶øÕaÁ½¸o°ae±¾¶¼ÊÇÓÃrpm*a×° µÄ£¬tarÊÇ×iͨÓõÄÈi¼þ°u¸ñʽ£¬¼¸ºoÿ¸olinuxÈi¼þ¶¼»aÌa¹(C)tarµÄ¸ñʽµÄÈi¼þ°u£¬ÒoΪÕaÖÖ¸ñʽµÄÈi¼þ°uÈκΰae±¾µÄlinux¶¼Ö§³Ö£¬ËuÒÔ´o¼ÒÖÁÉÙÒªÁ˽atarºÍrpmµÄʹÓÃ*½*¨¡£ÖÁÓÚdeb¿ÉÓÃalien¹¤¾ßת»»³Étgz»orpm*½Ê½¡£bz2¿ÉÓÃbunzip2½a°u¼´¿É¡£ 1¡¢RPMÎļþµÄ°²×° RPMÊÇRedHat Package Manager£¨RedHatÈi¼þ°u¹ÜÀi¹¤¾ß£(C)µÄËoд£¬ÕaÒ»Îļþ¸ñʽÃu³ÆËaÈ»´oÉÏÁËRedHatµÄ±eÖ¾£¬µ«ÊÇÆaԭʼÉe¼ÆÀiÄiÊÇ¿ª*ÅʽµÄ£¬ÏÖÔÚ°uÀ¨OpenLinux£¬mandrake¼°Turbo LinuxµÈLinuxµÄ*Ö*¢°ae±¾¶¼ÓвÉÓ㬿ÉÒÔËaÊǹ«ÈϵÄÐÐÒµ±e×¼ÁË¡£ RPMÎļþÔÚLinuxϵͳÖеݲװ×iΪ¼o±a¡£ÒÔÖøÃuµÄͼÏñ´¦ÀiÈi¼þXVΪÀý: ÔÚTerminalÖУ¬»u±¾µÄ°²×°Ö¸ÁiÈçÏ£º rpm £­i xv£­3.10a£­13.i386.rpm Èç¹uÄaµÄÁ¬ÍøËÙ¶È×a¹»¿i£¬Ò²¿ÉÒÔÖ±½Ó´ÓÍøÂçÉÏ°²×°Ó¦ÓÃÈi¼þ£¬Ö»ÐeÒªÔÚÈi¼þµÄÎļþÃuÇ°¼ÓÉÏÊʵ±µÄURLÂ*¾¶£º rpm £­i ftp://ftp.trilon.com/pub/xv/xv£­3.10a£­13.i386.rpm ×÷Ϊһ¸oÈi¼þ°u¹ÜÀi¹¤¾ß£¬RPM¹ÜÀi×ÅϵͳÒÑ°²×°µÄËuÓÐRPM³ÌÐo×e¼þµÄ×ÊÁÏ¡£ÎÒÃÇÒ²¿ÉÒÔʹÓÃRPMÀ´Ð¶ÔØÏa¹ØµÄÓ¦ÓóÌÐo¡£ rpm £­e xv RPMµÄ³£ÓòÎÊý»¹°uÀ¨£º £­vh£ºÏÔʾ°²×°½ø¶È£» £­U£ºÉý¼¶Èi¼þ°u£» £­qpl£ºÁгoRPMÈi¼þ°uÄÚµÄÎļþÐÅÏ¢£» £­qpi£ºÁгoRPMÈi¼þ°uµÄÃeÊoÐÅÏ¢£» £­qf£º²eÕÒÖ¸¶¨ÎļþÊoÓÚÄĸoRPMÈi¼þ°u£» £­Va£ºÐ£ÑeËuÓеÄRPMÈi¼þ°u£¬²eÕÒ¶ªÊ§µÄÎļþ£» ¸uΪÏe¾¡µÄ²ÎÊý¼°ÆaÓÃ*¨¿ÉÒÔ²e¿´RPMµÄ°iÖuÎĵµ¡£ ÔÚX£­WindowÖУ¬RPMÎļþµÄͼÐλ¯°²×°¼°¹ÜÀi*½Ê½¶ÔÓû§À´Ëµ£¬ÏԵøuΪÓѺá£ÔÚkdeÉÏÏÈ°²×°ºÃkpackageºo£¬°²×°rpm½o½oÊÇ°´Ò»ÏÂÊo±e¾Í¿ÉÒÔÁË£¬±Èwindows 98¸u*½±a¡£µ«ÊÇÕa±ØÐeÏÈ°²×°kde. ÎÒ»¹ÊǽeÉܸu³£ÓõÄ*½*¨°É£¬ÈÔÒÔXVÈi¼þΪÀý£¬ÔÚLinuxµÄÎļþ¹ÜÀiÆ÷ÖÐÕÒµ½xv£­3.10a£­13.i386.rpmÎļþÖ®ºo£¬ÓÃÊo±eÓÒ»÷Ëu£¬ÔÚµ¯³o²Ëµ¥ÖоͿÉÒÔÕÒµ½×¨ÎªRPMÈi¼þ°u×¼±¸µÄÈý¸oÖ¸Ái£ºShow Info¡¢Upgrade¡¢Install¡£ Ñ¡Ôñ¡°Show Info¡±Ö®ºo£¬ÎÒÃǽ«¿ÉÒÔ¿´µ½ÈçͼËuʾµÄÈi¼þ°uÐÅÏ¢´°¿Ú¡£´°¿Ú*ÖΪÈý¸o²¿*Ö£¬¶¥¶ËÏÔʾµÄÊÇÈi¼þÃu¡¢´oС¡¢´´½¨¼°°²×°ÈÕÆÚÒÔ¼°¿ª*¢ÕßÍøÕ¾µÈÏa¹ØÐÅÏ¢£»ÔÚÖмaµÄ*½¿oÄÚ£¬ÊǹØÓÚÈi¼þµÄ¸ÅÊo£»¶øÏÂÃaeÏÔʾµÄÔoÊÇÈi¼þ°uÄÚ°uº¬µÄËuÓÐÎļþ¼°ÆaÂ*¾¶ÐÅÏ¢£¬Ëu»a¸aeËßÄaÈi¼þ°uÄڵĸ÷¸oÎļþ½«±»°²×°µ½ÏµÍ³µÄÄÄÐ(C)Ŀ¼ÖУ¬ ÁoÒaÕaÐ(C)ÐÅÏ¢µÄºÃ´¦ÊÇ£¬Äa¿ÉÒÔºÜÈÝÒ×µØÕÒµ½Æo¶¯³ÌÐoµÄÂ*¾¶¡£ ´Ëʱµa»÷µ×²¿µÄ¡°Install¡±»oÕß¡°Upgrade¡±°´Å¥Ö®ºo£¬½«¿ªÊ¼½øÐÐÈi¼þµÄ°²×°»oÕßÉý¼¶£¬´Ëʱ»¹»aµ¯³oÒ»¸oÌaʾ°²×°½ø¶ÈµÄ´°¿Ú¡£ RPMÈi¼þ°u½ÏÖ®ÓÚÆaËuÀaÐ͵ÄÈi¼þ°u£¬ÓÐ×ÅÐi¶aÓÅÊÆ£¬µ«ÊDz¢²»ÊÇ˵RPMÈi¼þµÄ°²×°¶¼ÊÇÒ»*«*ç˳µÄ¡£³£¼uµÄ´iÎo°uÀ¨***ͼ°²×°Ò»¸oÒѾ­°²×°ºÃÁ˵ÄÈi¼þ¡¢ËuÒª°²×°µÄÈi¼þÐeÒªÆaËuÈi¼þ»oÕßϵͳ¿aÎļþµÄÖ§³Ö£¨´ËʱӦ¸ÃÏÈÐа²×°ÕaÐ(C)Ïa¹ØÈi¼þ»oÕßϵͳ¿aÎļþ£(C)µÈ£¬ÇeÐζ¼ºÍWindowsÀaËÆ¡£

2¡¢tarµÄ°²×°
tar.gz¡¢tar.Z¡¢tgz¡¢bz2µÈÎļþ¸ñʽҪÏȽaѹΪtarºoÔÙÓÃtar½a°u°²×°¡£½aѹËo¼°½a°uÖ¸Ái¾ÙÀý¼oÊoÈçÏ£º
1£®½axv.tar.gz£ºtar zxf xv.tar.gz
2£®½axv.tar.Z£ºtar zxf xv.tar.Z
3£®½axv.tgz£ºtar zxf xv.tgz
4£®½axv.bz2£ºbunzip2 xv.bz2
5. ½axv.tar£ºtar xf xv.tar
½a°uºoµÃµ½µÄÒ»¶ÑÎļþ£¬Í¨³£¶¼»a´aeÅÔÚÒ»¸oĿ¼ÀiÃae¡£ÊÓÈi¼þ×÷ÕߵIJ»Í¬£¬ÓÐÐ(C)»aÊÇÒѾ­±aÒeºÃµÄ³ÌÐo£¬¸u¶aµÄÔoÊÇÐeÒª×Ô¼ºÔÙÐбaÒeµÄÔ´´uÂe¡£½øÈeÏaӦĿ¼ºo£¬Ê¹Óá°ls £­F £­color¡±Ö¸Ái£¬¿ÉÖ´ÐгÌÐo½«»aÒÔ´ø¡°£ª¡±±e¼ÇµÄÁÁÂÌÉ«ÏÔʾ£¬¶ÔÓÚÒѱaÒeºÃµÄ³ÌÐo£¬Ö±½Ó¼uÈe´ø¾¶µÄÖ¸ÁiÐм´¿ÉÔËÐгÌÐo¡£
½¨Òe½aѹºoÏÈÔĶÁ˵Ã÷Îļþ£¬Ó¦¸ÃÏÈÓÃviµÈÎÄÊe±a¼­Æ÷ÔĶÁÒ»ÏÂÈi¼þĿ¼ÖеÄReadme¡¢InstallµÈÖØÒªµÄÏa¹ØÎĵµ£¬ÔÚÕaÀiÄa»aÕÒµ½Èi¼þÏe¾¡µÄ±aÒe²½Öe¼°×¢ÒaÊÂÏi,¿ÉÒÔÁ˽a°²×°ÓÐÄÄÐ(C)ÐeÇo£¬ÓбØҪʱ»¹Ðe¸Ä¶¯±aÒeÅaÖá£
ÓÐÐ(C)Èi¼þ°uµÄÔ´´uÂeÔÚ±aÒe°²×°ºo¿ÉÒÔÓÃmake installÃuÁiÀ´½øÐÐжÔØ£¬Èç¹u²»Ìa¹(C)´Ë¹¦ÄÜ£¬ÔoÈi¼þµÄжÔرØÐeÊÖ¶¯É¾³ý¡£ÓÉÓÚÈi¼þ¿ÉÄܽ«ÎļþÖÉ¢µØ°²×°ÔÚϵͳµÄ¶a¸oĿ¼ÖУ¬ÍuÍuºÜÄÑ°ÑËuɾ³ý¸É¾»£¬ÄÇÄaÓ¦¸ÃÔÚ±aÒeÇ°½øÐÐÅaÖã¬Ö¸¶¨Èi¼þ½«Òª°²×°µ½Ä¿±e¾¶£º./configure --prefix=Ŀ¼Ãu£¬ÕaÑu¿ÉÒÔʹÓá°rm -rf Èi¼þĿ¼Ãu¡±ÃuÁiÀ´½øÐиɾ»³¹µ×µÄжÔØ¡£ÓeÆaËu°²×°½Ê½Ïa±È£¬ÐeÒªÓû§×Ô¼º±aÒe°²×°ÊÇ×iÄѵģ¬ËuÊʺÏÓÚʹÓÃLinuxÒÑÓÐÒ»¶¨¾­ÑeµÄÈË£¬Ò»°a²»ÍƼo³oѧÕßʹÓá£
ͨ³£µÄ±aÒe²½Öe»aÊÇÕaÑu£º
./configure
make
make install£¨ÐeҪȡµÃrootÉi
ݲÅÄÜÖ´ÐдËÖ¸Ái£(C)
жÔØ¿ÉÓãºmake uninstall »o ÊÖ¶¯É¾³ý
±aÒeÍe³ÉÖ®ºo£¬ÔÚµ±Ç°Ä¿Â¼»oÕßÊÇÃuΪsrcµÄ×ÓĿ¼Ï£¬¿ÉÒÔºÜÈÝÒ×µØ*¢ÏÖÈi¼þµÄ¿ÉÖ´ÐгÌÐo¡£ÖÁ´Ë£¬Èi¼þµÄ°²×°±a¸aeÒ»¶ÎÂa¡£

µ±Ç°1/2Ò³ 12ÏÂÒ»Ò³ÔĶÁÈ«ÎÄ

 相关文章:
PHP分页显示制作详细讲解
SSH 登录失败:Host key verification failed
获取IMSI
将二进制数据转为16进制以便显示
获取IMEI
文件下载
贪吃蛇
双位运算符
PHP自定义函数获取搜索引擎来源关键字的方法
Java生成UUID
发送邮件
年的日历图
提取后缀名
在Zeus Web Server中安装PHP语言支持
让你成为最历害的git提交人
Yii2汉字转拼音类的实例代码
再谈PHP中单双引号的区别详解
指定应用ID以获取对应的应用名称
Python 2与Python 3版本和编码的对比
php封装的page分页类完整实例