In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. statement:
This article uses the operating system version: Centos 7 Linux system
Version source: CentOS-7-x86_64-DVD-1708.iso
Download address on the official website: http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso
Installation package selection: minimum installation package (with jdk installed and vim function)
II. Preparatory work before installing tomcat 7
Download the tomcat installation package from the apache official website (it is recommended to use the installation file in the form of tar package)
Download address on the official website: http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.82/bin/apache-tomcat-7.0.82.tar.gz
2.1 upload the tomcat installation file to the linux system through the ftp software
Xiaosheng put it under the / var/ftp/pub folder.
2.2 extract the file and cut it to / directory
Extract the file: tar-zxvf apache-tomcat-7.0.82.tar.gz
Move to the root directory: mv apache-tomcat-7.0.82.tar.gz /
Rename file: mv apache-tomcat-7.0.82.tar.gz. / tomcat7
3. Start tomcat
Check to see if the .sh file in the / tomcat7/bin/ directory is executable
Use the ll command to view file permissions
If the file is not available, use the command:
Chmod 755. / * .sh
Modify all .sh files in the current directory to make them executable
Run tomcat:. / startup.sh
Close tomcat:. / shutdowm.sh
IV. Firewall configuration
Open port 8080:
Firewall-cmd-zone=public-add-port=8080/tcp-permanent
Restart the firewall:
Firewall-cmd-reload
5. Set tomcat to boot automatically.
4.1 modify rc.local file configuration (add script at the end of the file)
Vim / etc/rc.d/rc.local
Add a script at the end of the text:
JAVA_HOME=/usr/java/jdk1.7.0_80 export JAVA_HOME / tomcat7/bin/startup.sh
4.2 modify the rc.local file to be executable, such as: chmod + x rc.local
Just restart the machine.
Summary
The above is the tutorial of cemtos 7 linux installation and uninstallation of tomcat 7 introduced by Xiaobian to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.