-->
Download jdk from http://www.oracle.com/technetwork/java/javase/downloads/index.html
[root@vellore 3rdparty_packages]# rpm
-ivh jdk-7u7-linux-x64.rpm
Download Glassfish from
https://glassfish.java.net/downloads/3.1.2.2-final.html
[root@vellore Downloads]# unzip
glassfish-3.1.2.2.zip -d /usr/share/
[root@vellore Downloads]# vim
/etc/init.d/glassfish
#!/bin/bash
# description: Glassfish Start Stop
Restart
# processname: glassfish
# chkconfig: 234 20 80
JAVA_HOME=/usr/java/jdk1.7.0_07
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
GLASSFISH_HOME=/usr/share/glassfish3/glassfish/
case $1 in
start)
sh $GLASSFISH_HOME/bin/asadmin
start-domain domain1
;;
stop)
sh $GLASSFISH_HOME/bin/asadmin
stop-domain domain1
;;
restart)
sh $GLASSFISH_HOME/bin/asadmin
stop-domain domain1
sh $GLASSFISH_HOME/bin/asadmin
start-domain domain1
;;
esac
exit 0
[root@vellore Downloads]# chmod 755
/etc/init.d/glassfish
[root@vellore Downloads]# chkconfig
--add glassfish
[root@vellore Downloads]# chkconfig
--level 234 glassfish on
[root@vellore Downloads]# service glassfish start
[root@vellore Downloads]# service glassfish start
check this URL in your browser
http://localhost:8080/
Change password and logout
Nice ! procedure
ReplyDeleteShort and Clear! I fix my problem by this! Nice and very Clear and understandbale easly
ReplyDeleteperfect procedure, but my 8080 port is occupied by tnslsnr,
ReplyDeleteso how can I assign other port for admin console ?
awesome , clear and focused post. regards.
ReplyDelete