Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

One host installs 2 tomcat installation configurations

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report