This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********** | |
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 “[email protected]” | |
gedit id_rsa.pub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: webservers | |
vars: | |
- http_port: 8080 | |
- tomcat_version: 8.5.53 | |
tasks: | |
- name: add group "tomcat" | |
group: name=tomcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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/ |