Select to view content in your preferred language

Installation and Configuration of ArcGIS Server on Linux (Red Hat Enterprise Linux 7.4)

2311
0
01-24-2018 12:24 AM
MuhammadAdnan
Emerging Contributor
0 0 2,311

After completing the installation of RHEL(Red Hat Enterprise Linux) Version 7.4 follow the instructions below,

1.       Basic Settings

a.       Login with user named ‘arcgis’

b.      Change its password

(1).  Go to Applications

(2).  Open System Tools

(3).  Go to settings

(4).  Select User

(5).  Reset the password

c.       Change Network settings

(1).  In Settings  go to Network

(2).  Click on Wired to switch it ON

(3).  Click Add Profile

(4).  In Address, click Manual

(5).  Specify IP, Subnet Mask and Gateway

d.      Configuration of the Firewall

(1).  Go to the Terminal

(2).  Change the user to root using

# su root

(3).  Enter the password

(4).  Use following command to stop the firewall daemon

$ service firewalld stop

(5).  Use following command to disable the firewall from turning ON on startup

$ systemctl disable firewalld

(6).  Use following  command to check the status of the firewall daemon

$ Systemctl status firewalld

e.      Default file permissions

(1).  Go to the Terminal

(2).  Use following  command to assign all permission types (read, write, and execute) of the directory (containing the installation source)to the user

$ chmod 777 –R Downloads

f.        File handles and processes limits

(1).  To increase the soft and hard limits, you'll need to edit the /etc/security/limits.conf file with superuser access.

(2).  Open limits.conf file to edit using following  command

# Sudo gedit /etc/security/limits.conf

(3).  Add these four lines to the end of the file using Command

<ArcGIS Server installation user> soft nofile 65535

<ArcGIS Server installation user> hard nofile 65535

<ArcGIS Server installation user> soft nproc 25059

<ArcGIS Server installation user> hard nproc 25059

(4).  Save the file and close it

(5).  Log off the user

(6).  Again log in to implement the limits

g.       Hostname entry

(1).  open hostname file to edit the hostname using this command

# sudo gedit /etc/hostname

(2).  Change the hostname as desired e.g agsvr105

(3).  Save the edits

(4).  Close the file

(5).  You ll need to reboot the system to implement this hostname

h.      Hosts file configuration

(1).  Open hosts file using following command

# sudo gedit /etc/hosts

(2).  Add following lines to the end of the file

[IP] [hostname.domain] [hostname]

e.g

192.168.187.131 agsvr1051.esri.com agsvr1051

(3).  Save the file and close

(4).  Reboot the system

2.       Installation of ArcGIS Server

a.       Change your present working directory to the directory containing installation files for ArcGIS Server using

# cd Downloads/ArcGIS…./ArcGIS Server

b.      Then start the setup using

# sudo ./Setup

c.       The setup program begins by checking the prerequisites that must be met to successfully set up and use ArcGIS Server. If all the prerequisites are met, the Introduction dialog box displays. Click Next to proceed.

d.      On the Master Agreement dialog box, read the master agreement. If you accept the terms, select the I accept the master agreement button and click Next  to proceed; otherwise, exit the setup by clicking Cancel.

e.      On the Choose Install Folder dialog box, specify the installation location.

f.        On the Pre-Installation Summary dialog box, click Install to start the installation.

g.       Upon completion of the installation, follow the directions on the screen.

h.      Authorize ArcGIS Server

(1).  Click “I have received an authorization file from Esri and am now ready to finish the authorization process”.

(2).  To authorize it locate the .ecp file or the license file as provided by the administrator.

i.         After the installation is complete, ArcGIS Server Manager is automatically launched in Firefox.

3.       Post Install Configurations. To configure ArcGIS Server to start with the operating system follow these steps,

a.       Within a command shell, switch to root user.

b.      Copy <ArcGIS Server installation directory>/framework/etc/scripts/arcgisserver.service unit file to /etc/systemd/system using the command

$ cp <ArcGIS Server installation directory>/framework/etc/scripts/arcgisserver.service /etc/systemd/system

*This file is installed with ArcGIS 10.5.1 for Server.

c.       Still as root user, run the following command to automatically create the links in /etc/systemd/system/multi-user.target.wants:

$ systemctl enable arcgisserver.service

d.      To verify that the systemd service is properly configured, restart the service and check its status.

$ systemctl stop arcgisserver.service

$ systemctl start arcgisserver.service

$ systemctl status arcgisserver.service

e.      End the root user session.

f.        Reboot the operating system and verify that ArcGIS Server restarts properly.

4.       Ports Configurations (if needed). ArcGIS Server communicates on ports 1098, 4000-4004, 6006, 6080, 6099, and 6443. You'll need to open these ports on your firewall before installing the software. Follow these steps to open ports

a.       Within a command shell, switch to root user.

b.      Enter following command

$ firewall –cmd  –zone=public  --add-port=80/tcp --permanent

c.       Enter this command for all ports mentioned above

d.      Use following command to reload the firewall

$ firewall –amd --reload

e.      End the root user session

5.       Add SAN Share

a.       Make a mount point for mounting a specific share (share must be visible to both Windows and Linux). Use following command

$ mkdir /disk1

b.      Add the share commonly visible to all in fstab file using command

$ gedit /etc/fstab

c.       Add following lines to the end of the file

[complete_Share_IP_and_Address] <tab>[mounting_point]<tab>nfs   

e.g

192.168.187.100/Share/arcgissvr    /disk1    nfs

d.      Save the edits and close the file

e.      Use following command to mount all the shares

$ mount –a

f.        Add folders directories and config-store to this mounted share location by using

$ mkdir /disk1/directories

$ mkdir /disk1/config-store

6.       Site Creation

a.       Open ArcGIS Server Manager using firefox or chrome latest stable version(recommended)

b.      Click on create site

c.       Enter the user and its password

d.      Enter the directories (made in step 5f)and config-store location for server site

e.      Click next and the site is created  

7.       Clustering

a.       Add all the VMs, that you want make part of a cluster, to the hosts file

b.      Open hosts file using command

# sudo gedit /etc/hosts

c.       add one line using following format for each host/VM

[Host_IP]  [host.domin] [hostname]

e.g

192.168.187.131 agsvr1051.esri.com agsvr1051

192.168.187.132 agsvr1052.esri.com agsvr1052

d.      Go to the ArcGIS Manager Site

e.      In Site tab click clusters in the left panel

f.        Click add Server

g.       Enter the details of the Server

h.      Click Add

i.        Repeat this process for multiple Servers if you want to add more.

8.       Service Publication

a.       After adding Servers to the ArcGIS Catalog open the MXD that you want to publish.

b.      Go the file menu and click share as

c.       Click service

d.      Select server and the folder where it is to be published

e.      Analyze it and then publish

f.        This will create an .sd file in server directories

g.       Go to the ArcGIS Manager site and in Services tab click publish Service

h.      Locate the .sd file and click publish

About the Author
Experienced Geographic Information System Specialist skilled in ArcGIS, Spatial Analysis, Satellite Imagery Analysis, Remote Sensing, Global Positioning System (GPS), and Quantum GIS. Strong information technology professional with a BSc Hons focused in Space Science from University of the Punjab, Lahore.