¿ìËÙÒµÎñͨµÀ

LINUXÏÂÓýű¾ÊµÏÖJDK TOMCAT

×÷Õß ØýÃû¼¼Êõ À´Ô´ Linuxϵͳ ä¯ÀÀ ·¢²¼Ê±¼ä 2012-05-04
dk>/opt/tomcat/conf/server.xml

rm -rf /opt/tomcat/conf/djdk /opt/tomcat/conf/aaa

mv /opt/tomcat/bin/startup.sh /opt/tomcat/bin/aaa
touch /opt/tomcat/bin/startup.sh

Empire CMS,phome.net

chmod a x /opt/tomcat/bin/startup.sh
aa="/opt/tomcat/bin/startup.sh"
echo "export JAVA_HOME=/usr/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/opt/tomcat
/opt/tomcat/bin/catalina.sh start
" >$aa
echo "/opt/tomcat/bin/startup.sh" >> /etc/rc.d/rc.local

chkconfig --level 3 httpd off

source /etc/profile

/opt/tomcat/bin/startup.sh

touch /hello.java

echo "public class HelloWorld{
public static void main(String args[]){
System.out.println("nihao");

}
}

" > /hello.java

sed ''s/nihao/"Hello, World"/g'' /hello.java >/HelloWorld.java

rm -rf hello.java

touch /mmm.sh

echo "#!/bin/bash
#This is the script testing JAVA
javac /HelloWorld.java
java HelloWorld

if
HelloWorld="Haha"

then

echo "Successful"

else

echo "Fail"

fi

" > /mmm.sh


sed ''s/Haha/"Hello, Wrold"/g'' /mmm.sh>/kkk.sh
sed ''s/Successful/"Successful"/g'' /kkk.sh>/nnn.sh
sed ''s/Fail/"Fail"/g'' /mmm.sh>/hello.sh

rm -rf /mmm.sh /kkk.sh /nnn.sh
chmod a x /hello.sh


fi


echo "Jdk tomcat installation and allocation have been completed.

You can work also no to come to test an once IP being able to import a server on IE.

Hanging coming to test once JAVA your hello.sh

under being able to run root builds"


ÔÙ´ÎÏ£ÍûÅóÓÑÃÇÌá³ö±¦¹óµÄÒâ¼û.ΪÁËÄãÎÒµÄÌá¸ß.һֱŬÁ¦×Å.

Empire CMS,phome.net

ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!

·ÖÏíµ½£º ¸ü¶à
еIJßÂÔ" target="_blank">ÍøÂçÓªÏú¹«Ë¾ÔÚÔËÓªÖеIJßÂÔ
  • iBATIS 3ÄÚµÄÐÂÌØÐÔ£º½«iBATISÓÃ×÷Ó¦ÓóÌÐòÄÚµÄÒ»Öֳ־ÿò¼Ü - ±à³ÌÈëÃÅÍø
  • Photoshop»æÖƸ߹âË®¾§ÖʸÐË®¾§Æ»¹û
  • Copyright ©1999-2011 ÏÃÃÅÁèÖڿƼ¼ÓÐÏÞ¹«Ë¾ ÏÃÃÅÓÅͨ»¥Áª¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾ All rights reserved

    µØÖ·(ADD)£ºÏÃÃÅÈí¼þÔ°¶þÆÚÍûº£Â·63ºÅ701E£¨¶«ÄÏÈÚͨÅÔ£© Óʱà(ZIP)£º361008

    µç»°£º0592-5908028 ´«Õ棺0592-5908039 ×ÉѯÐÅÏ䣺web@lingzhong.cn ×ÉѯOICQ£º173723134

    ¡¶ÖлªÈËÃñ¹²ºÍ¹úÔöÖµµçÐÅÒµÎñ¾­ÓªÐí¿ÉÖ¤¡·ÃöB2-20100024  ICP±¸°¸:ÃöICP±¸05037997ºÅ