以下步骤将指导您完成 ArcGIS GeoEvent Server 的安装过程。
安装的先决条件包括下列各项:
- 为要安装 GeoEvent Server 的计算机获取授权文件。
- 验证站点是否满足系统要求。
- 修改防火墙设置,允许在 GeoEvent Server 使用的端口上进行通信。
- 以安装 ArcGIS Server 的用户身份登录。
- 如果您使用安装介质,则内容已位于 <media_drive>:/GeoEvent/ 下,因此您可以跳过此步骤并转到下方的步骤 2。
如果您已下载 GeoEvent Server 包的 *.tar.gz 文件,请对文件进行解包:
For example: $ tar -zxvf ArcGIS_GeoEvent_*.tar.gz
- (可选)如果要使用 GeoEvent Simulator,由于其只能运行在 Windows 上,因此您需要将 GeoEventSimulator.exe 文件复制到 Windows 计算机上。文件位于以下位置之一:
- 如果使用安装介质:<media_drive>:/GeoEvent/Support/。
- 如果已下载英语包文件:./ArcGISGeoEvent/Support/。
- 如果已下载非英语包文件:./ArcGISGeoEvent_<LANGUAGE>/Support/
- 请运行 Setup.sh 来安装 GeoEvent Server:
$ ./ArcGISGeoEvent/Setup.sh For non-English setups: $ ./ArcGISGeoEvent_<LANGUAGE>/Setup.sh
- 通过运行“GeoEvent Server 软件授权工具”对 ArcGIS Server 授予许可:
$ <arcgis-server-install-location>/tools/authorizeSoftware For example: $ ~/arcgis/server/tools/authorizeSoftware
- 按照以下相应的说明将 GeoEvent Server 配置为与操作系统一起启动:
注:
引用 sudo 时,您能够以根用户的身份进行登录来运行此命令:
$ sudo su root OR $ su root OR $ su
- RHEL 7.x 及更高版本:
- 安装 Linux 后台程序:
$ sudo cp <arcgis-server-install-location>/GeoEvent/gateway/etc/service/geoeventGateway.service /etc/systemd/system For example: $ sudo cp ~/arcgis/server/GeoEvent/gateway/etc/service/geoeventGateway.service /etc/systemd/system $ sudo cp <arcgis-server-install-location>/GeoEvent/etc/service/geoevent.service /etc/systemd/system For example: $ sudo cp ~/arcgis/server/GeoEvent/etc/service/geoevent.service /etc/systemd/system
- 重新启动计算机时将自动启动 GeoEvent Server 和网关后台程序:
$ sudo systemctl enable geoeventGateway.service
$ sudo systemctl enable geoevent.service
- 启动 GeoEvent Server 和网关后台程序:
$ sudo systemctl start geoeventGateway.service
$ sudo systemctl start geoevent.service
- (可选)停止 GeoEvent Server 和网关后台程序:
$ sudo systemctl stop geoeventGateway.service
$ sudo systemctl stop geoevent.service
- (可选)检查 GeoEvent Server 和网关后台程序状态:
$ systemctl status geoeventGateway.service
$ systemctl status geoevent.service
- RHEL 6.x:
- 安装 Linux 后台程序:
$ cd <arcgis-server-install-location>/GeoEvent/bin For example: $ cd ~/arcgis/server/GeoEvent/bin $ sudo ln -s <arcgis-server-install-location>/GeoEvent/gateway/bin/ArcGISGeoEventGateway-service /etc/init.d/ For example: $ sudo ln -s ~/arcgis/server/GeoEvent/gateway/bin/ArcGISGeoEventGateway-service /etc/init.d/ $ sudo ln -s <arcgis-server-install-location>/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/ For example: $ sudo ln -s ~/arcgis/server/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/ $ sudo chkconfig --add ArcGISGeoEventGateway-service $ sudo chkconfig --add ArcGISGeoEvent-service
- 重新启动计算机时将自动启动 GeoEvent Server 和网关后台程序:
$ sudo chkconfig ArcGISGeoEventGateway-service on
$ sudo chkconfig ArcGISGeoEvent-service on
- 启动 GeoEvent Server 和网关后台程序:
$ service ArcGISGeoEventGateway-service start
$ service ArcGISGeoEvent-service start
- (可选)停止 GeoEvent Server 和网关后台程序:
$ service ArcGISGeoEventGateway-service stop
$ service ArcGISGeoEvent-service stop
- (可选)检查 GeoEvent Server 和网关后台程序状态:
$ service ArcGISGeoEventGateway-service status
$ service ArcGISGeoEvent-service status
- SUSE
- 安装 Linux 后台程序:
$ cd <arcgis-server-install-location>/GeoEvent/bin For example: $ cd ~/arcgis/server/GeoEvent/bin Switch to root user: $ su $ ln -s <arcgis-server-install-location>/GeoEvent/gateway/bin/ArcGISGeoEventGateway-service /etc/init.d/ For example: $ ln -s ~/arcgis/server/GeoEvent/gateway/bin/ArcGISGeoEvent-service /etc/init.d/ $ ln -s <arcgis-server-install-location>/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/ For example: $ ln -s ~/arcgis/server/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/ $ insserv ArcGISGeoEventGateway-service $ chkconfig ArcGISGeoEventGateway-service $ insserv ArcGISGeoEvent-service $ chkconfig ArcGISGeoEvent-service
- 重新启动计算机时将自动启动 GeoEvent Server 和网关后台程序:
Still as root user: $ chkconfig ArcGISGeoEventGateway-service on End the root user session
Still as root user: $ chkconfig ArcGISGeoEvent-service on End the root user session
- 启动 GeoEvent Server 和网关后台程序:
$ /etc/init.d/ArcGISGeoEventGateway-service start
$ /etc/init.d/ArcGISGeoEvent-service start
- (可选)停止 GeoEvent Server 和网关后台程序:
$ /etc/init.d/ArcGISGeoEventGateway-service stop
$ /etc/init.d/ArcGISGeoEvent-service stop
- (可选)检查 GeoEvent Server 和网关后台程序状态:
$ /etc/init.d/ArcGISGeoEventGateway-service status
$ /etc/init.d/ArcGISGeoEvent-service status
- Ubuntu Server 16.04.x LTS 及更高版本:
- 安装 Linux 后台程序:
$ sudo cp <arcgis-server-install-location>/GeoEvent/gateway/etc/service/geoeventGateway.service /etc/systemd/system For example: $ sudo cp ~/arcgis/server/GeoEvent/gateway/etc/service/geoeventGateway.service /etc/systemd/system $ sudo cp <arcgis-server-install-location>/GeoEvent/etc/service/geoevent.service /etc/systemd/system For example: $ sudo cp ~/arcgis/server/GeoEvent/etc/service/geoevent.service /etc/systemd/system
- 重新启动计算机时将自动启动 GeoEvent Server 和网关后台程序:
$ sudo systemctl enable geoeventGateway.service
$ sudo systemctl enable geoevent.service
- 启动 GeoEvent Server 和网关后台程序:
$ sudo systemctl start geoeventGateway.service
$ sudo systemctl start geoevent.service
- (可选)停止 GeoEvent Server 和网关后台程序:
$ sudo systemctl stop geoeventGateway.service
$ sudo systemctl stop geoevent.service
- (可选)检查 GeoEvent Server 和网关后台程序状态:
$ systemctl status geoeventGateway.service
$ systemctl status geoevent.service
- Ubuntu Server 12.04.x LTS:
- 安装 Linux 后台程序:
$ cd <arcgis-server-install-location>/GeoEvent/bin For example: $ cd /arcgis/server/GeoEvent/bin $ sudo ln -s <arcgis-server-install-location>/GeoEvent/gateway/etc/service/ArcGISGeoEventGateway-service /etc/init.d/ For example: $ sudo ln -s /arcgis/server/GeoEvent/gateway/etc/service/ArcGISGeoEventGateway-service /etc/init.d/ $ sudo ln -s <arcgis-server-install-location>/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/ For example: $ sudo ln -s /arcgis/server/GeoEvent/bin/ArcGISGeoEvent-service /etc/init.d/
- 重新启动计算机时将自动启动 GeoEvent Server 和网关后台程序:
$ sudo update-rc.d ArcGISGeoEventGateway-service defaults
$ sudo update-rc.d ArcGISGeoEvent-service defaults
- 启动 GeoEvent Server 和网关后台程序:
$ service ArcGISGeoEventGateway-service start
$ service ArcGISGeoEvent-service start
- (可选)停止 GeoEvent Server 和网关后台程序:
$ service ArcGISGeoEventGateway-service stop
$ service ArcGISGeoEvent-service stop
- (可选)检查 GeoEvent Server 和网关后台程序状态:
$ service ArcGISGeoEventGateway-service status
$ service ArcGISGeoEvent-service status