Skip to content

Instantly share code, notes, and snippets.

View sathishkumarpkd's full-sized avatar

sathishkumarpkd

View GitHub Profile
// Check and terminate port in windows.
C:\Users\Admin> netstat -ano | findstr :8080
It will show as below:
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 6956
TCP [::]:8080 [::]:0 LISTENING 6956
Then run the below command to kill the PID
C:\Users\Admin>taskkill /PID 6956 /F
SUCCESS: The process with PID 6956 has been terminated.
@sathishkumarpkd
sathishkumarpkd / devops_simpli
Last active February 25, 2024 21:40
devops
/***********
Refer Sathish-Jenkins-Declarative-Pipeleine on https://github.com/sathishkumarpkd/myweb.git
For declarative Jenkins pipeline.
- Git Checkout,MVN install, Deploy to tomcat
used Azure cloud(simpli) for Jenkins and Tomcat installation on AWS EC2, Amazon Linux
History commands are copied to
***********/
ssh-keygen -t rsa -C “sathishkumarpkd@gmail.com”
gedit id_rsa.pub
---
- hosts: webservers
vars:
- http_port: 8080
- tomcat_version: 8.5.53
tasks:
- name: add group "tomcat"
group: name=tomcat
---
- hosts: webservers
tasks:
- name: Make sure that we can connect to the machine
ping:
- name: Stop Tomcat
shell: ./shutdown.sh
args:
chdir: /opt/apache-tomcat-8.5.49/bin/