Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Installation of the Metcast system
[go: Go Back, main page]

Installation of the Metcast server (fastcgi version)

This is a working document updated by the Metcast group. This is a step by step procedure to install the Metcast server. The Metcast system is composed of the Metcast server and the decoders, but this document only applies to the server. Database installation is not covered here.

Overview and key terms

Database Servers

The metcast server requires access to an Informix database server. Metcast can access any of four databases: grids, imagery, channels, and obs. It is not necessary to set up all four databases to have a functioning metcast server. The database server can run locally or remotely.

This document does not cover database installation or configuration.

The proxy

The proxy does the communication between the Apache fastcgi module and and instance of the Metcast server. It is a short C program. All requests to the Metcast server must pass through this proxy.

A port number (e.g. 3926) is an essential parameter for the proxy. It is used to start an instance of the Metcast server. It can be specified through the environment variable MSERVER_PIPE.

If you do not have a binary version of the proxy, you can compile it using the fastcgi development kit (devkit).

The Metcast server

This is mainly Scheme code. The main module is server.scm.

The file start_server.sh

This file sets various environment variables and starts an instance of the Metcast server. This is the proxy that indirectly starts an instance. The name should be specified in the file inetd.conf. The file contains several environment variables that must be set properly by the installer. Consult it for further details.

inetd or xinetd

Depending on your OS, either inetd or xinetd is used to start an instance Metcast server. For inetd, the file /etc/inetd.conf should be adapted to point to start_server.sh. For xinetd, there should be a file in /etc/xinetd.d describing the metcast service. Refer to the documentation on inetd or xinetd for more information.

/etc/services should specify the same tcp port as the proxy uses (specified in start_server_fcgi_proxy).

Log files

All log files are created in one directory. This directory is specified in the file start_server.sh. For each Metcast instance, a file is created whose name uses the date, time and process id of the instance Metcast server.

Installation Step by step.