|
发表于 2018-1-7 20:01:17
|
显示全部楼层
上传软件
[root@jira ~]# cd /application/tools/
[root@jira tools]# ls
atlassian-jira-software-7.6.0.tar.gz jdk-8u60-linux-x64.tar.gz
解压JDK
[root@jira tools]# tar xf jdk-8u60-linux-x64.tar.gz -C /application/
[root@jira tools]# ls /application/
jdk1.8.0_60 tools
创建软连接
[root@jira tools]# ln -s /application/jdk1.8.0_60/ /application/jdk
sed -i.ori '$a export JAVA_HOME=/application/jdk\nexport
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexport
CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar'
/etc/profile
source /etc/profile
[root@jira ~]# java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
|
|