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.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.