Mercurial > dive4elements > framework
annotate HOWTO @ 461:e9e37a8ac74b 2.9.14
Added tag 2.9.13 for changeset 3c1177c58312
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 15 Mar 2013 10:15:18 +0100 |
parents | f027204baf5d |
children |
rev | line source |
---|---|
56
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
2 Installation JDK |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
3 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
4 F�r den Betrieb des Generischen Viewers und der Artefakt-Datenbank wird Java |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
5 ben�tigt. Um Sun Java �ber die Apt-Pakete zu installieren, ist es notwendig die |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
6 'non-free' Quellen in die Apt-Quellen einzutragen. Folgender Eintrag ist in die |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
7 Quellen einzutragen: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
8 deb http://hetzner:download@download.hetzner.de/debian/mirror lenny main contrib non-free |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 Anschlie�end m�ssen folgende Befehle abgesetzt werden, um die Pakete |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 sun-java6-jdk zu installieren: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 aptitude update |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 aptitude install sun-java6-jdk |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 Der Befehl |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 java -version |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 sollte anschlie�end etwas ergeben, was dem folgenden �hnelt. |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 java version "1.6.0_12" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 Java(TM) SE Runtime Environment (build 1.6.0_12-b04) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 Die Installation ist erfolgreich abgeschlossen. |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
24 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
25 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 Installation/Konfiguration Apache HTTP |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 F�r eine Installation von Apache wir unter anderem das Paket libapache2-mod-jk2 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 ben�tigt. Es stellt Connectoren bereit, um den Apache Webserver mit dem Tomcat |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
31 Server zu verbinden. |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 aptitude install libapache2-mod-jk2 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 Dieser Befehl ist f�r eine Installation des Apache Webservers ausreichend. Alle |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
34 weiteren ben�tigten Pakete werden automatisch mit installiert. |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
35 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
36 Nach der Installation der Pakete m�ssen ein paar kleine Einstellungen |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
37 vorgenommen werden, die den Pfad des Tomcat und des JDKs festlegen. Dazu �ffne |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
38 man die Datei /etc/libapache2-mod-jk/workers.properties mit einem Editor seiner |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
39 Wahl, und �ndere die folgenden Zeilen: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
40 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
41 gvim /etc/libapache2-mod-jk/workers.properties |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
42 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
43 - workers.tomcat_home=/usr/share/tomcat5 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
44 + workers.tomcat_home=/usr/share/tomcat5.5 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
45 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
46 - workers.java_home=/usr/lib/jvm/java-gcj |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
47 + workers.java_home=/usr/lib/jvm/java-6-sun/jre |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
48 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
49 Des Weiteren sind in der http.conf des Apache2 folgende Eintr�ge hinzuzuf�gen: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
50 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
51 gvim /etc/apache2/http.conf |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
52 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
53 + JkWorkersFile "/etc/libapache2-mod-jk/workers.properties" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
54 + JkLogFile "/var/log/mod_jk.log" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
55 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
56 In der Datei /etc/sites-available/default wird anschlie�end folgender Eintrag |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
57 ben�tigt, um das Forwarding vom Apachen zum Tomcat f�r den GenerischenViewer |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
58 einzurichten: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
59 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
60 + JkMount /gnv ajp13_worker |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
61 + JkMount /gnv/* ajp13_worker |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
62 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
63 + <Location /gnv> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
64 + AuthType Basic |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
65 + AuthName "BSH GenViewer" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
66 + AuthBasicProvider file |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
67 + AuthUserFile /etc/apache2/passwd/genviewer |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
68 + Require valid-user |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
69 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
70 + # Insert filter |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
71 + SetOutputFilter DEFLATE |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
72 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
73 + # Netscape 4.x has some problems... |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
74 + BrowserMatch ^Mozilla/4 gzip-only-text/html |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
75 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
76 + # Netscape 4.06-4.08 have some more problems |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
77 + BrowserMatch ^Mozilla/4\.0[678] no-gzip |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
78 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
79 + # MSIE masquerades as Netscape, but it is fine |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
80 + BrowserMatch \bMSIE !no-gzip !gzip-only-text/html |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
81 + # Don't compress images |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
82 + SetEnvIfNoCase Request_URI \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
83 + \.(?:gif|jpe?g|png)$ no-gzip dont-vary |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
84 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
85 + # Make sure proxies don't deliver the wrong content |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
86 + Header append Vary User-Agent env=!dont-vary |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
87 + </Location> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
88 + |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
89 + <Location /servlets-examples/> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
90 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
91 Diese Konfiguration bedarf noch der Aktivierung eines Apache Moduls, was mit |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
92 folgendem Aufruf getan wird: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
93 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
94 a2enmod headers |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
95 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
96 Die Konfiguration des Apache ist beendet. Starten Sie den Webserver mit |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
97 folgendem Aufruf: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
98 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
99 /etc/init.d/apache2 start |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
100 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
101 Bei erfolgreicher Installation sollten im Browser bei der Adresse |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
102 http://localhost folgender Text ausgegeben werden: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
103 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
104 It works! |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
105 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
106 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
107 Installation/Konfiguration Tomcat |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
108 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
109 F�r den Betrieb des Tomcat Servers werden die Pakete tomcat5.5 und |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
110 tomcat5.5-webapps ben�tigt. Installieren Sie diese �ber die Apt-Quellen mit |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
111 folgendem Befehl: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
112 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
113 aptitude install tomcat5.5 tomcat5.5-webapps |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
114 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
115 Anschlie�end deaktivieren wir den Standard-HTTP-Connector des Tomcat. Dieser |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
116 soll nicht direkt angesprochen werden k�nnen, sondern nur �ber den Apache |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
117 erreichbar sein. Dazu wird in der Datei /usr/share/tomcat5.5/conf/server.xml |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
118 folgender Code auskommentiert: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
119 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
120 <!-- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
121 <Connector port="8180" maxHttpHeaderSize="8192" address="127.0.0.1" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
122 maxThreads="150" minSpareThreads="25" maxSpareThreads="75" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
123 enableLookups="false" redirectPort="8443" acceptCount="100" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
124 connectionTimeout="20000" disableUploadTimeout="true" /> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
125 --> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
126 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
127 Damit der AJP-Connector, der zur Verbindung des Apache und des Tomcat dient, nur |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
128 auf die Adresse 127.0.0.1, also auf den localhost, lauscht, wird folgende Zeile |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
129 in der Datei /etc/tomcat5.5/server.xml ausgetauscht: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
130 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
131 - <Connector port="8009" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
132 - enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
133 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
134 + <Connector port="8009" address="127.0.0.1" |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
135 + enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
136 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
137 Die Konfiguration des Tomcat ist nun beendet. Dieser l�sst sich mit folgendem |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
138 Kommando starten: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
139 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
140 /etc/init.d/tomcat5.5 start |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
141 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
142 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
143 Download/Installation Geo-Backend |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
144 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
145 Die Installation des Geo-Backends ben�tigt neben dem Repository des Geo-Backends |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
146 selbst noch eine weitere, aus denen Jar-Files f�r ben�tigt werden. Laden Sie sich |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
147 also folgende Quellen herunter (${GNV} steht hier f�r das Verzeichnis, in das |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
148 Sie die Quellen laden): |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
149 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
150 svn co /path/to/conterra-repo ${GNV}/conterra-repo |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
151 svn co /path/to/geo-backend/trunk ${GNV}/geo-backend |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
152 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
153 Zuerst m�ssen die Bibliotheken installiert werden, von denen das Geo-Backend |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
154 abh�ngig ist. Dazu folgende Befehle, die die Jar-Files in das lokale Maven |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
155 Repository kopiert (in der Regel nach ~/.m2). Diese k�nnen sp�ter von Maven |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
156 automatisch dazugeladen werden, wenn Abh�ngigkeiten zu ihnen bestehen: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
157 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
158 cd ${GNV}/conterra-repo |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
159 mvn install:install-file -DgroupId=com.esri.sde -DartifactId=jsde_sdk \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
160 -Dversion=9.2.5 -Dpackaging=jar -Dfile=conterra-repo/com/esri/sde/jsde_sdk/9.2.5/jsde_sdk-9.2.5.jar |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
161 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
162 mvn install:install-file -DgroupId=com.esri.sde -DartifactId=jpe_sdk \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
163 -Dversion=9.2.5 -Dpackaging=jar -Dfile=conterra-repo/com/esri/sde/jpe_sdk/9.2.5/jpe_sdk-9.2.5.jar |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
164 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
165 mvn install:install-file -DgroupId=com.ibm -DartifactId=icu4j \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
166 -Dversion=3.2 -Dpackaging=jar -Dfile=conterra-repo/com/ibm/icu4j/3.2/icu4j-3.2.jar |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
167 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
168 Danach wechselt man in das Verzeichnis des Geo-Backends und setzt folgende |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
169 Maven Befehle ab, die die Quellen compilieren und ebenfalls in das lokale Maven |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
170 Repository installieren: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
171 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
172 cd ${GNV}/geo-backend |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
173 mvn -Dmaven.test.skip=true clean compile package |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
174 mvn install:install-file \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
175 -DgroupId=de.intevation.bsh.geo-backend \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
176 -DartifactId=geo-backend \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
177 -Dversion=1.0-SNAPSHOT \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
178 -Dpackaging=jar \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
179 -Dfile=target/geo-backend-1.0-SNAPSHOT.jar |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
180 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
181 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
182 Download/Installation Artifact-Server |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
183 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
184 Laden Sie die Quellen des Artefakt-Servers mit folgendem svn Befehl herunter: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
185 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
186 svn co /path/to/artifacts/trunk ${GNV}/artifacts |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
187 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
188 Compilieren Sie die Quellen und installieren sie das Jar-File mit folgendem |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
189 Befehl in das lokale Maven Repository: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
190 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
191 cd ${GNV}/artifacts |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
192 mvn -Dmaven.test.skip=true clean compile install |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
193 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
194 Zur Installation des Artefakt-Servers werden die Verzeichnisse |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
195 /opt/artifacts/bin und /opt/artifacts/conf ben�tigt, in die die Start-Scripte |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
196 und Konfigurationen kopiert werden: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
197 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
198 mkdir -p /opt/artifacts/bin (Ort f�r Startscripte) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
199 mkdir /opt/artifacts/bin/lib (Ort f�r ben�tigte Bibliotheken) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
200 mkdir /opt/artifacts/conf (Ort f�r die Konfiguration der Artefakte) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
201 mkdir /opt/artifacts/artifact-database (Ort der Artefakt-Datenbank) |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
202 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
203 Kopieren Sie anschlie�end das Start-Script ${GNV}/artifacts/bin/run.sh nach |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
204 /opt/artifacts/bin und geben dem Script Ausf�hrrechte: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
205 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
206 cp ${GNV}/artifacts/bin/run.sh /opt/artifacts/bin |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
207 chmod 750 /opt/artifacts/bin |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
208 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
209 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
210 Download/Installation GNV-Artefakte |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
211 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
212 Laden Sie die Quellen der GNV-Artefakte folgenderma�en herunter: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
213 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
214 svn co /path/to/gnv-artifacts/trunk ${GNV}/gnv-artifacts |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
215 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
216 Compilieren Sie die Quellen mit folgendem Befehl (Abh�ngigkeiten werden |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
217 automatisch aus dem lokalen Maven Repo geladen): |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
218 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
219 cd ${GNV}/gnv-artifacts |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
220 mvn -Dmaven.test.skip=true \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
221 clean compile \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
222 dependency:copy-dependencies \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
223 package |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
224 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
225 Setzen abschlie�end folgenden Befehl ab, der die ben�tigten Bibliotheken zu |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
226 einem Zip-Archiv packt. Diese werden sp�ter im Artefakt-Server ben�tigt: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
227 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
228 find target -name \*.jar -print | zip ${GNV}/libs.zip -j -@ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
229 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
230 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
231 Abschlie�ende Konfiguration der Komponenten |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
232 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
233 Entpacken Sie nun das erstellte Zip-Archiv nach /opt/artifacts/bin/lib : |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
234 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
235 unzip ${GNV}/libs.zip -d /opt/artifacts/bin/lib/ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
236 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
237 Kopieren Sie die Konfiguration der Artefakte nach /opt/artifacts/conf : |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
238 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
239 cp -R ${GNV}/gnv-artifacts/doc/* /opt/artifacts/conf/ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
240 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
241 Am Ende der Konfigurationsdatei /opt/artifacts/conf/conf.xml k�nnen |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
242 Einstellungen der Datenbank vorgenommen werden. �ndern Sie dort den User in |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
243 einen beliebigen Nutzer $USER und das Passwort in ein beliebiges Passwort |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
244 $PASSWORT. Setzen Sie den Pfad der der Datenbank au�erdem auf |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
245 /opt/artifacts/artifact-database: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
246 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
247 vim /opt/artifacts/conf/conf.xml |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
248 - <user>USER</user> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
249 - <password>PASSWORD</password> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
250 - <!-- url>jdbc:h2:/opt/artifacts/artifacts/artifacts.db</url> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
251 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
252 + <user>$USER</user> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
253 + <password>$PASSWORD</password> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
254 + <!-- url>jdbc:h2:/opt/artifacts/artifact-database/artifacts.db</url> |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
255 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
256 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
257 Diese Einstellungen werden nun beim Anlegen der Datenbank ben�tigt. Dazu setzen |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
258 Sie folgende Befehle ab und setzen an Stelle von $USER und $PASSWORD den von |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
259 ihnen konfigurierte Nutzer und entsprechendes Passwort sowie den Pfad zur |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
260 Datenbank ein: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
261 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
262 cd /opt/artifacts |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
263 java -cp bin/lib/h2-1.1.117.jar org.h2.tools.RunScript \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
264 -user $USER \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
265 -password $PASSWORD \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
266 -url jdbc:h2:artifact-database/artifacts.db \ |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
267 -script ${GNV}/artifacts/artifact-database/doc/schema-h2.sql |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
268 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
269 ------------------------------------------------------------------------------- |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
270 Start des GNV |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
271 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
272 Sollten Sie den Apache2 Webserver bzw den Tomcat Server noch nicht gestartet |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
273 haben, tun Sie dies nun. Desweiteren starten Sie den Artefakt-Server mit |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
274 folgendem Befehl: |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
275 |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
276 cd /opt/artifacts/bin |
f027204baf5d
Added HOWTO to setup the environment
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
277 ./run.sh |