Pages

Wednesday, June 27, 2012

Installing RPM's In CentOS

Problem Statement: I have a web application that runs on Tomcat server 7. I have created RPM for the same. How do I deploy the RPM and restart the web application and Tomcat 7.

Problem Solution:

wget "rpm location"
Example:  wget http://192.168.0.59:8080/mywebapp_01_may_2012.rpm

yum localinstall "rpm file name"

Example:  yum localinstall mywebapp_01_may_2012.rpm
service tomcat7 restart

No comments:

Post a Comment