installing glassfish on ubuntu


references…
http://skytteren.blogspot.com/2009/05/installing-glassfish-v3-on-ubuntu.html
http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-301-on-ubuntu
http://www.lyonlabs.org/howto/howdoi-glassfish.html

$ sudo groupadd --system glassfish
$ sudo useradd --system -g glassfish -d /opt/glassfish3/ glassfish
$ sudo chgrp -R admin /opt/glassfish3/
$ sudo chown -R glassfish /opt/glassfish3/
$ sudo chmod -R +x /opt/glassfish3/bin/ /opt/glassfish3/glassfish/bin/
$ sudo emacs /etc/init.d/glassfish
$ sudo chmod a+x /etc/init.d/glassfish
$ sudo update-rc.d glassfish defaults
#!/bin/sh 
GLASSFISHPATH=/opt/glassfish3/bin 
case "$1" in 
start) 
echo "starting glassfish from $GLASSFISHPATH" 
sudo -u glassfish $GLASSFISHPATH/asadmin start-domain domain1 
;; 
restart) 
$0 stop 
$0 start 
;; 
stop) 
echo "stopping glassfish from $GLASSFISHPATH" 
sudo -u glassfish $GLASSFISHPATH/asadmin stop-domain domain1 
;; 
*) 
echo $"usage: $0 {start|stop|restart}" 
exit 3 
;; 
esac 
: 
asadmin> change-admin-password
Enter admin user name [default: admin]>
Enter admin password>
Enter new admin password>
Enter new admin password again>
Command change-admin-password executed successfully.
asadmin> enable-secure-admin
Enter admin user name>  admin
Enter admin password for user "admin">
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.
Advertisements

3 comments

  1. Pingback: ucloudbiz – project server add. | gasaepiri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s