tomcat配置systemctl

vim /usr/lib/systemd/system/tomcat1.service
----------
[Unit]
Description=Tomcat1
After=network.target
[Service]
Type=forking
#PIDFile=/usr/local/tomcat/pid
ExecStart=/lazy/tomcat1/bin/catalina.sh start
ExecReload=/lazy/tomcat1/bin/catalina.sh restart
ExecStop=/lazy/tomcat1/bin/catalina.sh stop
[Install]
WantedBy=multi-user.target
----------
systemctl daemon-reload
#重新载入

上一篇:2020 GDUT Rating Contest IV F. News Distribution


下一篇:使用shell脚本实现everthing的功能