![]() Installing TomcatĪnd now we must install Tomcat on our server. ![]() To do that, you must first download the necessary file with the command: curl -O Although you can install Tomcat from a repository, we're going to download the file and install it manually. sudo tar xzvf apache-tomcat-8*tar.gz -C /opt/tomcat -strip-components=1 Now we'll create the target directory and unpack tomcat with the following two commands: sudo mkdir /opt/tomcat Note: In the above command, that is an O not a zero. Next change the ownership of a few subdirectories, with the command: sudo chown -R tomcat webapps/ work/ temp/ logs/ Create the necessary systemd service file sudo chmod -R g+r confsudo chmod g+x conf This can be done with the following commands: cd /opt/tomcat Now we need to change the permissions for our newly created directory. ![]() We need to make sure that systemd is aware of tomcat, so it can be run as a service. To find this location, issue the command: sudo update-java-alternatives -l To do this you need to first find out where java is installed. You should be presented with the full path to the java installation. The JAVA_HOME variable, however, must end in jre, so the path will be: /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre In my case, that path is: /usr/lib/jvm/java-1.8.0-openjdk-amd64 How to install ffmpeg php ubuntu 16.04 command line full# With that information in hand, you can create the necessary systemd service. ![]() To do this, issue the command sudo nano /etc/systemd/system/rvice. How to install ffmpeg php ubuntu 16.04 command line full#. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |