Tomcat 8 tutorial posible error

In the tutorial In the part that says: Install Systemd Unit File : when talk: ‘sudo vi /etc/systemd/system/tomcat.service’ It is impossible to create such a file because there is no systemd folder on any side, instead on ubuntu if it can be done


@GestionX Let’s ask the tutorial editor. @manicas Hi Mitchell, is SystemD part of CentOS or should that be corrected?

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.

And in Centos ? where is the systemd folder ?


On Ubuntu 16.04 and 16.10, you should be able to drop it in to /lib/systemd/system/


sudo nano /lib/systemd/system/tomcat.service

Then run:

sudo systemctl enable tomcat.service


sudo systemctl daemon-reload

Locations will vary from one OS distro to another, especially in the case of CentOS vs Ubuntu. The only two distros that normally have the same paths (in most cases) are Ubuntu and Debian since Ubuntu is a fork of Debian and RedHat based distros.