Changes between Version 20 and Version 21 of installation_QCG_Broker
- Timestamp:
- 05/20/11 08:43:18 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
installation_QCG_Broker
v20 v21 13 13 For SL5.x 14 14 {{{#!sh 15 #yum install java-1.6.0-sun-compat.x86_6415 yum install java-1.6.0-sun-compat.x86_64 16 16 }}} 17 17 }}} … … 21 21 For SL5.x 22 22 {{{#!sh 23 #yum install postgresql-server.x86_6423 yum install postgresql-server.x86_64 24 24 }}} 25 25 }}} … … 30 30 For SL5.x 31 31 {{{#!sh 32 32 service postgresql start 33 33 }}} 34 34 }}} … … 38 38 For SL5.x 39 39 {{{#!sh 40 #yum install ant.x86_64 ant-nodeps.x86_6440 yum install ant.x86_64 ant-nodeps.x86_64 41 41 }}} 42 42 }}} … … 46 46 For SL5.x 47 47 {{{#!sh 48 #yum install xml-commons.x86_64 xml-commons-apis.x86_6448 yum install xml-commons.x86_64 xml-commons-apis.x86_64 49 49 }}} 50 50 }}} … … 57 57 #!div style="font-size: 90%" 58 58 {{{#!sh 59 $wget https://dist.eugridpma.info/distribution/igtf/current/accredited/RPMS/ca_PolishGrid-1.38-1.noarch.rpm60 $wget http://software.plgrid.pl/packages/general/ca_PLGRID-SimpleCA-1.0-2.noarch.rpm61 $wget https://dist.eugridpma.info/distribution/util/fetch-crl/fetch-crl-2.8.5-1.noarch.rpm62 63 $su -64 #rpm -i ca_PolishGrid-1.38-1.noarch.rpm65 #rpm -i ca_PLGRID-SimpleCA-1.0-2.noarch.rpm66 67 68 #rpm -i fetch-crl-2.8.5-1.noarch.rpm59 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 69 69 70 71 #/usr/sbin/fetch-crl70 #get fresh CRLs now 71 /usr/sbin/fetch-crl 72 72 73 74 #echo '#!/bin/sh' > /etc/cron.daily/fetch-crl.cron75 #echo '/usr/sbin/fetch-crl' >> /etc/cron.daily/fetch-crl.cron76 #chmod a+x /etc/cron.daily/fetch-crl.cron73 #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 77 77 }}} 78 78 }}} … … 81 81 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. 82 82 {{{#!sh 83 #echo "tcp.port.range=5000,5100" >> .globus/cog.properties83 echo "tcp.port.range=5000,5100" >> .globus/cog.properties 84 84 }}} 85 85 … … 93 93 #!div style="font-size: 90%" 94 94 {{{#!sh 95 #mkdir -p /opt/QCG96 #useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker95 mkdir -p /opt/QCG 96 useradd -d /opt/QCG/qcg-broker -m -s /bin/bash qcg-broker 97 97 }}} 98 98 }}} … … 104 104 #!div style="font-size: 90%" 105 105 {{{#!sh 106 #su - postgres107 $createuser -P qcg-broker108 109 110 111 112 113 114 115 116 $exit106 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 117 117 }}} 118 118 }}} … … 122 122 #!div style="font-size: 90%" 123 123 {{{#!sh 124 #su - qcg-broker125 $createdb -U qcg-broker qcg-broker126 $exit124 su - qcg-broker 125 createdb -U qcg-broker qcg-broker 126 exit 127 127 }}} 128 128 }}} … … 137 137 #!div style="font-size: 90%" 138 138 {{{#!default 139 140 139 local qcg-broker qcg-broker md5 140 host qcg-broker qcg-broker 127.0.0.1/32 md5 141 141 }}} 142 142 }}} … … 146 146 #!div style="font-size: 90%" 147 147 {{{#!sh 148 #service postgresql reload148 service postgresql reload 149 149 }}} 150 150 }}} … … 156 156 #!div style="font-size: 90%" 157 157 {{{#!sh 158 #su - qcg-broker158 su - qcg-broker 159 159 }}} 160 160 }}} … … 164 164 #!div style="font-size: 90%" 165 165 {{{#!sh 166 166 wget http://node2.qoscosgrid.man.poznan.pl/~piontek/qcg-broker/qcg-broker.tgz 167 167 }}} 168 168 }}} … … 172 172 #!div style="font-size: 90%" 173 173 {{{#!sh 174 174 tar xzf qcg-broker.tgz 175 175 }}} 176 176 }}} … … 183 183 #!div style="font-size: 90%" 184 184 {{{#!sh 185 $cd qcg-broker-<VERSION>186 $ant rebuildall185 cd qcg-broker-<VERSION> 186 ant rebuildall 187 187 }}} 188 188 }}} … … 206 206 #!div style="font-size: 90%" 207 207 {{{#!sh 208 $cd qcg-broker-<VERSION>209 $ant -f build.deploy.xml setupdb208 cd qcg-broker-<VERSION> 209 ant -f build.deploy.xml setupdb 210 210 }}} 211 211 }}} … … 218 218 #!div style="font-size: 90%" 219 219 {{{#!sh 220 #ant deploy220 ant deploy 221 221 }}} 222 222 }}} … … 262 262 #!div style="font-size: 90%" 263 263 {{{#!default 264 264 "/C=PL/O=GRID/O=PSNC/CN=qcg-broker/qcg.man.poznan.pl" sgeadmin 265 265 }}} 266 266 }}} … … 271 271 #!div style="font-size: 90%" 272 272 {{{#!sh 273 $cd /opt/QCG/qcg-broker/service274 $./broker/bin/start-broker.sh275 $./service/bin/startup.sh273 cd /opt/QCG/qcg-broker/service 274 ./broker/bin/start-broker.sh 275 ./service/bin/startup.sh 276 276 }}} 277 277 }}} … … 283 283 #!div style="font-size: 90%" 284 284 {{{#!sh 285 286 287 285 cd /opt/QCG/qcg-broker/service 286 ./broker/bin/stop-broker.sh 287 ./service/bin/shutdown.sh 288 288 }}} 289 289 }}}