ArcGIS Server is deployed in a Linux system with CentOS 6.5 installed in VMware 11.0, which does not automatically start the service when it is installed, and it is cumbersome to start it manually (as shown) each time it is powered on. This document documents the process of setting up the boot ArcGIS Server service from startup.
1. Log in to Linux as root and copy the boot file (arcgisserver) to the/ETC/RC.D/INIT.D path;
① Execute command: CP/HOME/ARCGIS/ARCGIS/SERVER/FRAMEWORK/ETC/SCRIPTS/ARCGISSERVER/ETC/RC.D/INIT.D
After copying
② Manual Copy
2, switch to the/ETC/RC.D/INIT.D path, and then edit the script, change the content as follows (other services similar):
Add two lines
①# chkconfig:35 99 01
②agshome=/home/arcgis/arcgis/server//arcgis Server installation directory
Command # chkconfig:35 99 01, 35 for the start level, 99 for the system boot priority, the smaller the priority, the higher the first start, 01 for the system to shut down the service priority, the smaller the value the higher the priority, the more the first shutdown.
3. Add the service to the list and set it to boot, then check.
Command: Chkconfig--add arcgisserver//Add to Service list
Chkconfig arcgisserver on//set to boot from
Chkconfig//View the list of services
Reference Documentation:
①http://server.arcgis.com/zh-cn/server/latest/install/linux/silently-install-arcgis-server.htm Official installation configuration
②https://jingyan.baidu.com/article/bea41d43b8a2f4b4c51be6a5.html
③http://blog.csdn.net/smss007/article/details/77581809
Setting up the ArcGIS Server service on startup in a Linux environment