![]() Make sure to change the password for admin and manager access. sudo nano /opt/tomcat/conf/tomcat-users.xmlĪdd the following values. We recommend changing the password in the below configuration with high secured password. To do this, edit conf/tomcat-users.xml file in your editor and paste the following code inside tags. Now, configure your tomcat with user accounts to secure access of admin/manager pages. sudo sh -c 'chmod +x /opt/tomcat/bin/*.sh' Step 6: Create Tomcat Application Accounts Next, make all scripts within the bin directory executable. We need to give the tomcat user ownership over the extraction directory and make the scripts in the bin directory executable.įirst, we’ll change the directory ownership to tomcat. sudo tar xzf apache-tomcat-*.tar.gz -C /opt/tomcat Step 5: Set Permissions Once the download is complete, we’ll extract it to the /opt/tomcat directory. As of my writing, the latest stable version is 10.1.10.ĭownload the tar.gz file to the /tmp directory: wget Next, navigate to the Apache Tomcat official download page ( ), and grab the latest version of the binary distribution in tar.gz format. sudo useradd -r -m -U -d /opt/tomcat -s /bin/false tomcat Step 4: Download and Extract Tomcat 10 Therefore, we’ll create a new system user with home directory /opt/tomcat. Step 3: Create Tomcat Userįor security reasons, Tomcat should not be run under the root user. You should see an output confirming the installed version of OpenJDK. You can verify the installation with the following command: java -version ![]() Since Tomcat 10 requires JDK 11 or newer, we will install OpenJDK 11. Open your terminal, and enter the following command: sudo apt update & sudo apt upgrade -y Step 2: Install Java Development Kit (JDK)Īs Tomcat is a Java server, we need to have JDK installed on the system. ![]() It’s always a good idea to update the package lists for upgrades and new installations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |