Mercurial > dive4elements > gnv-client
comparison doc/admin-manual/installation-artefact-server.tex @ 925:ec28a68b5a87
Unified naming of artefact to artifact
doc/trunk@1062 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Hans Plum <hans.plum@intevation.de> |
---|---|
date | Thu, 06 May 2010 07:54:53 +0000 |
parents | 9d94bf77e442 |
children |
comparison
equal
deleted
inserted
replaced
924:9d94bf77e442 | 925:ec28a68b5a87 |
---|---|
37 bin/setup.sh | 37 bin/setup.sh |
38 \end{lstlisting} | 38 \end{lstlisting} |
39 | 39 |
40 Configure connection to database: | 40 Configure connection to database: |
41 \begin{lstlisting} | 41 \begin{lstlisting} |
42 cd /opt/artefact-server | 42 cd /opt/artifact-server |
43 vim conf/arcsdeconnectionpool.properties | 43 vim conf/arcsdeconnectionpool.properties |
44 | 44 |
45 # in conf/arcsdeconnectionpool.properties do: | 45 # in conf/arcsdeconnectionpool.properties do: |
46 server=xyz.server.com | 46 server=xyz.server.com |
47 username=guest | 47 username=guest |
50 database=esri_sde | 50 database=esri_sde |
51 \end{lstlisting} | 51 \end{lstlisting} |
52 | 52 |
53 Configure address for finding the WMS-Server: | 53 Configure address for finding the WMS-Server: |
54 \begin{lstlisting} | 54 \begin{lstlisting} |
55 cd /opt/artefact-server/ | 55 cd /opt/artifact-server/ |
56 vim conf/conf.xml | 56 vim conf/conf.xml |
57 # adapt the address in the element | 57 # adapt the address in the element |
58 # artifact-database/gnv/mapserver/server. This is | 58 # artifact-database/gnv/mapserver/server. This is |
59 # the string the server uses to provide an address of the mapserver to enduser. | 59 # the string the server uses to provide an address of the mapserver to enduser. |
60 e.g. http://SERVER/cgi-bin/gnv-wrapper | 60 e.g. http://SERVER/cgi-bin/gnv-wrapper |
67 {\em Hint: If the secret is changed, all files that were created before | 67 {\em Hint: If the secret is changed, all files that were created before |
68 are not valid anymore.} | 68 are not valid anymore.} |
69 | 69 |
70 \begin{lstlisting} | 70 \begin{lstlisting} |
71 # generate a randomized string, e.g. | 71 # generate a randomized string, e.g. |
72 cd /opt/artefact-server/ | 72 cd /opt/artifact-server/ |
73 pwgen -s 30 | 73 pwgen -s 30 |
74 # populate the tag artifact-database/export-secret | 74 # populate the tag artifact-database/export-secret |
75 \end{lstlisting} | 75 \end{lstlisting} |
76 | 76 |
77 Adapt TCP-port of artefact-server, if the default has to be changed | 77 Adapt TCP-port of artifact-server, if the default has to be changed |
78 (default:8181): | 78 (default:8181): |
79 \begin{lstlisting} | 79 \begin{lstlisting} |
80 cd /opt/artefact-server | 80 cd /opt/artifact-server |
81 vim conf/conf.xml | 81 vim conf/conf.xml |
82 | 82 |
83 # in conf/conf.xml edit the element artifact-database/rest-server/port | 83 # in conf/conf.xml edit the element artifact-database/rest-server/port |
84 \end{lstlisting} | 84 \end{lstlisting} |
85 | 85 |
86 Integrate artifact-server in startup-process of operating system: | 86 Integrate artifact-server in startup-process of operating system: |
87 \begin{lstlisting} | 87 \begin{lstlisting} |
88 cp -i /opt/artefact-server/bin/debian/artifact-server /etc/init.d/ | 88 cp -i /opt/artifact-server/bin/debian/artifact-server /etc/init.d/ |
89 chmod +x /etc/init.d/artifact-server | 89 chmod +x /etc/init.d/artifact-server |
90 update-rc.d artifact-server defaults | 90 update-rc.d artifact-server defaults |
91 \end{lstlisting} | 91 \end{lstlisting} |
92 | 92 |
93 The server can be started and stopped via | 93 The server can be started and stopped via |
100 | 100 |
101 \subsubsection*{Test of the Installation} | 101 \subsubsection*{Test of the Installation} |
102 \label{ref:artifact-server-testing} | 102 \label{ref:artifact-server-testing} |
103 Start the server: | 103 Start the server: |
104 \begin{lstlisting} | 104 \begin{lstlisting} |
105 /etc/init.d/artefact-server start | 105 /etc/init.d/artifact-server start |
106 \end{lstlisting} | 106 \end{lstlisting} |
107 | 107 |
108 1. Operating System: Check if the process of the server called "App" | 108 1. Operating System: Check if the process of the server called "App" |
109 is running: | 109 is running: |
110 \begin{lstlisting} | 110 \begin{lstlisting} |
113 # Example with list of java processes: | 113 # Example with list of java processes: |
114 19252 | 114 19252 |
115 19509 Jps | 115 19509 Jps |
116 19441 App | 116 19441 App |
117 | 117 |
118 cat /var/run/artefact-server | 118 cat /var/run/artifact-server |
119 \end{lstlisting} | 119 \end{lstlisting} |
120 | 120 |
121 Task: Compare the running process numbers. | 121 Task: Compare the running process numbers. |
122 | 122 |
123 2. Network: Check if the artefact-server opens a TCP-port (default: 8181) | 123 2. Network: Check if the artifact-server opens a TCP-port (default: 8181) |
124 \begin{lstlisting} | 124 \begin{lstlisting} |
125 netstat -nltp | 125 netstat -nltp |
126 | 126 |
127 # Check for an entry like: | 127 # Check for an entry like: |
128 tcp 0 0 127.0.0.1:8181 0.0.0.0:* LISTEN 18648/java | 128 tcp 0 0 127.0.0.1:8181 0.0.0.0:* LISTEN 18648/java |
129 \end{lstlisting} | 129 \end{lstlisting} |
130 | 130 |
131 3. Artefact-Server ready for communication with client? | 131 3. Artifact-Server ready for communication with client? |
132 \begin{lstlisting} | 132 \begin{lstlisting} |
133 curl "http://localhost:8181/factories" | xmllint --format - | 133 curl "http://localhost:8181/factories" | xmllint --format - |
134 \end{lstlisting} | 134 \end{lstlisting} |
135 | 135 |
136 Task: Check for a XML-document describing possible expert information | 136 Task: Check for a XML-document describing possible expert information |