Opening up port 8080 in CentOS / Linux using iptables

I always like to add a comment and limit scope in my firewall rules. If I was opening up tcp port 8080 from everywhere (no scope limiting needed) for Tomcat I would run the following command iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport 8080 -j ACCEPT -m comment –comment “Tomcat… Continue reading Opening up port 8080 in CentOS / Linux using iptables

COMMON SPRING BOOT PROPERTIES

# =================================================================== # COMMON SPRING BOOT PROPERTIES # # This sample file is provided as a guideline. Do NOT copy it in its # entirety to your own application. ^^^ # =================================================================== # —————————————- # CORE PROPERTIES # —————————————- # BANNER banner.charset=UTF-8 # Banner file encoding. banner.location=classpath:banner.txt # Banner file location. banner.image.location=classpath:banner.gif # Banner image… Continue reading COMMON SPRING BOOT PROPERTIES

How to add Oracle JDBC driver in your Maven local repository

Here’s a guide to show you how to add an Oracle JDBC driver (“ojdbc6.jar“) into your Maven local repository, and also how to reference it in pom.xml. 1. Get Oracle JDBC Driver Two ways to get the Oracle jdbc driver : Oracle.com Oracle database installed folder, for example, “{ORACLE_HOME}\jdbc\lib\ojdbc6.jar“ 2. Install It To install your… Continue reading How to add Oracle JDBC driver in your Maven local repository

How to Install JAVA 7 on CentOS/RHEL and Fedora

Downloading Latest Java Archive Java latest archive is available on its official site. We recommend to download latest version of Java from Oracle official website. After completing download also extract archive with given commands. For 64 Bit:- # wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz” For 32 Bit:- # cd /opt/ # wget –no-cookies… Continue reading How to Install JAVA 7 on CentOS/RHEL and Fedora