Install Java, mySQL, apacheTomcat on Linux Server & Open Specific Port Using FireWalld

Standard
  • Install Java
    • Download and upload any jdk say “jdk-8u162-linux-x64.rpm” file at any directory say “/tmp”
    • cd /usr/java
    • sudo rpm -Uvh /tmp/jdk-8u162-linux-x64.rpm

 

 

 

  • Open Specific Port Using FireWalld
    • [root@centos7 ~]# firewall-cmd –permanent –add-port=100/tcp
      success
    • [root@centos7 ~]# firewall-cmd –reload
      success
    • We can check the ports that are opened in the current default zone with ‘–list-ports’.
      • [root@centos7 ~]# firewall-cmd –list-ports

100/tcp

Leave a comment