Setting environment variables for ArcGIS Server
Instead of setting user-defined environment variables in the user profile, the init_user_param.sh script is provided as a convenient way for you to set and manage user-defined variables specific to ArcGIS Server. The settings you define are applied only to ArcGIS Server and do not affect other applications running on the system.
The script is located in the <ArcGIS Server installation directory>/arcgis/server/usr directory. To set user-defined environment variables, open the script and use the following syntax:
export <user defined variables>=<location to the defined variables>
This script is broken up into three sections, which allow you to enable the following environment variables:
- The first section is used for enabling environment variables to configure a direct connection to a database in ArcGIS Server. To enable database environment variables, you'll need to uncomment the lines (by removing the pound sign [#] characters) and enter database-specific information. For detailed instructions, see Configuring a direct connection to a database in ArcGIS Server.
- The second section of the script is for configuring a proxy server. For detailed instructions, see Using a proxy server to connect to the Internet.
- The third section of the script is for enabling all other user-defined environment variables for ArcGIS Server.
When you are finished editing the script, you'll need to restart ArcGIS Server for the changes to take effect.