Get the App
SLTechnology News&Howtos  ›  Network Security  › 

One host installs 2 tomcat installation configurations

Shulou Source: shulou.com Published: 2022-06-01 02:55:27 11月25日 Update

Dk version: 7u60 tomcat version: 7.0.54

The aiwm password of the new user is aiwm@CUWO

Useradd aiwm

Passwd aiwm

Switch to the root user and directly modify the / etc/passwd file aiwm:x:501:501::/opt/:/bin/bash or usermod-d / opt aiwm

Installation steps:

1. Mount vdb to the / opt directory:

Mkfs.ext4 / dev/vdb

Mount / dev/vdb / opt

two。 Install jdk:

Create a new aiwm/Java folder in / opt and upload the jdk installation package to the Java directory

Tar zxvf jdk-7u60.tar.gz

Vim / etc/profile add

Export JAVA_HOME=/usr/java/jdk1.7.0_60

Export CLASSPATH=/usr/java/jdk1.7.0_60/lib

Export PATH=$JAVA_HOME/bin:$PATH

Enter / usr/bin

Cd / usr/bin

Make a soft connection

Ln-s-f / opt/aiwn/java/jdk1.7.0_60/jre/bin/java

3. Install tomcat

Upload tomcat to / opt/awim/tomcat and decompress

Tar zxvf apache-tomcat-7.0.54.tar.gz

Mv apache-tomcat-7.0.54 tomcat_1

Upload DocumentPreview to / opt/aiwm/tomcat/tomcat_1/webapp

Tar zxvf apache-tomcat-7.0.54.tar.gz

Mv apache-tomcat-7.0.54 tomcat_2

Upload DocumentPreview to / opt/aiwm/tomcat/tomcat_2/webapp

Change the listening port of tomcat_2

Vim / opt/awim/tomcat/tomcat_2/conf/server.xml

Change 8080d8443 to 8081 and 8444 respectively

192.168.1.4 deployment

Scp-r root@192.168.1.2:/opt/aiwm/tomcat / opt/aiwm/

Modify the jvm of tomcat

Tags: File version user directory password folder port switch monitor host configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Tech Info Linux Docker MariaDB