-
Latest Posts
- Install newest gcc on CentOS 7
- How to disable IPv6 on CentOS 7
- How to connect a Windows Machine with Ansible via Winrm
- How to Stop/Start Tomcat with Ansible
- Installing Docker and Docker-Compose on CentOS with Ansible
- SSH Login Without Password
- Configure Tomcat as a System Service in CentOS
- How to install Tomcat 11 in CentOS 7/8
- Installing ansible with pip
- Installing python3.9 and pip on CentOS 7
- How to install Oracle Database 23c Developer Edition on Docker
- Welcome!
-
Tag Cloud
ansible centos CentOS 7 credentials disk usage ansible docker docker-compose gcc install IPv6 linux oarcle 23c oracle 23c developer edition oracle database pip pip3.9 playbook python python3.9 ssh ssh-keygen stop start service system service tomcat tomcat11 urllib3 windows management with ansible windows winrm winrm without password
Archives
Tag Archives: system service
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