腾讯云Linux安装Tomcat

Linux安装Tomcat


1.安装JDK 
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


cd /etc/
vi profile

添加如下JDK配置: esc :wq

set java environment
JAVA_HOME=/usr/java/jdk1.8.0_201      
JRE_HOME=/usr/java/jdk1.8.0_201/jre     
CLASS_PATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME JRE_HOME CLASS_PATH PATH

cd /usr
mkdir java
然后将jdk用ftp上传进来 tar zxvf jdk-8u201-linux-x64.tar.gz

 

2.安装Tomcat

https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.17/bin/apache-tomcat-9.0.17.tar.gz

server.xml如下设置 80端口 http转发https





  
  
  
  
  
  
  
  

  
  
    
    
  

  
  

    
    


    
    
			
	   
			
			
    
    
    
    
    
    

    
    


    

    
    

      
      

      
      
        
        
      

      
			
			

        
        

        
        

      
    
  

web.xml设置如下

在 标签  之后添加


		
		CLIENT-CERT
		Client Cert Users-only Area
    
    
		
		
			SSL
			/*
		
		
			CONFIDENTIAL
		
    

ssl配置

你可能感兴趣的:(腾讯云Linux安装Tomcat)