linux下,jdk安装脚本,tomcat安装脚本
#文件为ji.sh 运行方法:./ji.sh和jdk的gz包在同一个目录下 #!/bin/sh tar -zxvf jdk-7u51-linux-x64.tar.gz if [ ! -d /opt/java ]; then mkdir -p /opt/java fi mv jdk1.7.0_51 /opt/java echo -e "JAVA_HOME=/opt/java/jdk1.7.0_51" >> /etc/profile echo -e "export JAVA_HOME" >> /etc/profile echo -e "JAVA_BIN=/opt/java/jdk1.7.0_51/bin" >> /etc/profile echo -e "export JAVA_BIN" >> /etc/profile echo -e "PATH=$PATH:$JAVA_BIN" >> /etc/profile echo -e "export PATH" >> /etc/profile echo -e "CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar" >> /etc/profile echo -e "export CLASSPATH" >> /etc/profile source /etc/profile
#文件为ti.sh 运行方法./ti.sh 和apache的gz包在同一个目录下 #!/bin/sh tar -zxvf apache-tomcat-7.0.52.tar.gz if [ ! -d /usr/local ]; then mkdir -p /usr/local fi mv apache-tomcat-7.0.52 /usr/local echo -e "TOMCAT_HOME=/usr/local/apache-tomcat-7.0.52" >> /etc/profile echo -e "export TOMCAT_HOME" >> /etc/profile
相关推荐
吴家应 2020-03-02
laisean 2020-11-11
Julyth 2020-10-16
laisean 2020-09-27
flycappuccino 2020-09-27
liguojia 2020-09-27
87201442 2020-10-15
MXstudying 2020-09-05
WasteLand 2020-09-15
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh
mathchao 2020-09-15
tvk 2020-07-30
Zaratustra 2020-07-29
zhaowj00 2020-07-26
Zaratustra 2020-06-26
ldcwang 2020-06-25
拿什么来拯救自己 2020-06-21
IsanaYashiro 2020-06-16
赵家小少爷 2020-06-14