tomcat installation and deployment

  1. Configuration Environment (centos 7.6)

    systemctl stop firewalld

    iptables -F

    setenforce 0

  2. Install jdk package

    Upload jdk package

    tar xf jdk-8u191-linux-x64.tar.gz

    mv jdk1.8.0_191/ /usr/local/java

  3.jdk path is not your path, enter / etc / profile add environment variables

    vim / etc / profile is inserted in the last two variables export

    

  4. Install tomcat

    Upload tomcat package

    tar xf apache-tomcat-9.5.16.tar.gz

    mv apache-tomcat-9.5.16 /usr/lcoal/tomcat8

  5./usr/local/tomcat8/bin/startup.sh start tomcat, closed with shutdown.sh

    After the start tomcat 8080 port is open.

    

 

   6. Open the browser test

    

 

 

  

  Supplementary *: uninstall package production line as much as possible with rpm, so as not to unload too clean, resulting in paralysis of the system.

          Remember to back up your files when changes, so as not to alter the failure can not be restored.

          For example: rpm -e httpd --nodeps -e rpm is unloaded, - nodeps contact dependencies.

 

Guess you like

Origin www.cnblogs.com/WELLLEE/p/11616514.html