comparison doc/admin-manual/installation-artefact-server.tex @ 901:1ebde13e620f

Moved all admin-manual specific files in new directory admin-manual doc/trunk@1024 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Hans Plum <hans.plum@intevation.de>
date Wed, 28 Apr 2010 14:25:08 +0000
parents
children dc8c8f5b833e
comparison
equal deleted inserted replaced
900:6df869086544 901:1ebde13e620f
1 \subsection{Artifact-Server}
2 Aim/Task: see above
3
4 \subsubsection*{Installation}
5 Running the server with its own user:
6 \verb+ # adduser artifacts+
7
8 Prepare infrastructure for logging
9 \begin{lstlisting}
10 cd /var/log
11 mkdir artifacts
12 chmod 770 artifacts
13 chmod g+s artifacts
14 \end{lstlisting}
15
16 Integrate software of artefact-server into filesystem
17 cd /opt
18 tar xfvj /root/artifact-server-\$VERSION.tar.bz2
19 ln -s artifact-server-\$VERSION artifact-server
20 cd artifact-server
21
22 Setting the access rights
23 bin/setup.sh
24
25 Configure connection to database
26 cd /opt/artefact-server
27 vim conf/arcsdeconnectionpool.properties
28
29 in conf/arcsdeconnectionpool.properties do:
30 \begin{lstlisting}
31 server=xyz.server.com
32 username=guest
33 credentials=XYZ
34 port=5151
35 database=esri_sde
36 \end{lstlisting}
37
38 Configure address for finding the WMS-Server
39
40 Adapt TCP-port of artefact-server
41 cd /opt/artefact-server
42 vim conf/conf.xml
43
44 in conf.conf.xml:
45 adapt value of the element \verb+ rest-server/port+ (default: 8181)
46
47 Integrate Artefact-Server in Init-Process of Operating System
48 mv /opt/artefact-server/bin/debian/artefact-server /etc/init.d/
49 cd /etc/init.d
50 chmod +x artifact-server
51 update-rc.d artifact-server defaults
52
53 FIXME: Setting up credential for signing project files.
54
55 The installation of the artefact-server is finished. It can be tested
56 now.
57
58 \subsubsection*{Test of the Installation}
59 Start the server:
60 /etc/init.d/artefact-server start
61
62 1. Operating System: Check if the process of the server is running
63 \verb+jps+
64
65 list of java processes:
66 \begin{lstlisting}
67 19252
68 19509 Jps
69 19441 App
70 \end{lstlisting}
71
72 \verb+ cat /var/run/artefact-server+
73
74 Task: Compare the running process numbers
75
76 2. Network: Check if the artefact-server opens a TCP-port (default: 8181)
77 netstat -nltp
78
79 Check for an entry like
80 tcp 0 0 127.0.0.1:8181 0.0.0.0:* LISTEN 18648/java
81
82 3. Artefact-Server ready for communication with client
83 wget -qO- http://localhost:8181/factories
84
85 Task: Check for a XML-document describing a possible FIS
86
87
88 \subsubsection*{Deinstallation}
89 Stop server process:
90 /etc/init.d/artefact-server stop
91
92 Remove integration in INIT-process:
93 rm -fi /etc/init.d/artefact-server
94 update-rc.d artefact-server remove
95
96 Remove Binaries, Configuration, Caches, Artefact-Database:
97 rm -rfi /opt/artefact-server
98 rm -rfi /opt/artefact-server-\$VERSION
99
100 Remove logging directories
101 rm -rfi /var/log/artifacts

http://dive4elements.wald.intevation.org