1.安装NFS文件共享服务
查看防火墙状态
systemctl status firewalld.service
关闭防火墙
systemctl stop firewalld.service
禁用防火墙的开机启动
systemctl disable firewalld.service
查看本机是否安装nfs服务
[root@arcgisnode1 tools]# rpm -qa nfs-utils
nfs-utils-1.3.0-0.65.el7.x86_64
使用命令行安装nfs服务
yum -y install nfs-utils
安装完毕后在主节点创建共享目录
mkdir /usr/arcgisserver
mkdir /usr/arcgisserver/config-store
mkdir /usr/arcgisserver/directories
修改共享文件权限
chmod 777 /usr/arcgisserver
chown -R arcgis /usr/arcgisserver
配置共享文件目录和共享机器
vi /etc/exports
/usr/arcgisserver 172.26.156.*(rw,sync,no_root_squash)
重启服务
service nfs restart
service nfslock restart
service rpcbind restart
在共享节点查看共享内容
showmount -e 172.26.156.150
在共享节点挂载主节点的共享目录
mount -t nfs 172.26.156.150:/usr/arcgisserver /usr/arcgisserver
2.安装和配置Tomcat
安装tomcat
tar -zxvf apache-tomcat-8.5.30.tar.gz -C /opt/
mv apache-tomcat-8.5.30 tomcat8
创建私钥和证书请求
keytool -genkey -alias tomcat -keyalg RSA -validity 36500 -keystore /opt/apache-tomcat-8.5.30/tomcat.keystore -keysize 2048
输入密钥库口令:
再次输入新口令:
您的名字与姓氏是什么?
[Unknown]: tao liu
您的组织单位名称是什么?
[Unknown]: dci
您的组织名称是什么?
[Unknown]: dci
您所在的城市或区域名称是什么?
[Unknown]: guangzhou
您所在的省/市/自治区名称是什么?
[Unknown]: guangdong
该单位的双字母国家/地区代码是什么?
[Unknown]: cn
CN=tao liu, OU=dci, O=dci, L=guangzhou, ST=guangdong, C=cn是否正确?
[否]: y
输入 <tomcat> 的密钥口令
(如果和密钥库口令相同, 按回车):
Warning:
JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore /opt/apache-tomcat-8.5.30/tomcat.keystore -destkeystore /opt/apache-tomcat-8.5.30/tomcat.keystore -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。
对tomcat启用ssl
vi tomcat8/conf/server.xml
将8080端口号修改为80
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
取消端口号8443对应的connector的注释,将8443端口修改为443,并启用ssl
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="/opt/apache-tomcat-8.5.30/tomcat.keystore" keystorePass="123456" />
启动tomcat验证是否启动
3.安装和部署Web Adaptor
解压安装文件到指定路径
tar -zxvf Web_Adaptor_Java_Linux_1061_164057.tar.gz -C /opt
chown -R arcgis WebAdaptor/
以静默模式安装Web Adaptor
WebAdaptor/Setup -m silent -l Yes
看到如下信息,说明Web Adaptor安装成功
Starting installation of ArcGIS Web Adaptor (Java Platform) 10.6.1...
...ArcGIS Web Adaptor (Java Platform) 10.6.1 installation is complete.
部署Web Adaptor到tomcat下
cp /home/arcgis/webadaptor10.6.1/java/arcgis.war /opt/apache-tomcat-8.5.30/webapps/server.war
对ArcGIS for Server配置名为server的Web Adaptor
cd /home/arcgis/webadaptor10.6.1/java/tools/
./configurewebadaptor.sh -m server -w https://172.26.156.150/server/webadaptor -g https://172.26.156.150:6443 -u siteadmin -p arcgis -a true
返回 Successfully Registered.说明配置成功,即可通过webadaptor访问ArcGIS for Server
2.配置ArcgisServer集群
在主节点创建站点,更改配置目录到刚创建的共享目录
将从节点加入到主站点
添加进主节点之后,可查看相关信息