Installation of Tomcat on Ubuntu 18.04 and AWS

Posted December 23, 2018 2.7k views
Linux CommandsUbuntu 18.04

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

Your guide: https: //

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

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.

Submit an Answer
1 answer

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.