Linux+Apache+Mysql+PhpÏêϸ°²×°Îĵµ
ËùÐèÈí¼þÔ´´úÂë°ü£º
httpd-2.2.4.tar.gz mysql-5.0.27.tar.gz php-5.2.1.tar.bz2
freetype-2.3.2.tar.gz gd-2.0.34.tar.gz jpegsrc.v6b.tar.gz
libpng-1.2.8.tar.bz2 libxml2-2.6.24.tar.bz2 zlib-1.2.2.tar.gz
°²×°Ë³Ðò£ºapache -> mysql -> freetype -> jpegsrc.v6b -> libpng -> libxml -> zlib -> gd -> php ( freetype,jpegsrc.v6b,libxml,zlib,libpng µÄ°²×°Ë³Ðò²»ÏÞ)
Ô¼¶¨Ä¿Â¼£º/usr/local/src Èí¼þÔ´´úÂë°ü´æ·ÅλÖÃ
/usr/local/software_name Ô´Âë°ü±àÒ밲װλÖÃ
°²×°ÃüÁ
1 apache
# cd /usr/local/src
# t ar xzvf http-2.2.4.tar.gz
# cd http-2.2.4
# ./configure \
"--prefix=/usr/local/apache2" \
"--enable-module=so" \
"--enable-deflate=shared" \
"--enable-expires=shared" \
"--enable-rewrite=shared" \
"--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-userdir"
# make
# make install
# /usr/local/apache2/bin/apachectl start
³öÏÖ´íÎóµÄ»°¾ÍÊÇÒòΪÓòÃûµÄ¹Øϵ£¬Ö±½Ó´Óhttp.confÀïÃæÐ޸İÑÓòÃû¸Ä³É±¾µØIP
# /usr/local/apache2/bin/apachectl stop
2. mysql
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure \
&n
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
½ñÌìѧµ½µÄ¶«¶«£º
1¡¢²é¿´½ø³ÌËù¶ÔÓ¦¿ÉÖ´ÐгÌÐòµÄ¾ø¶Ô·¾¶
[1]. ps -ef | grep ½ø³ÌÃû »ñµÃPID
[2]. ½øÈëprocÎļþϵͳÀï¶ÔÓ¦µÄĿ¼£º/proc/ <PID>
[3]. ls -l
exeÁ´½Ó¶ÔÓ¦µÄ¾ÍÊÇ¿ÉÖ´ÐÐÎļþµÄȫ·¾
......
1.Ñо¿LinuxʵÏÖ¶àýÌå²¥·ÅµÄËùÓм¼Êõµã
1£© Live555¿âµÄ±àÒëÓëʹÓã¨ÒѾ¸ã¶¨£©£¬ÐèÒª½øÒ»²½ÅªÇå³þµÄµØ·½
ÔÚLinuxÈçºÎ±àÒ붯̬¿âºÍ¾²Ì¬¿â
ÈçºÎ±àÒ룬¸Ä±ä±àÒëÑ¡ÏîºÍ¼¯³É±àÒë
ÈçºÎµ÷ÊÔ£ºgccºÍIDEµÄ £º QT Creator ¡¢
2£© ffmpegÔÚL ......
ÔÚlinuxÖеÄlikelyºÍunlikely
0
ÍƼö
ÔÚlinuxÖÐÅжÏÓï¾ä¾³£»á¿´µ½likelyºÍunlikely£¬ÀýÈ磺
if(likely(value)){
}
else{
}
¼òµ¥´Ó±íÃæÉÏ¿´if(likely(value)) == if(value)£¬if(unlikely(value)) == if(value)¡£
ÕâÁ½¸öºê¶Ô³ÌÐòÔËÐнá¹ûûÓÐÓ°Ï죬ֻÊÇÓÃÓÚÌá¸ß³ÌÐòЧÂÊ¡£ÆäʵÏÖºÍgcc±àÒëÆ÷ÃÜÇÐÏà¹Ø¡£
¾ßÌåµã˵£¬¾ ......
Ëæ׏âÅ̼̿»úÔÚlinux¼ÆËã»úÉϵÄÆÕ¼°£¬ÒÔisoΪÖ÷µÄ¹âÅÌÓ³ÏñÎļþÖÆ×÷¡¢×ª»»¡¢±à¼µÈ³ÉÁË´ó¼Ò·Ç³£¹ØÐĵĶ«Î÷¡£isoµÈ¸ñʽµÄÎļþÊÇÒ»ÖÖÊý¾ÝÔÚÊý¾Ý¹âÅÌÉϵÄ×éÖ¯ÐÎʽ£¬¼´¹âÅÌÉϵÄÎļþϵͳ¸ñʽ¡£ÄÇô£¬ÄÄЩÈí¼þ¿ÉÒÔÖÆ×÷¹âÅÌÓ³ÏñÎļþ£¬ËûÃǵĸñʽת»»¹¦ÄÜÓÖÊÇÈçºÎÄØ£¿ÄÄЩÈí¼þ¿ÉÒÔÖ±½ÓÖÆ×÷×ÔÆô¶¯µÄ¹âÅÌÄØ£¿Ãæ¶Ô¸÷ÖÖ¹âÅÌÓ³ÏñÖ ......