Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux ÏÂtomcat µÄ°²×°ÓëÉèÖÃ


 
±¾È˲Ù×÷ϵͳ»·¾³ÊÇUBUNTU 8.04 ÔÚ³¬¼¶È¨ÏÞÏ°²×°³É¹¦,½ö¹©²Î¿¼(Ç°ÌáµÃ°²×°Linux °æ±¾JDK)
»ù±¾½éÉÜ:
Tomcat
ÊÇÒ»¸öÃâ·ÑµÄ¿ªÔ´µÄSerlvetÈÝÆ÷£¬ËüÊÇApache»ù½ð»áµÄJakartaÏîÄ¿ÖеÄÒ»¸öºËÐÄÏîÄ¿£¬ÓÉApache£¬SunºÍÆäËüһЩ¹«Ë¾¼°¸öÈ˹²Í¬¿ª·¢¶ø³É¡£ÓÉÓÚÓÐÁËSunµÄ²ÎÓëºÍÖ§³Ö£¬×îеÄServletºÍJsp¹æ·¶×ÜÄÜÔÚTomcatÖеõ½ÌåÏÖ¡£
 
TomcatÊÇÎȹ̵ĶÀÁ¢µÄWeb·þÎñÆ÷ÓëServlet Container£¬²»¹ý£¬ÆäWeb·þÎñÆ÷µÄ¹¦ÄÜÔò²»ÈçÐí¶à¸ü½¡È«µÄWeb·þÎñÆ÷ÍêÕû£¬ÈçApache Web·þÎñÆ÷(¾ÙÀýÀ´Ëµ£¬TomcatûÓдóÁ¿µÄÑ¡ÔñÐÔÄ£¿é)¡£²»¹ý£¬TomcatÊÇ×ÔÓɵĿªÔ´Èí¼þ£¬¶øÇÒÓÐÐí¶à¸ßÊÖÖÂÁ¦ÓÚÆä·¢Õ¹¡£
²Ù×÷²½Öè:
ÔÚ°²×°Tomcat֮ǰÐèÒª°²×°j2sdk(Java 2 Software Development Kit)£¬Ò²¾ÍÊÇJDK
1¡¢°²×°JDKµÄ²½ÖèÈçÏ£º
1)ÏÂÔØj2sdk £¬Èçjdk-6u1-linux-i586-rpm.bin
2)ÔÚÖÕ¶ËÖÐתµ½jdk-6u1-linux-i586-rpm.binËùÔÚµÄĿ¼£¬ÊäÈëÃüÁîchmod +755 jdk-6u1-linux-i586-rpm.bin,Ìí¼ÓÖ´ÐеÄȨÏÞ¡£
3)Ö´ÐÐÃüÁî./jdk-6u1-linux-i586-rpm.bin£¬Éú³Éjdk-6u1-linux-i586.rpmµÄÎļþ¡£
4)Ö´ÐÐÃüÁîchmod +755 jdk-6u1-linux-i586.rpm£¬¸øjdk-6u1-linux-i586.rpmÌí¼ÓÖ´ÐеÄȨÏÞ¡£
5)Ö´ÐÐÃüÁî rpm ?Civh jdk-6u1-linux-i586.rpm ,°²×°jdk¡£
6)°²×°½çÃæ»á³öÏÖÊÚȨЭÒ飬°´Enter¼ü½ÓÊÜ£¬°Ñjdk°²×°ÔÚ/usr/java/jdk1.6.0_01¡£
7)ÉèÖû·¾³±äÁ¿£¬ÔÚ /etc/profileÖмÓÈëÈçÏÂÄÚÈÝ(¿ÉÒÔʹÓÃvi½øÐб༭profile)£º
JAVA_HOME=/usr/java/jdk1.6.0_01
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
export PATH CLASSPATH JAVA_HOME
8)ÔÚÖÕ¶ËÖ´ÐÐÃüÁîjava ?Cversion£¬jdkµÄ°æ±¾Îªjdk1.6.0_01Ôò±íʾjdkÒѳɹ¦°²×°¡£
2¡¢°²×°Tomcat
1£©ÏÂÔØapache-tomcat-6.0.10.tar.gz
2£© tar -zxvf apache-tomcat-6.0.10.tar.gz //½âѹ
3£© cp -R apache-tomcat-6.0.10 /usr/local/tomcat //¿½±´apache-tomcat-6.0.10µ½/usr/local/ϲ¢ÖØÃüÃûΪtomcat
4) /usr/local/tomcat/bin/startup.sh //Æô¶¯tomcat
ÏÔʾ Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TEMDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/java/jdk1.6.0_01
 


Ïà¹ØÎĵµ£º

LinuxÖÐÁ½¿î²¢·¢²âÊÔ¹¤¾ßab&webbench

ÉùÃ÷£º
1¡¢Ä¿Ç°ÎҶԓѹÁ¦²âÊÔ”ºÍ“¸ºÔزâÊÔ”ÕâÁ½¸ö¸ÅÄîµÄÇø±ð»¹²»Çå³þ£¬ËùÒÔʹÓÓ²¢·¢²âÊÔ”Ò»´Ê´úÌæ
2¡¢ÑÝʾ·Ö±ðʹÓÃabºÍwebbench¶Ôphpinfo()µÄÒ³Ãæ½øÐÐ100²¢·¢³ÖÐø5ÃëÖÓ²âÊÔ
Ê×ÏÈÀ´¿´Ò»ÏÂ×îÊÜ»¶Ó­µÄ¡¢ËæapacheÒ»Æð´ò°ü·¢²¼µÄab£¬Ê¹Óüòµ¥·½±ã
¿ÉÒÔ¿´³ö²âÊÔ½á¹û½ÏΪÏêϸ£¬³ýÁ˼¸ÏîÖ ......

linuxÃüÁîϵÁÐÖ®¶þ

½âѹ¼¸ÖÖÎļþ¸ñʽ
wzwz.tar.gz——tar zxvf wzwz.tar.gz
wzwz.tar.bz2——tar jxvf wzwz.tar.bz2
wzwz.rpm——rpm -ivh wzwz.rpm
cpio——cpio -idm < wzwz.img
Éú³Éinitrd.img 
 dd if=/dev/zero of=/home/wzwz.img bs=1M count=10
mke2fs -F -v wzwz.i ......

Linux ./configure prefixÃüÁî

Ô´ÂëµÄ°²×°Ò»°ãÓÉ3¸ö²½Öè×é³É£ºÅäÖã¨configure£©¡¢±àÒ루make£©¡¢°²×°£¨make install£©£¬¾ßÌåµÄ°²×°·½·¨Ò»°ã×÷Õ߶¼»á¸ø³öÎĵµ£¬ÕâÀïÖ÷ÒªÌÖÂÛÅäÖã¨configure£©¡£ConfigureÊÇÒ»¸ö¿ÉÖ´Ðнű¾£¬ËüÓкܶàÑ¡ÏʹÓÃÃüÁî./configure –helpÊä³öÏêϸµÄÑ¡ÏîÁÐ±í£¬ÈçÏ£º
-bash-3.00# ./configure --help
Usage: configure ......

Linux TTY Çý¶¯

Ïà¹ØÁ´½Ó£º
http://blog.csdn.net/dongliqiang2006/archive/2009/09/05/4523563.aspx
 
×Ö·ûÉ豸
1£¬×Ö·ûÉ豸²ã
ÔÚLinuxÖÐÊÇ×÷Ϊһ¸öÎļþÀ´³öÏֵģ¬ËùÓжÔ×Ö·ûÉ豸µÄ²Ù×÷¶¼ÊÇͨ¹ýfile_operations½Ó¿ÚÀ´½øÐеģº
struct cdev {
struct kobject kobj;
struct module *owner;
const struct file_operations *op ......

eoiioe ÐéÄâ»úÏÂLinux:no link present,check cable

ÐéÄâ»úµÄÍøÂç²ÉÓÃBridged(ÇŽÓ)·½Ê½£¬¸Õ¿ªÊ¼ÒÔΪ£¬ÊÇÒòΪ»úÆ÷ÉϵÄÓÐЩÍø¿¨Ã»ÓÐÁ¬½ÓµçÀ£¬¶øVMWareÓÖÇ¡ºÃʹÓÃÁ˸ÃÍø¿¨£¬¾­¹ý¼¸¸öСʱµÄ²âÊÔ£¬Í¨¹ý½ûÓÃûÁ¬ÏßµÄÍø¿¨¡¢°ÑVMWareµÄVM0Ó³Éäµ½Á¬ÏßµÄÆäËûÍø¿¨£¬¶¼Ã»Óнâ¾öÎÊÌâ¡£
ÔÚVMÐéÄâ»úÖÐ×°ÁËredhatlinux9.0£¬×¼±¸ÓëÖ÷»ú¹²ÏíÎļþ£¬½á¹ûÍøÂ粻ͨ£¡
    &n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ