15 Star 42 Fork 29

Spring / init_server

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
tomcat.sh 754 Bytes
Copy Edit Web IDE Raw Blame History
lly836 authored 2017-04-20 17:31 . update tomcat
#install_tomcat
wget http://7lrxhn.com1.z0.glb.clouddn.com/apache-tomcat-8.5.14.tar.gz
tar zxvf apache-tomcat-8.5.14.tar.gz
rm -rf apache-tomcat-8.5.14.tar.gz
mv apache-tomcat-8.5.14 /usr/local/tomcat
#开机启动
cat > /etc/systemd/system/tomcat.service <<EOF
[Unit]
Description=Apache Tomcat Web Application Container
After=syslog.target network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/local/jdk1.8.0_101
Environment=CATALINA_PID=/usr/local/tomcat/temp/tomcat.pid
Environment=CATALINA_HOME=/usr/local/tomcat
Environment=CATALINA_BASE=/usr/local/tomcat
ExecStart=/usr/local/tomcat/bin/catalina.sh start
ExecStop=/bin/kill -15 $CATALINA_PID
[Install]
WantedBy=multi-user.target
EOF
systemctl enable tomcat.service

Comment ( 0 )

Sign in for post a comment

Shell
1
https://gitee.com/liaoshixiong/init_server.git
git@gitee.com:liaoshixiong/init_server.git
liaoshixiong
init_server
init_server
master

Search