How to Configure Liferay Tomcat to Start on Ubuntu Server Boot Automatically?

To ensure that your Liferay Tomcat server starts automatically when your Ubuntu server boots, you can use the @reboot attribute in the crontab. Here’s how you can set it up:

  1. Open the terminal on your Ubuntu server.
  2. Enter the crontab configuration with the following command:
    sudo crontab -e
  3. Scroll to the end of the file and add the following line:
    @reboot /Path To Tomcat folder/bin/startup.sh
    This line schedules the startup.sh script to run at every reboot.
  4. Save the file and exit the editor.

Now, every time your Ubuntu server restarts, the Liferay Tomcat server will start automatically, ensuring that your web applications are always available.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

close
Thanks !

Thanks for sharing this, you are awesome !