简体   繁体   English

关闭tomcat 8并启动tomcat 9

[英]shutdown tomcat 8 and start tomcat 9

I am new to java. 我是Java新手。 I had tomcat 8 running on the linode server at following location 我在以下位置的linode服务器上运行了tomcat 8

/usr/share/

tomcat8, tomcat8-admin, tomcat8-docs, tomcat8-examples are present at this location. tomcat8,tomcat8-admin,tomcat8-docs,tomcat8-examples存在于此位置。 When I browsed localhost:8080, I got "It works" html page with links for tomcat8-docs, tomcat8-examples, and tomcat8-admin. 当我浏览localhost:8080时,我得到了“ It works” html页面,其中包含tomcat8-docs,tomcat8-examples和tomcat8-admin的链接。 But I was not able to browse any of the given links(404 error was coming). 但是我无法浏览任何给定的链接(即将出现404错误)。

After that I installed tomcat9 at following location 之后,我在以下位置安装了tomcat9

/usr/local/apache-tomcat9

it contains a folder named 'webapps' which in turn contains folders docs,examples, host-manager, manager and ROOT. 它包含一个名为“ webapps”的文件夹,该文件夹又包含文件夹docs,examples,host-manager,manager和ROOT。

I want to shut tomcat8 down and use tomcat9 instead. 我想关闭tomcat8,改用tomcat9。 Is there any way for this. 有什么办法吗

我相信你可以只运行sudo service tomcat8 stopsudo service tomcat9 start

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM