Thứ Năm, 26 tháng 7, 2018

Get Services with path to executable export to csv of windows

Powershell Get-Service Example 1: Get all services on the computer Get-Service This command gets all of the services on the computer. It behaves as though you typed Get-Service *. The default display shows the status, service name, and display name of each service.Example 2: Get services that begin with a search string Get-Service "wmi*" This command retrieves services with service names that begin with WMI (the acronym for...
Read More

Thứ Ba, 24 tháng 7, 2018

Monitoring tomcat using zabbix

Platform: CentOS 7 64bit, Tomcat 7 1. Install Zabbix Server rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm yum install zabbix-web-mysql -y yum install zabbix-java-gateway -y yum -y install httpd yum -y install mariadb-server #mysql -urootmysql>create database zabbix character set utf8...
Read More

Thứ Tư, 18 tháng 7, 2018

Apache Tomcat service Start , Shutdown , Restart script for RHEL , CentOS & Ubuntu

Step 1. Create script with name tomcat containing following code #!/bin/sh##################################################################### Created by: Abhijit Sandhan# Purpose: Start/Stop/Restart Apache Tomcat service##################################################################### Check the path of Tomcat and set environment variables as follows# in the .bashrc profileexport CATALINA_HOME="/usr/local/tomcat7/apache-tomcat-7.0.37"export...
Read More

How to create a VirtualHost for Tomcat

To create Tomcat VirtualHost you just need to edit tomcat_dir/conf/server.xml and inside Engine tag place following code: <Host appbase="/home/apache-tomcat-7.0.90/webapps/sample" autodeploy="true" name="virtual_host_name" unpackwars="true">   <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="sample_catalina_logger." suffix=".txt" timestamp="true" />   <Context...
Read More