Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Tomcat installation under Linux     - How to find an IP address through the command line (Linux)

- MySQL query performance comparison of a single truth (Database)

- Spark read more HBase tables a RDD (Server)

- SQL Server memory Misunderstanding (Database)

- How to use the Linux terminal Git commands (Linux)

- Five useful commands to manage file types and system time in linux (Linux)

- MySQL stored procedures and triggers (Database)

- Git uses a small mind (Linux)

- 6 common PHP security attacks (Linux)

- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)

- STL source code analysis - iterator each container classification (Programming)

- How to protect the Apache website under Linux system (Linux)

- RHEL7.0 log system (Linux)

- Using Linux stat command to view the files (Linux)

- Fedora 20, Fedora 19, CentOS 6 and RHEL6 users how to install Wine 1.7.15 (Linux)

- How to upgrade the kernel to 3.13.7 on Ubuntu / Linux Mint (Linux)

- ActionContext and ServletActionContext Summary (Programming)

- Linux ln command - create a file / directory link (Linux)

- Extended VMware Ubuntu root partition size (Linux)

- Use source packages compiled and installed GCC5.1 in Mac OS X 10.10.3 (Linux)

 
         
  Tomcat installation under Linux
     
  Add Date : 2018-11-21      
         
         
         
  1, Tomcat6 Download

http://tomcat.apache.org/download-60.cgi

Download, download the .tar.gz extension can be.

Like in Linux, Unix on tomcat no 32,64 points, I guess at compile time, see you on what system to use it

ps: in . tar.gz extension is a compressed file, common in the Linux and OSX, Linux and OSX can use this directly extract the compressed file.

-------------------------------------------------- ------------------------------

2, the installation

1 ", unzip the file (must be a directory in apache-tomcat-6.0.44.tar.gz file)

tar -zxvf apache-tomcat-6.0.44.tar.gz

After extracting the file to a folder: apache-tomcat-6.0.44, here have finished the installation, the following configuration environment variable.

2 ", configure the environment variables

export CATALINA_HOME = / app / java / tomcat / apache-tomcat-6.0.44

export CATALINA_HOME

3) enable the configuration file

source / etc / profile

/ Etc / profile: in fact, is the environment variable configuration file.

Here on the installation of tomcat configuration is complete.

4), you can view the environment variables echo: as see below CATALINA_HOME environment variable

echo $ CATALINA_HOME

Note: You need another environment variable name preceded by $

5) Start tomcat (under tomcat installation directory into, bin directory)

./catalina.sh start

If you want to start to see if you can enter in your browser http: // localhost: 8080 / (if there is no graphical interface, but the LAN, you can use http: // LAN ip: 8080 / Access) If prove that is installed appears tomcat and the successful launch.

6) close the tomcat (tomcat installation to the next directory, bin directory)

tomcat ./shutdown.sh stop

7), project deployment

Only need to file in the webapps packaged items below (tomcat webapps directory under the installation), start tomcat, you can access.

8), tomcat uninstall

Tomcat uninstall very simple, just delete the directory to Tomcat's CATALINA_BASE, then remove some of the environmental variable.

rm -rf /app/java/tomcat/apache-tomcat-6.0.44

9), Tomcat port is occupied Analysis

  Sometimes obviously Tomcat configuration OK, Tomcat service starts normally, but open the page when the error occurred. This time may be Tomat port is occupied, you can look at those who are taking up Tomcat port

netstat -an | grep 8080

netstat -apn | grep 8080

Usually you will find catalina.out log inside "SEVERE: Error initializing endpoint java.net.BindException: Permission denied < null>: 8080" category mistake.
     
         
         
         
  More:      
 
- Shell Programming Regular Expressions (Programming)
- Linux three ways to set environment variables (Linux)
- C ++ function object (Programming)
- Linux vi command list (Linux)
- To_explore Linux system boot process (Linux)
- Use SocketServer write a sockets program (Programming)
- Linux system Perl Lite netstat (Linux)
- Using Maven to download Spring (Linux)
- How to use Evernote in the Linux command line (Linux)
- C # / iOS / Android Universal Encryption and decryption (Programming)
- Use libpq under Ubuntu 14.04 (Linux)
- Thinking in Java study notes - everything is an object (Programming)
- JavaScript object - Flexible and dangerous (Programming)
- Django Signals from practice to source code analysis (Programming)
- Linux loopback adapter Driven Design (Programming)
- Linux System Getting Started Learning: install software packages on Ubuntu and Fedora (Linux)
- secureCRT remote login Linux must first open the connection protocol (Linux)
- To install Xen in Ubuntu 12.04 (Linux)
- Zend Studio PHP syntax color scheme to export (Linux)
- Oracle 11g to create a second instance on Linux (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.