命令行启动tomcat,cd进入bin目录下 :

sudo sh startup.sh

关闭 tomcat:

sh ./shutdown.sh