Install Tomcat 9 on CentOS 7.7 EN

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
(Created page with 'they write that: HTTP/2 (requires either running on Java 9 (since Apache Tomcat 9.0.0.M18) or the Tomcat Native library being installed) CentOS 7.7 shows Open JDK ve verzi 1.8…')
Line 9: Line 9:
  OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
  OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)
-
So I'd rather install '' 'Tomcat Native library' '' like this:
+
So I'd rather install '''Tomcat Native library''' like this:
  yum install apr-devel openssl-devel
  yum install apr-devel openssl-devel

Revision as of 06:39, 20 April 2020

they write that:

HTTP/2 (requires either running on Java 9 (since Apache Tomcat 9.0.0.M18) or the Tomcat Native library being installed)

CentOS 7.7 shows Open JDK ve verzi 1.8:

# java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (build 25.232-b09, mixed mode)

So I'd rather install Tomcat Native library like this:

yum install apr-devel openssl-devel

I stick to what I saw in our recent installations and unpack the Tomcat to / home /

tar xvzf apache-tomcat-9.0.xx.tar.gz --directory /home/ 

Link to the usual place in / var /

ln -s /home/apache-tomcat-9.0.33/ /var/apache-tomcat-9.0.33

Create an init script in the /etc/init.d directory

Honza Vejvoda can do that. I just copied it from an already running tomcat8 and edited it.

This is how I generated the signed certificate:

openssl pkcs12 -export -out certificate.pfx -inkey a6442s115.autoexpr.com.key -in a6442s115_B64.cer
openssl pkcs12 -in certificate.pfx -out mypermfile.pem
openssl pkcs12 -export -in mypermfile.pem -out tomcatkeystore.p12 -name "TomcatCert"

It asks for passwords so I used Tomcat's default "changeit"

Personal tools