在linux安装jdk,tomcat
1.准备jdk,tomcat,我用的是jdk-8u221-linux-x64.tar.gz,apache-tomcat-8.5.54.tar.gz
2.查看系统是多少位的 ,我的是center os7是64位
[ bin]# getconf LONG_BIT
3.创建jdk文件夹解压
[ /]# mkdir /usr/local/java [ /]# cd /usr/local/java [ java]# tar -zxvf jdk-8u221-linux-x64.tar.gz
4.修改profe文件,加入
vim /etc/profile
# Java Environment Path
export JAVA_HOME=/usr/local/java/jdk1.8.0_221
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}
保存并立即生效
source /etc/profile
5. 查看jdk是否好用
java –version
6.创建tomcat文件夹并解压文件
mkdir /usr/local/tomcat cd /usr/local/tomcat tar -zxvf apache-tomcat-8.5.54.tar.gz
7.启动
cd usr/local/tomcat/apache-tomcat-8.0.42/bin/ ./startup.sh
相关推荐
lonesomer 2020-09-17
Locksk 2020-10-12
佛系程序员J 2020-10-10
gdb 2020-09-14
zousongshan 2020-08-10
hell0kitty 2020-07-28
malonely 2020-07-20
missingmuch 2020-07-19
eternityzzy 2020-07-19
wangrui0 2020-06-28
一世为白 2020-06-21
MAC2007 2020-06-16
凉白开 2020-06-17
zhangwentaohh 2020-06-14
liangston 2020-06-14
linzb 2020-06-14
89421478 2020-06-12