1. 程式人生 > >ubuntu下重啟tomcat

ubuntu下重啟tomcat

方法一:在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
-----
其餘啟動類似