When writing this tutorial, the latest stable Tomcat to download is version 9.0.62. In this step, we are going to install Tomcat and run it under the user ‘tomcat’ we created earlier. MariaDB > grant all on *.* to identified by 'm0d1fyth15' MariaDB will be running upon installation, now let’s create a MySQL user with full privileges. To do this, simply run the following command: $ sudo apt install mariadb-server Next, we will install MariaDB server from the repository. $ sudo useradd -r tomcat -m -d /opt/tomcat -shell /bin/bashĬheck the path of Tomcat’s home by running this command: Step 4. It is not recommended to run Tomcat as root, so for security reasons, we will create a new system user to run Tomcat. Let’s run the command below to install default JDK version 11, which is available on the built-in Ubuntu 20.04 repositories by using the following command: $ sudo apt install default-jdk unzip wget -y Step 3. To proceed with this, we need to have at least Java version 8 to be able to run Tomcat 9 which we are going to install in the next step. In order to install Jasper Reports for a production server, we are going to install it manually instead of using the installer. You can do this by running the following commands: $ sudo apt update -y You should get this output: No LSB modules are available.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You can check whether you have the proper Debian version installed on your server with the following command: $ lsb_release -a Additionally, replace ‘root’ with the username of the system user with sudo privileges. You will need to replace ‘IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number. SSH root access or a normal system user with sudo privilegesįirst, log in to your Ubuntu 20.04 server through SSH as the root user: ssh -p Port_number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |