歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux上安裝ArcGIS 10.1_01安裝ArcGIS Server 10.1

Linux上安裝ArcGIS 10.1_01安裝ArcGIS Server 10.1

日期:2017/2/28 14:33:45   编辑:Linux教程
配置環境:《Linux上安裝ArcGIS 10_01安裝Linux虛擬機及yum源配置》中配置的純淨虛擬機 安裝人員: xubobo 安裝時間: 2012-12-25 安裝介質:ArcGIS_Server_Ent_Linux_101_129046.iso 1.50G 安裝賬戶: ags/ags, 隸屬於esri組。 server manager賬戶:arcgis/arcgis,已設置開機自動啟動。 ect/hosts配置:192.168.147.141 arcgisserver arcgisserver.esri.com 虛擬機版本:Red Hat Enterprise Linux 5_5 64-bit + ArcGISServer10.1.zip 1.95G 官方安裝說明:http://resources.arcgis.com/zh-CN/help/install-guides/arcgis-server-unix/10.1/ http://resources.arcgis.com/zh-cn/help/install-guides/arcgis-server-unix/10.1/index.html 備注:zh-CN改成en即為對應的英文參考文檔。http://www.linuxidc.com/Linux/2014-04/99802.htm

=====================================================

Linux上安裝ArcGIS 10安裝系列文章

Linux上安裝ArcGIS 10_01安裝Linux虛擬機及yum源配置 http://www.linuxidc.com/Linux/2014-04/99796.htm

Linux上安裝ArcGIS 10_02安裝Oracle11gR2 http://www.linuxidc.com/Linux/2014-04/99797.htm

Linux上安裝ArcGIS 10_03安裝ArcSDE 10 http://www.linuxidc.com/Linux/2014-04/99798.htm

Linux上安裝ArcGIS 10_04安裝ArcGIS Server 10 http://www.linuxidc.com/Linux/2014-04/99799.htm

Linux上安裝ArcGIS 10.1_01安裝ArcGIS Server 10.1 http://www.linuxidc.com/Linux/2014-04/99800.htm

=====================================================

第一步:驗證系統要求 1. 確保官網對ArcGIS 10.1 for Server的系統需求 注意:不再支持32位操作系統!只有操作系統為64位時,才能執行ArcGIS for Server安裝程序。 第二步:創建用戶 [root@localhost ~]# groupadd esri //創建esri組
[root@localhost ~]# useradd ags -g esri //創建ags用戶,隸屬於esri組
[root@localhost ~]# passwd ags // 設置密碼,這裡設置為ags 官方說明:出於安全方面的原因,根帳戶不可用作 ArcGIS Server 帳戶,也不可用於安裝軟件。 備注:默認會安裝在/home/ags/arcgis/server下,所以不需要授權。如果安裝在其他目錄下,需保證ags用戶對安裝目錄有相應的權限。 第三步:檢查句柄限制依賴項 備注:我的同事pj在linux6.0安裝時,CheckPackagePrerequisites.sh執行時進行不下去。pj後來發現CheckPackagePrerequisites檢查腳本裡面用lsb_release命令查詢linux操作系統內核信息,系統如果沒有安裝RedHat-lsb包的話,腳本便執行不下去。 解決方法:安裝redhat-lsb包即可。 VMware中在VM->Settings...->CD/DVD(IDE)中connection使用Use ISO image file指向安裝文件。 掛載iso鏡像,定位到安裝文件,然後執行 sh CheckPackagePrerequisites.sh,檢查是否滿足系統要求。
[root@localhost ~]# mkdir /opt/cdrom
[root@localhost ~]# mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost ~]# su - ags //注意,這裡切換到su用戶,主要保證後面對句柄的設置是對ags用戶而不是root用戶。
[ags@localhost ~]# cd /mnt/cdrom/ArcGISServer
[ags@localhost ArcGISServer]# sh CheckPackagePrerequisites.sh
This script will check the packages installed on your machine against a list of known packages required by ArcGIS 10.1 for Server.
Would you like to continue? ([y]/n)
y
OS found: RedHatEnterpriseServer
Version found: 5.5

For ArcGIS for Server to run properly, the file handle limits for the install
user are required to be set to 65535 and the number of processes limits set to
25059. The current file handle limit is 1024 and the number of processes
limit is 33024.
To set these limits, you'll need to edit the /etc/security/limits.conf
file as super user and add the following lines:

ags soft nofile 65535                          //注意,這裡是對ags用戶。
ags hard nofile 65535
ags soft nproc 25059
ags hard nproc 25059

In order for the new values to take effect, you'll need to log out and then log
back in as the ags user. To verify, run:
ulimit -Ha

For additional details, see the ArcGIS 10.1 for Server installation guide. 
上面的提示是句柄限制問題(詳細內容參考官方說明)。 按照要求,root用戶下修改/etc/security/limits.conf文件(對應命令:[root@localhost ~] vi /etc/security/limits.conf),添加以下內容: ags soft nofile 65535
ags hard nofile 65535
ags soft nproc 25059
ags hard nproc 25059 然後退出root用戶,再重新登錄,使修改生效。 重新執行CheckPackagePrerequisites,檢查依賴項,提示如下信息:
Now checking this machine for the following packages:
glibc libxml2 freetype fontconfig mesa-libGL mesa-libGLU libXtst libXext libX11 libXi libXdmcp libXau compat-libf2c-34

[Missing Packages]
compat-libf2c-34
參照《linux上安裝arcgis 10_01創建虛擬機》配置yum源,安裝缺失的package,再次運行CheckPackagePrerequisites保證所有的依賴項都已經安裝。 安裝軟件包命令:[root@localhost ~]# yum install compat-libf2c-34。 備注:如果配置本地yum源,則需要在linux安裝光盤和arcgis server安裝光盤來回切換。卸載iso鏡像的命令為: [root@localhost ~]# umount /mnt/cdom,卸載後重新掛載所需iso鏡像即可。 第四步:修改/etc/hosts 1.利用[root@localhost ~]# ifconfig 命令機器的ip地址,本機為:192.168.147.141 2. 向/etc/hosts文件中添加192.168.147.141 arcgisserver arcgisserver.esri.com 會使用arcgisserver當作機器名 編輯命令[root@localhost ~]# vi /etc/hosts 備注:建議采用官網給出的寫法,將arcgisserver放在arcgisserver.esri.com之前。 3.更改主機名: [root@localhost ~]# hostname arcgisserver,退出終端,重新打開終端就變成[root@arcgisserver ~]。 備注:至於是不是必須向hosts文件中添加上述內容,作者做了嘗試,arcgisserver是可以順利安裝,但創建站點時會有錯誤。 也嘗試了安裝完成後再向/etc/hosts中添加ip設置,也未成功。作者功力尚淺,關於這部分內容,後面弄清楚機理後會進行更新。 關於更換IP問題,後期一篇文章後進行探討,暫時發現設置NAT和Host-only模式下的IP沒問題,橋接(Bridged)模式下出錯,會提示: Failed to configure the server machine 'ARCGISSERVER'. Port assignment failed as it exceeds the upper bound set on the machine. 第五步 :安裝 ArcGIS Server
[root@arcgisserver~]# xhost + //需要執行一下,否則用戶界面出不來。
access control disabled, clients can connect from any host
[root@arcgisserver~]# su - ags //切換到ags用戶
[ags@arcgisserver~]$ cd /mnt/cdrom/ArcGISServer  //定位到安裝文件目錄
[ags@arcgisserver ArcGISServer]$ ./Setup //執行安裝

安裝過程很簡單,不許做任何修改。安裝完成後,會自動啟動服務,然後啟動在浏覽器中打開arcgis server manager。 不過5.5自帶的Firefox浏覽器不支持,需要進行升級或安裝更高級版本。

第六步:創建ArcGIS Server 站點 正確升級/安裝浏覽器後:輸入http://arcgisserver:6080/arcgis/manager/打開arcgis server manager。然後一步步創建站點,操作很簡單。 這中間會創建站點管理員的用戶和密碼(arcgis/arcgis),對於站點管理員帳號和操作系統賬戶的區分,請參考<<ArcGIS 10.1 for Server賬戶管理>>一文。 官方說明:僅 ArcGIS Server 可識別此名稱和密碼;該帳戶不是操作系統帳戶,且與您的用戶存儲中的用戶帳戶分開管理。主站點管理員具有對 ArcGIS Server 站點的無限制訪問權限。此帳戶通常用於創建 ArcGIS Server 站點,以及配置和管理安全性。請不要將主站點管理員帳戶與在 ArcGIS Server 安裝期間提供的 ArcGIS Server 帳戶相混淆。
Copyright © Linux教程網 All Rights Reserved