LINUX下用脚本实现JDK TOMCAT
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
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{ } " > /hello.java sed ''s/nihao/"Hello, World"/g'' /hello.java >/HelloWorld.java rm -rf hello.java touch /mmm.sh echo "#!/bin/bash if then echo "Successful" else echo "Fail" fi " > /mmm.sh
rm -rf /mmm.sh /kkk.sh /nnn.sh
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"
|
||
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |