install tomcat
1 、 解 压缩 apache-tomcat-7.0.47.tar.gz :
tar -zxvf apache-tomcat-7.0.47.tar.gz
2. Create the /usr/local/tomcat folder: mkdir -p /usr/local/tomcat
3. Go to the /usr/local/tomcat directory:
cd /usr/local/tomcat/apache-tomcat-7.0.47
4 , Move the decompressed files to the new folder:
mv apache-tomcat-7.0.47 /usr/local/tomcat
5. Go to the /usr/local/tomcat/apache-tomcat-7.0.47/bin directory:
cd / usr/local/tomcat/apache-tomcat-7.0.47/bin/
6. Start tomcat: ./startup.sh Check the usage of port 8080: netstat -anp|grep 8080 Stop: ./shutdown.sh
At this point, we can't log in to access ip:8080, we also need to configure the user
vim /usr/local/tomcat/apache-tomcat-7.0.47/conf/tomcat-users.xml
At this time, we can log in again.