centos安裝及設定 jdk/tomcat
首先現在jdk和tomcat:
[root@yrok ~]# wget http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.rpm
[root@yrok ~]# wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.36/bin/apache-tomcat-8.0.36.tar.gz[root@yrok ~]# ls
apache-tomcat-8.0.36.tar.gz jdk-8u73-linux-x64.rpm
安裝jdk:
[root@yrok ~]# yum install jdk-8u73-linux-x64.rpm
設定jdk環境變數:
[root@yrok ~]# vim /etc/profile.d/java.shexport JAVA_HOME=/usr/java/latest
export PATH=$JAVA_HOME/bin:$PATH
[root@yrok ~]# . /etc/profile.d/java.sh
檢視jdk版本:
[root@yrok ~]# java -versionjava version "1.8.0_73"
解壓安裝tomcat:
[root@yrok ~]# tar xf apache-tomcat-8.0.36.tar.gz -C /usr/local[root@yrok ~]# cd /usr/local/
[root@yrok local]# ln -sv apache-tomcat-8.0.36 tomcat
設定連結:
設定tomcat環境變數:
[root@yrok tomcat]# vim /etc/profile.d/tomcat.shexport CATALINA_HOME=/usr/local/tomcat
export PATH=$CATALINA_HOME/bin:$PATH
[root@yrok tomcat]# . /etc/profile.d/tomcat.sh
以上就完成了jdk和tomcat的設定。
相關文章
- Linux之換源、Tomcat及jdk的安裝配置和設定Tomcat自動啟動LinuxTomcatJDK
- Centos安裝tomcat9及配置CentOSTomcat
- Linux下安裝JDK及環境設定LinuxJDK
- 熱門報導:CentOS7安裝[Mysql,JDK,TomCat]CentOSMySqlJDKTomcat
- CentOS 安裝 JDKCentOSJDK
- CentOS安裝jdkCentOSJDK
- Linux配置JavaEE環境 Linux中安裝JDK、Tomcat、mysql 設定Tomcat自啟動、設定mysql自啟動LinuxJavaJDKTomcatMySql
- Centos 7 安裝JDKCentOSJDK
- CentOS如何安裝JDKCentOSJDK
- centos 安裝 jdk 8CentOSJDK
- Linux(jdk+tomcat配置安裝)LinuxJDKTomcat
- Centos 7 上安裝 jdk 及問題小記CentOSJDK
- CentOS下tomcat安裝配置CentOSTomcat
- centos安裝jdk8CentOSJDK
- mac 安裝jdk,maven,tomcat彙總MacJDKMavenTomcat
- centos 7中 yum安裝jdkCentOSJDK
- Linux(CentOS)安裝JDK1.8LinuxCentOSJDK
- CentOS Linux7 安裝JDKCentOSLinuxJDK
- CentOS 7安裝JDK1.8CentOSJDK
- linux中安裝JDK linux中安裝Tomcat linux中安裝Mysql 及故障解析 linux系統安裝redisLinuxJDKTomcatMySqlRedis
- jdk+tomcat+mysql一鍵安裝配置JDKTomcatMySql
- Linux上安裝jdk Tomcat mysql redis等LinuxJDKTomcatMySqlRedis
- linux(centos 7)下安裝JDK,Tomcat,mysql 執行Maven 專案(最詳細)LinuxCentOSJDKTomcatMySqlMaven
- CentOS 7 yum安裝與配置 TomcatCentOSTomcat
- Java(JDK/Tomcat/Maven)執行環境配置及工具(idea/eclipse)安裝JavaJDKTomcatMavenIdeaEclipse
- 【Linux】Centos7.6 安裝JDK 1.8LinuxCentOSJDK
- CentOS 7 - 安裝Oracle JDK8CentOSOracleJDK
- Centos7x86安裝JDKCentOSJDK
- Centos 7 x86 安裝JDKCentOSJDK
- Centos7安裝jdk8CentOSJDK
- CentOS 7 yum 安裝與配置 JDKCentOSJDK
- 使用CentOS 7.5解除安裝自帶jdk安裝自己的JDK1.8CentOSJDK
- CentOS下安裝配置常用軟體mysql,Tomcat,JDK常見的基本問題集CentOSMySqlTomcatJDK
- windows下安裝jdk+tomcat+maven並配置WindowsJDKTomcatMaven
- jdk、tomcat、mysql軟體的安裝步驟JDKTomcatMySql
- Linux安裝jdk、tomcat 步驟(親測有效)LinuxJDKTomcat
- Centos7編譯安裝Tomcat教程。CentOS編譯Tomcat
- Redis——急速安裝並設定自啟(CentOS)RedisCentOS
- centos7 設定tomcat自啟動CentOSTomcat