Installing Tomcat under Linux (Ubuntu)

Time:2020-10-22

This article uses the apt get command to install Tomcat

Enter the command in the shell:
sudo apt-get install tomcat7

Installing Tomcat under Linux (Ubuntu)
After the installation, it shows:

Installing Tomcat under Linux (Ubuntu)
At this time, the server has been started!
Enter your server IP: 8080 in the browser localhost:8080 You will see the following page, indicating that you have successfully installed:

Installing Tomcat under Linux (Ubuntu)

Shut down the server and enter the command: sudo / etc / init.d/tomcat7 stop
Open the server and enter the command: sudo / etc / init.d/tomcat7 start
Restart the server and enter the command: sudo / etc / init.d/tomcat7 restart
Let’s explain the meaning of the directory where Tomcat is located
/Etc / tomcat7 / this is the global configuration directory of Tomcat
/Usr / share / tomcat7 / this is the main directory of the program, that is, Tomcat is installed under this directory
/Var / lib / tomcat7 / this is his main working directory
Future web pages should be placed under / var / lib / tomcat7 / webapps /

Over!

Recommended Today

nuxt.js Imitating wechat app communication chat | Vue + nuxt chat | imitating wechat interface

Project overview be based on vue.js + nuxt.js +Chat room imitating wechat app interface developed by vuex + webpack + node + vant and other technologiesNuxtchatroom project。 It realizes the functions of card type drag and slide, message / expression sending, picture / video preview, red packet / circle of friends and so on. Technology […]