1.使用當(dāng)時(shí)部署tomcat的用戶連接到遠(yuǎn)程的linux操作系統(tǒng)
2.進(jìn)入到tomcat的bin目錄
cd /home/hstomcat/apache-tomcat-7.0.63/bin
自己的環(huán)境,可能安裝的目標(biāo)不一樣,需要自己把握
3.啟動(dòng)tomcat
使用ls命令,可以看到bin目錄下的文件
運(yùn)行bin目錄下的啟動(dòng)命令腳本
sh startup.sh或者./startup.sh
這樣tomcat就啟用了
4.查看tomcat進(jìn)程是否啟動(dòng)
使用ps aux | grep tomcat查看tomcat進(jìn)程是否啟動(dòng)
5.關(guān)閉tomcat
同樣在tomcat的bin目錄下,使用sh shutdown.sh可以關(guān)閉tomcat
6.重啟tomcat
重啟可以理解為先關(guān)閉tomcat+再啟動(dòng)tomcat
sh shutdown.sh
sh startup.sh
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載。
THE END