ubuntuでTomcat 6を再起動する方法[終了]


99

コマンドラインからデフォルトのインストールを使用して、UbuntuでTomcat 6を再起動および起動するにはどうすればよいですか?


25
sudo service tomcat6 restart
— Marius Butuc

sudo systemctl restart tomcat6 or tom your version of your tomcat ie tomact8 or tomcat9 or only tomcat as your case
— MindRoasterMir

回答:


134

抽出されたtomcatを使用している場合、

startup.shそしてshutdown.shあなたがそれを使用することができ、Tomcatを起動およびシャットダウンするTOMCAT / binに/に配置された2つのスクリプトです

Tomcatがインストールされている場合

/etc/init.d/tomcat5.5 start
/etc/init.d/tomcat5.5 stop
/etc/init.d/tomcat5.5 restart

52
Tomcatがサービスとしてインストールされている場合は、次も試すことができますservice tomcat6 {stop|start|restart}
— Chris White

3
@ChrisWhite Tomcatがサービスとしてインストールされているかどうかを区別するにはどうすればよいですか?
— Gaurav Agarwal 2012

* nixインストールによって異なります-何を実行していますか?
— Chris White、

これはDebianでも機能します。
— Gerome Bochmann、2015年

@ChrisWhiteのコメントも有効な回答になるはずです
— IgniteCoders 2018年
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.