we will run the server as user glassfish

/usr/sbin/adduser -d /usr/glassfish4 -m --shell /bin/bash glassfish

wget http://download.java.net/glassfish/4.0/release/glassfish-4.0.zip cd /usr unzip ~/glassfish-4.0.zip

chown -R glassfish.glassfish /usr/glassfish4

get jdk from: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

cd /usr/java tar xzvf ~/jdk-7u40-linux-x64.tar.gz

Now change the configuration file for glassfish to point to the correct jdk:

emacs /usr/glassfish4/glassfish/config/asenv.conf

add the line

AS_JAVA="/usr/java/jdk1.7.0_40"

Start up scripts:

edit /etc/rc.d/init.d/glassfish

make sure the glassfish path is set correctly: GLASSFISHPATH=/usr/glassfish4/bin

now before starting set the glassfish server set the admin password: /usr/glassfish4/bin/asadmin

and issue the command change-admin-password --user admin

that will prompt you for the new admin password

now start the server and allow for remote administration:

/etc/rc.d/init.d/glassfish start

/usr/glassfish4/bin/asadmin --port 4848 enable-secure-admin

this will ask you for the admin account and password you now can administer the server remotely using the following url in case of the g4devel machine: https://g4devel.fnal.gov:4848/

use the Gui to create the G4Expert account and then to deploy the web application.

-- HansWenzel - 2016-04-06

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r1 - 2016-04-06 - HansWenzel
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback