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)
Comments
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!
Use command "sudo -s" to become root user.
That worked, thanks!!
Typed -> vim ~/.bashrc but not sure where to paste below command. In addition how do i save and exit vim ?
export CATALINA_HOME=/opt/tomcatYou can put it at the end of the file and then save the file and exit vim.
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.
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!
Im currently really stuck on part two when it comes to the VIM and how i edit the document
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
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
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
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