Changes between Version 20 and Version 21 of installation_QCG_Broker

Show
Ignore:
Timestamp:
05/20/11 08:43:18 (13 years ago)
Author:
bartek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • installation_QCG_Broker

    v20 v21  
    1313For SL5.x 
    1414{{{#!sh 
    15  # yum install java-1.6.0-sun-compat.x86_64 
     15yum install java-1.6.0-sun-compat.x86_64 
    1616}}} 
    1717}}} 
     
    2121For SL5.x 
    2222{{{#!sh 
    23  # yum install postgresql-server.x86_64 
     23yum install postgresql-server.x86_64 
    2424}}} 
    2525}}} 
     
    3030For SL5.x 
    3131{{{#!sh 
    32   service postgresql start 
     32service postgresql start 
    3333}}} 
    3434}}} 
     
    3838For SL5.x 
    3939{{{#!sh 
    40  # yum install ant.x86_64 ant-nodeps.x86_64 
     40yum install ant.x86_64 ant-nodeps.x86_64 
    4141}}} 
    4242}}} 
     
    4646For SL5.x 
    4747{{{#!sh 
    48  # yum install xml-commons.x86_64 xml-commons-apis.x86_64 
     48yum install xml-commons.x86_64 xml-commons-apis.x86_64 
    4949}}} 
    5050}}} 
     
    5757#!div style="font-size: 90%" 
    5858{{{#!sh 
    59  $ wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm 
    60  $ wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm 
    61  $ wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm 
    62  
    63  $ su - 
    64  # rpm -i ca_PolishGrid-1.38-1.noarch.rpm  
    65  # rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm  
    66  
    67  #install certificate revocation list fetching utility 
    68  # rpm -i fetch-crl-2.8.5-1.noarch.rpm 
     59wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm 
     60wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm 
     61wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm 
     62 
     63su - 
     64rpm -i ca_PolishGrid-1.38-1.noarch.rpm  
     65rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm  
     66 
     67#install certificate revocation list fetching utility 
     68rpm -i fetch-crl-2.8.5-1.noarch.rpm 
    6969  
    70  #get fresh CRLs now 
    71  # /usr/sbin/fetch-crl  
     70#get fresh CRLs now 
     71/usr/sbin/fetch-crl  
    7272  
    73  #install cron job for it 
    74  # echo '#!/bin/sh' > /etc/cron.daily/fetch-crl.cron 
    75  # echo '/usr/sbin/fetch-crl' >> /etc/cron.daily/fetch-crl.cron 
    76  # chmod a+x /etc/cron.daily/fetch-crl.cron 
     73#install cron job for it 
     74echo '#!/bin/sh' > /etc/cron.daily/fetch-crl.cron 
     75echo '/usr/sbin/fetch-crl' >> /etc/cron.daily/fetch-crl.cron 
     76chmod a+x /etc/cron.daily/fetch-crl.cron 
    7777}}} 
    7878}}} 
     
    8181  QCG-Broker needs set of opened ports to be able to receive notifications about changes of jobs and tasks statuses and to communicate with gridFTP server.The port range must be set in ~/.globus/cog.properties file. 
    8282{{{#!sh 
    83  # echo "tcp.port.range=5000,5100" >> .globus/cog.properties 
     83echo "tcp.port.range=5000,5100" >> .globus/cog.properties 
    8484}}} 
    8585 
     
    9393#!div style="font-size: 90%" 
    9494{{{#!sh   
    95   # mkdir -p /opt/QCG 
    96   # useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker  
     95mkdir -p /opt/QCG 
     96useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker  
    9797}}} 
    9898}}} 
     
    104104#!div style="font-size: 90%" 
    105105{{{#!sh 
    106  # su - postgres 
    107  $ createuser -P qcg-broker 
    108  
    109  Enter password for new role:  
    110  Enter it again:  
    111  Shall the new role be a superuser? (y/n) n 
    112  Shall the new role be allowed to create databases? (y/n) y 
    113  Shall the new role be allowed to create more new roles? (y/n) n 
    114  CREATE ROLE 
    115  
    116  $ exit 
     106su - postgres 
     107createuser -P qcg-broker 
     108 
     109Enter password for new role:  
     110Enter it again:  
     111Shall the new role be a superuser? (y/n) n 
     112Shall the new role be allowed to create databases? (y/n) y 
     113Shall the new role be allowed to create more new roles? (y/n) n 
     114CREATE ROLE 
     115 
     116exit 
    117117}}} 
    118118}}} 
     
    122122#!div style="font-size: 90%" 
    123123{{{#!sh 
    124  # su - qcg-broker 
    125  $ createdb -U qcg-broker qcg-broker 
    126  $ exit 
     124su - qcg-broker 
     125createdb -U qcg-broker qcg-broker 
     126exit 
    127127}}} 
    128128}}} 
     
    137137#!div style="font-size: 90%" 
    138138{{{#!default 
    139  local   qcg-broker   qcg-broker                         md5 
    140  host    qcg-broker   qcg-broker   127.0.0.1/32          md5 
     139local   qcg-broker   qcg-broker                         md5 
     140host    qcg-broker   qcg-broker   127.0.0.1/32          md5 
    141141}}} 
    142142}}} 
     
    146146#!div style="font-size: 90%" 
    147147{{{#!sh 
    148  # service postgresql reload 
     148service postgresql reload 
    149149}}} 
    150150}}} 
     
    156156#!div style="font-size: 90%" 
    157157{{{#!sh 
    158  # su - qcg-broker 
     158su - qcg-broker 
    159159}}} 
    160160}}} 
     
    164164#!div style="font-size: 90%" 
    165165{{{#!sh 
    166  wget http://node2.qoscosgrid.man.poznan.pl/~piontek/qcg-broker/qcg-broker.tgz 
     166wget http://node2.qoscosgrid.man.poznan.pl/~piontek/qcg-broker/qcg-broker.tgz 
    167167}}} 
    168168}}} 
     
    172172#!div style="font-size: 90%" 
    173173{{{#!sh 
    174  tar xzf qcg-broker.tgz 
     174tar xzf qcg-broker.tgz 
    175175}}} 
    176176}}} 
     
    183183#!div style="font-size: 90%" 
    184184{{{#!sh 
    185  $ cd qcg-broker-<VERSION> 
    186  $ ant rebuildall 
     185cd qcg-broker-<VERSION> 
     186ant rebuildall 
    187187}}} 
    188188}}} 
     
    206206#!div style="font-size: 90%" 
    207207{{{#!sh 
    208  $ cd qcg-broker-<VERSION> 
    209  $ ant -f build.deploy.xml setupdb 
     208cd qcg-broker-<VERSION> 
     209ant -f build.deploy.xml setupdb 
    210210}}} 
    211211}}} 
     
    218218#!div style="font-size: 90%" 
    219219{{{#!sh 
    220  # ant deploy 
     220ant deploy 
    221221}}} 
    222222}}} 
     
    262262#!div style="font-size: 90%" 
    263263{{{#!default 
    264  "/C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg.man.poznan.pl" sgeadmin 
     264"/C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg.man.poznan.pl" sgeadmin 
    265265}}} 
    266266}}} 
     
    271271#!div style="font-size: 90%" 
    272272{{{#!sh 
    273  $ cd /opt/QCG/qcg-broker/service 
    274  $ ./broker/bin/start-broker.sh 
    275  $ ./service/bin/startup.sh 
     273cd /opt/QCG/qcg-broker/service 
     274./broker/bin/start-broker.sh 
     275./service/bin/startup.sh 
    276276}}} 
    277277}}} 
     
    283283#!div style="font-size: 90%" 
    284284{{{#!sh 
    285  cd /opt/QCG/qcg-broker/service 
    286  ./broker/bin/stop-broker.sh 
    287  ./service/bin/shutdown.sh 
     285cd /opt/QCG/qcg-broker/service 
     286./broker/bin/stop-broker.sh 
     287./service/bin/shutdown.sh 
    288288}}} 
    289289}}}