Apache Mod_proxy to forward http traffic to Java App server 8080

In my vps server I wanted to forward http port 80 to glassfish 8080 ports without having glassfish config changed. So I assume httpd apache server is installed. So cd /etc/httpd/conf nano httpd.conf Add the below lines and save and restart apache <VirtualHost *:80> # Your domain name ServerName Domain_NAME_HERE ProxyPreserveHost On ProxyPass / http://localhost:8080/

Installing Wildfly 8 on Centos

I’ll show you how to set up Wildfly 8 server for standalone not for the domain mode download the package and unzip cd /opt wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.zip unzip wildfly-8.2.0.Final.zip -d /opt/ rename the unzipped folder mv wildfly-8.2.0.Final wildfly create the wildfly user groupadd wildfly useradd -s /bin/bash -g wildfly wildfly then prepare the config file path mkdir

Installing Jdk 7 on Centos

download jdk on console cd /opt sudo 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/7u75-b13/jdk-7u75-linux-x64.tar.gz" then unpack tar zxvf jdk-7u75-linux-x64.tar.gz then create folder mkdir /usr/java then move mv jdk1.7.0_75/ /usr/java/ install java alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_75/bin/java 1 install javac alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_75/bin/javac 1 install jar alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_75/bin/jar 1

installing oracle jdk 8 on ubuntu

tar zxvf jdk-8u151-linux-x64.tar.gz sudo mkdir /usr/java sudo mv jdk1.8.0_151/ /usr/java sudo update-alternatives –install “/usr/bin/java” “java” “/usr/java/jdk1.8.0_151/bin/java” 1 sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/java/jdk1.8.0_151/bin/javac” 1 sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/java/jdk1.8.0_151/bin/javaws” 1 fix the permissions sudo chmod a+x /usr/bin/java sudo chmod a+x /usr/bin/javac sudo chmod a+x /usr/bin/javaws sudo chown -R root:root /usr/java/jdk1.8.0_151 sudo nano /etc/environment and

Installing and configuring Glassfish 4.1 on RHEL and Centos

cd /opt wget http://dlc.sun.com.edgesuite.net/glassfish/4.1/release/glassfish-4.1.zip unzip glassfish-4.1.zip mv glassfish4 glassfish create glassfish user groupadd glassfish useradd -s /bin/bash -g glassfish glassfish chown -R glassfish: /opt/glassfish change the user password passwd glassfish nano /etc/init.d/glassfish add the below line #!/usr/bin/env bash # description: Glassfish start/stop/restart # processname: glassfish # chkconfig: 2445 20 80 JAVA_HOME=/usr/java/jdk1.7.0_75 export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH GLASSFISH_HOME=/opt/glassfish

Installing and configuring tomcat on Centos 7

wget http://www.us.apache.org/dist/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz tar -xvvf apache-tomcat-7.0.57.tar.gz mv apache-tomcat-7.0.57 /opt/tomcat nano /opt/tomcat/conf/tomcat-users.xml find the <tomcat-users> </tomcat-users> lines and in between add the below entry <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui,admin-script"/> and save the file and then issue command chmod 755 /opt/tomcat sh /opt/tomcat/bin/startup.sh  

Installing and configuring Mysql server on Freebsd

Go to the /usr folder cd /usr and then extract updates portsnap fetch extract then go to mysql client folder in ports(the version may change on your ports version and updates) /usr/ports/databases/mysql56-client then issue the command to install client make install clean and then navigate to the server folder cd /usr/ports/databases/mysql56-server then install it make