Category Archives: Uncategorized

Configure Tomcat as a System Service in CentOS

If you want to start Tomcat automatically when system boots up, you need to configure it as a system service. Let’s create a new file tomcat11.service in /etc/systemd/system [Unit] Description=Apache Tomcat11 After=network.target [Service] Type=forking Environment=”JAVA_HOME=/home/tomcat/jdk-21.0.1″ Environment=”CATALINA_PID=/home/tomcat/apache-tomcat-11.0.0-M14/temp/tomcat.pid” Environment=”CATALINA_HOME=/home/tomcat/apache-tomcat-11.0.0-M14″ Environment=”CATALINA_BASE=/home/tomcat/apache-tomcat-11.0.0-M14″ Environment=”CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseG1GC” Environment=”JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom” ExecStart=/home/tomcat/apache-tomcat-11.0.0-M14/bin/startup.sh ExecStop=/home/tomcat/apache-tomcat-11.0.0-M14/bin/shutdown.sh User=tomcat Group=tomcat UMask=0007 RestartSec=10 Restart=always [Install] WantedBy=multi-user.target you need Read More

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment

How to install Tomcat 11 in CentOS 7/8

First we need java. Tomcat11 requires Java Development Kit(JDK) 21 or later versions. You can download and install with following link https://www.oracle.com/java/technologies/downloads After the installaton you can check version. java -version   Please note that, if you have multiple java installed in your sever. You need to set JAVA_HOME environment parameter to set correct version. Read More

Posted in Linux, Uncategorized | Tagged , , | Leave a comment

Installing python3.9 and pip on CentOS 7

Firstly, install the requsite packages. sudo yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel   Once that is done, download python3.9 or newer version. wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz Extract it. tar -xvf Python-3.9.6.tgz Move into the directory and configure with following command.

Posted in Linux, Uncategorized | Tagged , , , , , | Leave a comment

Welcome!

Greetings, IT Enthusiasts! Welcome to my blog, your go-to destination for all things. Whether you’re a seasoned developer, admin or a curious beginner, we’ve got something for everyone. I’ll try to provide information and examples in a pill-like form, avoiding unnecessary complications at every level.

Posted in Uncategorized | Comments Off on Welcome!