In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to configure Tomcat boot self-startup under Linux", in daily operation, I believe many people have doubts about how to configure Tomcat boot self-startup under Linux, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, hope to answer "how to configure Tomcat boot self-startup under Linux" doubts help! Next, please follow the small series to learn together!
Copy catalina.sh to the/ect/init.d/folder and change the file name to tomcat
sudo mv catalina.sh tomcat
sudo chmod 777 /ect/init.d/tomcat
Add chkconfig and description to this file and specify CATALINA_HOME and JAVA_HOME
sudo vim /ect/init.d/tomcat
Configure the following statement
#chkconfig: 2345 10 90
#description: tomcat8.5 service
#Configure CATALINA_HOME and JAVA_HOME
export CATALINA_HOME=/usr/local/apache-tomcat-8.5.14/
export JAVA_HOME=/usr/java/jdk1.8.0_161/
Add to service using chkconfig--add
sudo chkconfig --add tomcat
#View service list (if 2, 3, 4, 5 are all on status, it will boot automatically)
chkconfig -list
#Remove Services
sudo chkconfig --del tomcat
Restart the virtual machine and check whether the tomcat port is started
Start and close using the service command
sudo service tomcat start #Start
sudo service tomcat stop #Close
At this point, on "Linux how to configure Tomcat boot from the start" of the study is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.