Application server deployment configuration under linux

This document is used to configure the application runtime environment under CentOS, including the configuration of JDK and TOMCAT.
Connect to the server through SSL tools (such as xshell, vnc).

1. JDK configuration
(1) Download the JDK installation file of the linux version, here is jdk-7u45-linux-x64.rpm
(2) Put the installation package in the /usr/java folder: cp jdk-7u45-linux -x64.rpm /usr/java
(3) Authorization: chmod +x jdk-7u45-linux-x64.rpm
(4) Unzip the installation package: rpm -ivh jdk-7u45-linux-x64.rpm

Second, environment variable configuration
( 1) Edit the profile file: vim /etc/profile to open the file, press i to enter the editing mode, and add the following environment variables at the end
of the file
JAVA_HOME=/usr/java/jdk1.7.0_45
CLASSPATH=.:$JAVA_HOME/lib
PATH=$PATH: $JAVA_HOME/bin
Press ESC to exit, enter: wq to save
(2) Check whether the installation is successful
java -version

3. TOMCAT installation
(1) Download the linux version of the TOMCAT installation file, here is apache-tomcat-7.0.73.tar .gz
(2) Put the installation package in the /usr/local folder: cp apache-tomcat-7.0.73.tar.gz /usr/local
(3) Unzip the installation package: tar -zxvf apache-tomcat-7.0.73. tar.gz
(4) Check whether the installation is successful
Enter the bin directory of tomcat, execute the command ./start.sh
to access http://localhost:8080
(5) If the server can be accessed locally, but machines other than the server cannot access it, in The server firewall
service iptables stop needs to be closed

. Fourth, application deployment
(1) Use tools (such as WinSCP) to transfer the local deployment package to the webapps directory of the server tomcat
(2) Start the tomcat server./startup.sh Stop the service is ./shutdown. sh

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326405839&siteId=291194637