Question

Installation of Tomcat on Ubuntu 18.04 and AWS

I followed your wonderful guide explaining how to install Tomcat on Ubuntu 18.04 but on my server it does not work. I have some questions to ask you. Your guide is perfect but I struggle a lot with English and I’m not a systems engineer. 01 - When I start with step 1, do I need to be connected to the new user or can I use root? 02 - If I used root throughout the guide how can I start over again without making any other mess? 03 - Which commands can I launch from the terminal to figure out where I was wrong? To create the new user I used only these two commands:

adduser giampierotomcat
usermod -aG sudo giampierotomcat

04 - Is it right or do I have to follow all the guidance on the page to which the guide refers?

Thank you Giampiero

Your guide: https: //www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804

P.S.: I use AWS EC2 like VPS.

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @giacoccalo2018,

Thank you for your feedback about our tutorial on How To Install Apache Tomcat 9 on Ubuntu 18.04.

you should have a non-root user with sudo privileges set up on your server.

If you do the complete installation as the root user; you will not be able to start tomcat, so create a tomcat user as per the tutorial.

sudo systemctl start tomcat
Job for tomcat.service failed because the control process exited with error code.
See "systemctl status tomcat.service" and "journalctl -xe" for details.

You can follow “Step 2 — Create Tomcat User” & “Step 4 — Update Permissions” from the tutorial.

You can follow the guide completely and drop a comment if you face any issues with errors that you are seeing.

Regards, Rajkishore