在 CentOS 7 下,您可以使用 systemctl 命令来禁用 Tomcat 服务。请按照以下步骤操作:
tomcat
或 tomcat8
等。您可以通过运行以下命令来查找服务名称:systemctl list-units --type=service | grep tomcat
tomcat
的服务,您可以使用以下命令来禁用它:sudo systemctl disable tomcat
这将阻止 Tomcat 服务在系统启动时自动运行。如果您想立即停止 Tomcat 服务,可以使用以下命令:
sudo systemctl stop tomcat
要查看 Tomcat 服务的状态,可以运行:
sudo systemctl status tomcat
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
相关推荐:在centos7下tomcat如何更新