In the tutorial https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-centos-7 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
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!
On Ubuntu 16.04 and 16.10, you should be able to drop it in to /lib/systemd/system/
i.e.
sudo nano /lib/systemd/system/tomcat.service
Then run:
sudo systemctl enable tomcat.service
and
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.
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.