Linux系统下jdk1.5与tomcat5.5的安装方法

一在linux下安装jdk1.5

1.安装jdk1.5

在usr新建app文件夹

把jdk1.5.bin拷贝到usr/app下

<!---->

#chmod u+x jdk1.5.bin                  //设置包的属性<noscript type="text/javascript">- google_ad_client = "pub-5195587195407606"; /* Linuxidc 468x60, ������ 08-8-31 */ google_ad_slot = "9963827011"; google_ad_width = 468; google_ad_height = 60; //--> </noscript> <noscript src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </noscript><noscript> window.google_render_ad(); </noscript>

#./jdk1.5.bin                               //看协议并解成rpm包(不断的按回车键)

#cd /usr/app                              //进入安装好的目录

#ln -s jdk1.5.0_06  jdk1.5             //做个jdk1.5的目录连接到jdk1.5.0_06

2.环境变量

修改etc下profile文件

export JAVA_HOME=/usr/app/jdk1.5

export PATH=$PATH:/usr/app/jdk1.5/bin

//export PATH USER LOGNAME MALL HOSTNAME HISTSIZE INPUTRC

3.重新加载

#source /etc/profile

二在linux下安装tomcat5.5

#cd /usr/app

#tar zxvf tomcat5.5.tar.gz                            //解包

#ln -s apache-tomcat-5.5.16  Tomcat5.5        //做个tomcat的目录连接到apache-tomcat-5.5.16

5.启动tomcat

#cd root

#cd usr/app/Tomcat5.5

#bin/startup.sh                                          //启动服务器

#bin/shutdown.sh                                       //关闭服务器

你可能感兴趣的:(JavaScript,apache,tomcat,linux,Google)