I'm using tomcat6 here,
I'm using a server version of CentOS,
The prerequisite is that the JDK is installed and configured.
First, I compress my tomcat through Samba,
Copy to the shared folder, and then move to the./usr directory,
# TAR–ZXVF Apache-tomcat-6.0.42.tar.gz
After unpacking, copy the extracted folder to the place where it needs to be installed, I am here/usr and renamed Tomcat
#cp –R Apache-tomcat-6.0.42/usr/tomcat
Then go to/usr/tomcat/bin and change the startup.sh,shutdown.sh file to executable mode
#chmod +x startup.sh
#chmod +x shutdown.sh
Now that Tomcat is installed, you can start and end tomcat directly by executing the following command
#./startup.sh #启动tomcat
#./shutdown.sh #关闭tomcat
:
Input./startup.sh
Input./shutdown.sh
Then check to see if Tomcat is running properly.
Here are a few ways:
The first is a graphical desktop version that opens the browser input 127.0.0.1:8080
The second is to use other computers, and then open the browser, enter the server ip+ 8080;
A third view of Tomcat logs,
Open the./usr/tomcat/logs/
Input tail-f catalina.out
For example:
This means that it is already running.
The fourth type: input command:
Ps-ef |grep Tomcat
Check to see if Tomcat is included. If so, that means you can run it.
To sum up, each has its own characteristics, I hope you like, if my blog appeared wrong, I hope you have more valuable comments. Only with more communication can progress be made.
Configuring Tomcat in Centos6.2