deepin15.10如何开机启动tomcat
Tofloor
poster avatar
李健
deepin
2019-06-05 04:44
Author
如题,在autostart文件夹和rc.local都弄过,没有成功,求指导,新手.
Reply Favorite View the author
All Replies
avatar
李健
deepin
2019-06-05 05:18
#1
在autostart文件夹加快捷方式成功了,要先在startup.sh里面导入jre快捷方式
[Desktop Entry]
Version=9.0
Type=Application
Name=Tomcat
Comment=Tomcat
Icon=/home/xx/Pictures/icon/tomcat.icon
Exec=/home/xx/tomcat9/bin/startup.sh
Terminal=false
StartupNotify=true
X-Deepin-AppID=Tomcat
导入jre
# Start Script for the CATALINA Server
# -----------------------------------------------------------------------------
JAVA_HOME=/opt/jdk12
CLASSPATH=.JAVA_HOME/lib
PATH=$JAVA_HOME/binPATH
export JAVA_HOME CLASSPATH PATH
# Better OS/400 detection: see Bugzilla 31132
Reply View the author
avatar
Feng Yu
deepin
2019-06-05 05:22
#2
sudo apt install -y tomcat8,通过包管理器安装tomcat,默认的war包部署路径在/var/lib/tomcat8/webapps,装完自带服务管理,默认开机自启动。

通过systemctl status/start/stop/restart  tomcat8即可
Reply View the author