方法一:在tomcat的bin目录下

./ shutdown.sh  关闭tomcat

 ./startup.sh   开启tomcat

方法二:

/etc/init.d/tomcat7 stop 关闭

/etc/init.d/tomcat7 start 开启

/etc/init.d/tomcat7 restart 重启

-----------

ubuntu下安装tomcat,apache,jdk

都可以使用apt-get intall 实现

 

tomcat的安装路径:/usr/share/tomcat7/bin

war包放在tomcat项目的部署路径:/var/lib/tomcat7/webapps#

-----------------------------------------------------------------------------------------------------------------------------

Linux系统为Ubuntu
一、Start Apache 2 Server /启动apache服务
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
二、 Restart Apache 2 Server /重启apache服务
# /etc/init.d/apache2 restart
or
$ sudo /etc/init.d/apache2 restart
三、Stop Apache 2 Server /停止apache服务
# /etc/init.d/apache2 stop
or
$ sudo /etc/init.d/apache2 stop
-----
其余启动类似

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐