linuxÏÂtomcat°²×°ÅäÖÃ
ÎÒ°ÑÎÒÕûºÏapache£«tomcat£«mod_webapp.soµÄ¹ý³Ì·¢ÉÏÀ´¡£ÆäÖаüÀ¨ÁËÐí¶àÇ°È˵ÄÐĵÃÓë¾Ñé
1.ËùÐèµÄÈí¼þ°ü
¡¡¡¡j2sdk-1_4_1_02-linux-i586.bin(jdk1.4.1)
¡¡¡¡Apache2.0.40 (Red Hat Linux8.0×Ô´ø)
¡¡¡¡jakarta-tomcat-4.1.24.tar.gz(tomcat4.1.24)
¡¡¡¡jakarta-tomcat-connectors-4.1.24-src.tar.gz(connectors4.1.24)
2.°²×°ËùÐèÒªÈí¼þ
¡¡
¡¡¡¡(1)
Ê×ÏȽ«³ýapacheÒÔÍâµÄÈý¸öÎļþ¿½±´µ½/usr/localĿ¼
¡¡¡¡
./j2sdk-1_4_1_02-linux-i586.bin
##½«jdk½âµ½localÏÂÉú³É¶ÔÓ¦µÄĿ¼
¡¡¡¡
(2) tar zxpf
jakarta-tomcat-4.1.24.tar.gz
##½«tomcat½âµ½localÏÂÉú³É¶ÔÓ¦µÄĿ¼
(3) tar zxpf
jakarta-tomcat-connectors-4.1.24-src.tar.gz
##½«connectors½âµ½localÏÂÉú³É¶ÔÓ¦µÄĿ¼
3.ÉèÖû·¾³±äÁ¿
¡¡¡¡vi /etc/profile ## ±à¼ /etc/profile
ÔÚÎļþ½áβ¼ÓÈ룺 ##×¢ÒâÆäÖеÄjakarta-tomcat,jdkÒªÉè³É±¾»úÆ÷Ïà¶ÔÓ¦µÄĿ¼ÊÓ°æ±¾¶ø¶¨
PATH="$PATH:/usr/local/jakarta-tomcat/bin:/usr/local/jdk/bin:/usr/local/jdk/jre/bin"
JAVA_HOME=/usr/local/jdk
export &
Ïà¹ØÎĵµ£º
Ò»¡¢Òý×Ó
Ç°¶Îʱ¼ä¿´µ½ÁËapple¹«Ë¾·¢²¼ÁËiphone os4.0µÄÔ¤ÀÀÊÓƵ£¬iphoneÖÕÓÚ´òËãÖ§³Ö¶àÈÎÎñÁË£¬ÓÈÆäÊǶÔÓÚÔ¤ÀÀÊÓƵÖеÄskypeÈí¼þµÄչʾÈÃÈËÓ¡ÏóÉî¿Ì¡£
Ò»°ãÀ´Ëµ£¬Ïë×öÒ»ÃûÕý¹æµÄiphoneÓ¦Óÿª·¢ÕßÓ¦µ±ÖÁÉÙ×¼±¸Èý¼þÊÂÇ飺
£¨1£©Ò»Ì¨appleµÄµçÄÔ
¿ÉÒÔÊÇmac book»òÕßmac mini£¬¹úÄڱȽϓ½Ú¼ó”µÄ¹«Ë¾´ó¶¼Ñ¡ ......
°²×°²½Ö裺
Ø °²×°tomcatÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
Ø ÏÂÔØTom ......
Ç°ÃæÁ½½ÚÒѾ½éÉÜÁËÓйØÐźŵĴ󲿷ÖÖª
ʶ¡£ÕâÒ»½ÚÎÒÃÇÀ´Á˽âÒ»ÏÂÕâЩϵͳµ÷Óá£ÆäÖУ¬ÏµÍ³µ÷ÓÃsignalÊǽø³ÌÓÃÀ´É趨ij¸öÐźŵĴ¦Àí·½·¨£¬ÏµÍ³µ÷ÓÃkillÊÇÓÃÀ´·¢ËÍÐźŸøÖ¸¶¨½ø³ÌµÄ¡£Õâ
Á½¸öµ÷ÓÿÉÒÔÐγÉÐźŵĻù±¾²Ù×÷¡£ºóÁ½¸öµ÷ÓÃpauseºÍalarmÊÇͨ¹ýÐźÅʵÏֵĽø³ÌÔÝÍ£ºÍ¶¨Ê±Æ÷£¬µ÷ÓÃalarmÊÇͨ¹ýÐźÅ֪ͨ½ø³Ì¶¨Ê±Æ÷µ ......
Linux°²×°JDK²½Öè1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0_02-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾www.sun.com£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_02-linux-i586.rpm /usr/local
#cd /usr/local
¸øËùÓÐÓû§Ìí¼Ó¿ÉÖ´ÐеÄȨÏÞ
#chmod +x jdk-1_5_0_02-linux-i586.rpm.bin
#./jd ......
Õ⼸ÌìÎÒ°²×°ÁËÒ»¸öLinuxϵͳ£¬ÏëÔÚÀïÃæѧһÏÂCÓïÑԵıàд£¬·¢ÏÖÔÚÀïÃæÔËÐÐÓÐÒ»¸öºÃÆæ¹ÖµÄÏÖÏó£ºÈçÏÂÃæ
#include<stdio.h>
void mian(){
printf("hello world!");
}
Êä³öûÓнá¹û£¡¸ãµÄÎÒ¿´ÁË°ëÌ죬³ÌÐòûÓдíÎó°¡£¡ÔõôÕâÑù£¡ºóÀ´ÎҰѳÌÐò¸ÄΪ
#include<stdio.h>
void mian(){
printf("hello ......