Linuxƽ̨Ï°²×°Apache (by quqi99)
Linuxƽ̨Ï°²×°Apache (by quqi99)
×÷ÕߣºÕÅ»ª ·¢±íÓÚ£º2009-11-19
°æȨÉùÃ÷£º¿ÉÒÔÈÎÒâתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕÂÔʼ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾°æȨÉùÃ÷
Ê×Ïȱ£Ö¤°²×°GCCÓëZLIB
°²×°ZLIB²½Ö裺
1£©./configure --prefix=/usr/zhang/zlib
2) make
3) make install
1. ÐÞ¸Ä httpd02.2.14/server/mpm/worker/worker.c Îļþ£¬ ÐÞ¸Ä DEFAULT_SERVER_LIMIT 16µÄÖµ¡£ ¸Ä³É 20000.
2. ±àÒë,°²×°ÃüÁî (°²×°ÔÚ·¾¶ÔÚ --prefix= Ö¸¶¨)
>./configure --prefix=/home/zhanghua/apache –with-zlib-dir=/usr/zhanghua/zlib --enable-so --enable-modules=most --enable-mods-shared=all --with-mpm=worker
> make
> make install
3 ÖØÆôapache
./bin/httpd -k start
»òÌí¼Ó·þÎñcp bin/apachectl /etc/rc.d/init.d/httpd
chmod 777 /etc/rc.d/init.d/httpd
service httpd start
4)²é½ø³Ì
ps -ef | grep httpd
5) ²éÕҶ˿Ú
netstat -an | grep "8080"
Èç¹û±¨403µÄ´íÎó£¬ÄÇÊÇÒòΪ¿ªÆôÁËSELinuxµÄÔÒò£¬¹Ø±ÕËüµÄ·½·¨ÊÇ£º
ÐÞ¸Ä/etc/sysconfig/selinuxÎļþ£¬SELINUX=disabled
»¹²»ÐУ¬¾Í½«bin/httpd.confÎļþÖеÄdeby from all¸Ä³Éallow from all
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>
Èç¹û˵mod_deflate.soÊÇdenyµÄ£¬Äã¿ÉÒÔÓà chcon -t textrel_shlib_t /home/zhanghua/apache/modules/mod_deflate.so
Èç¹ûÒÔÉÏ´ëÊ©»¹²»Äܽâ¾ö403´íÎóµÄ»°£¬»¹ÓÐÒ»ÕУ¬¾ÍÊÇÐÞ¸Äbin/httpd.confÎļþÐÞ¸ÄÀïÃæµÄ£º
User=zhanghua
Group=zhanghua
ĬÈϵÄUserÓëGroupÊÇdeamon£¬°ÑËü¸Ä³ÉÒ»¸öÒÑ´æµÄÓû§ÃûÓë×飬עÒâ£
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
LinuxÖкǫִ́ÐÐÈÎÎñ·½Ê½:
cron
ÊÇϵͳÖ÷ÒªµÄµ÷¶È½ø³Ì£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£crontabÃüÁîÔÊÐíÓû§Ìá½»¡¢±à¼»òɾ³ýÏàÓ¦µÄ×÷Òµ¡£Ã¿Ò»¸öÓû§¶¼¿ÉÒÔÓÐÒ»¸ö
crontabÎļþÀ´±£´æµ÷¶ÈÐÅÏ¢¡£¿ÉÒÔʹÓÃËüÔËÐÐÈÎÒâÒ»¸öshell½Å±¾»òij¸öÃüÁÿСʱÔËÐÐÒ»´Î£¬»òÒ»ÖÜÈý´Î£¬ÕâÍêÈ«È¡¾öÓÚÄ㡣ÿһ¸öÓû§¶¼¿ÉÒÔÓÐ
......
oracleÊý¾Ý¿âÊÇÖØÁ¿¼¶µÄ£¬Æä¹ÜÀí·Ç³£¸´ÔÓ£¬½«ÆäÔÚlinuxƽ̨ÉϵÄÆô¶¯ºÍ¹Ø±Õ²½ÖèÕûÀíһϡ£
°²×°Íê±ÏoracleÒÔºó£¬ÐèÒª´´½¨oracleϵͳÓû§£¬
²¢ÔÚ/home/oracleÏÂÃæµÄ.bash_profileÌí¼Ó¼¸¸ö»·¾³±äÁ¿£º
ORACLE_SID,ORACLE_BASE,ORACLE_HOME¡£
±ÈÈ磺
export ORACLE_SID=test export ORACLE_BASE=oracle_install_di ......
ORCLEÊý¾Ý¿â±¸·Ý²ßÂÔ
1.ͨ¹ýʹÓÃexpºÍimpÃüÁîʵÏÖÊý¾Ý¿âµ¼³öºÍµ¼Èë¡£
ÓÐÈýÖÖģʽ£º
a. Óû§Ä£Ê½£º µ¼³ö(µ¼Èë)Óû§ËùÓжÔÏóÒÔ¼°¶ÔÏóÖеÄÊý¾Ý£»
b. ±íģʽ£º µ¼³ö(µ¼Èë)Óû§ËùÓбí»òÕßÖ¸¶¨µÄ±í£»
&nb ......