Configure tomcat in Centos6.2
Here I am using tomcat6,
I am using the server version of Centos,
The premise is that JDK is installed and configured.
First, use samba to compress my tomcat package,
Copy the file to the shared folder and move it to the./usr directory,
# Tar-zxvf apache-tomcat-6.0.42.tar.gz
After decompression, copy the decompressed folder to the location where you want to install it. Here is/usr and renamed tomcat.
# Cp-R apache-tomcat-6.0.42/usr/tomcat
Go to/usr/tomcat/bin and change the startup. sh and shutdown. sh files to the executable mode.
# Chmod + x startup. sh
# Chmod + x shutdown. sh
Now that tomcat is installed, run the following command to start and end tomcat:
#./Startup. sh # start tomcat
#./Shutdown. sh # disable tomcat
:
Enter./startup. sh
Input./shutdown. sh
Check whether tomcat is running normally.
There are several methods:
The first is the desktop version with a graphical interface. You can open the browser and enter 127.0.0.1: 8080.
The second is to use other computers, open a browser, and enter the Server IP address + 8080;
Third, view tomcat logs,
Open./usr/tomcat/logs/
Enter tail-f catalina. out
For example:
This indicates that the instance is already running.
Type 4: Input commands:
Ps-ef | grep tomcat
Check whether Tomcat is contained. If so, it can be run.
To sum up, each blog has its own characteristics. I hope you will like it. If my blog is wrong, I hope you will give more valuable comments. Only multi-communication can make progress.