The path will be needed for JAVA_HOME, which will be set in the next step. Next we need to get the current location of Java:.Sudo chown -R tomcat webapps/ work/ temp/ logs/ Now let's set the permissions correctly:.Sudo tar xzvf apache-tomcat-8*tar.gz -C /opt/tomcat -strip-components=1 Tomcat will be saved to the /opt/tomcat directory, so let's get that set up:.As of this writing, 8.5.65 is the most recent version. Download Tomcat 8.5 from the Apache Tomcat website.Sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat Create a group and user for Tomcat to use:.(Optional Steps - To be performed only if you have disconnected from the server after installing Apache) That said, if you really must have 8.5 on your 18.04 server, this is how you can do it. Tomcat 8.5 was the version available with Ubuntu 16.04 and Tomcat 9 was the version available for 18.04. You should see a stock Apache page with the Ubuntu logo and some configuration information. Test the web server works in the browser by entering the server's IP address.You should see something similar to this: Allow Apache through the firewall by first listing applications ufw is aware of:.This is how one would install Apache on an up-to-date Ubuntu 18.04: So, with this in mind, let's install some software. Link rot is a real thing and should be avoided when possible. That said, AskUbuntu isn't really a site where one drops links and walks away. That said, DigitalOcean puts out some of the better walk-throughs for common software packages. There are lots of guides online that go over how to accomplish each of these tasks, but it seems many of them leave out one or two steps that then lead to questions on sites like this one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |