Comments on How to Install and Configure Apache Tomcat 9 on Ubuntu 18.04 LTS

Apache Tomcat is an open source Java Servlet implementation developed by the Apache Software Foundation. In this tutorial, we will show you how to install and configure the Apache Tomcat 9.0.8 on Ubuntu 18.04 LTS (Bionic Beaver). We will also learn how to install Java on Ubuntu 18.04, configure a user for apache tomcat, and run the apache tomcat as a systemd service.

12 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Mario

I've followed the guide step by step but when I try to make the .sh files executable with sudo chmod +x /opt/tomcat/bin/*.sh

I getchmod: cannot access '/opt/tomcat/bin/*.sh': No such file or directory

It seems that after the "chown" i can't have access to the tomcat folder.

Any ideas? I've ran into this issue following similar guides, too. I'm on Ubuntu 18.04 if that helps. Thank you!

By: till

Use command "sudo -s" to become root user.

By: Mario

That worked, thanks!!

By: Roy

Typed -> vim ~/.bashrc but not sure where to paste below command. In addition how do i save and exit vim ?

export CATALINA_HOME=/opt/tomcat

By: till

You can put it at the end of the file and then save the file and exit vim.

By: mohammad

This is about the vim.

 

To insert/insert mode = press 'i'.

Now type or paste the configuration.

To save and exit: press 'Esc' button, and type ':wq' for write and quit.

 

By: Naziru

Could you kindly add integrating Tomcat 9.0.8 into Netbeans 8.2? Thanks! I would like to run Tomcat from Netbeans. Thanks in advance!

By: Jay

Im currently really stuck on part two when it comes to the VIM and how i edit the document

By: till

You can replace the command vi or vim with the command nano, nano is a bit easier to use than vim. Or take a look here on how to use vim: https://www.howtoforge.com/vim-basics

By: Jay

for Tomcat the first step seems to not work i keep getting groupadd: invalid option -- 's'.  I than try to go to another option and it still is not working

By: Anil

systemctl: command not found

this error is coming for me after i ran "sudo vim apache-tomcat.service"

Can you please help me with this

By: Clio

Could you explain to me how to set the proxypass and mod ajp in order to view /examples from the port 80

www.myownsite.it

and not

www.myownsite.it:8080

 

thank you