zoukankan      html  css  js  c++  java
  • ArcGIS Server启动服务报:ERROR: Unable to start Xvfb on any port in the range 6600

    http://blog.csdn.net/linghe301/article/details/10094421 今天尝试在Linux环境下安装ArcGIS Server10.2,启动服务碰到一个错误:ERROR: Unable to start Xvfb on any port in the range 6600 - 6619.   具体环境: Linux:Redhat 6.4 64Bit ArcGIS Server 10.2 因为前一段时间在群上也有人问起这个错误,当时没有太在意,今天自己安装也碰到了,特此记录一下。   首先看一下ArcGIS Server10.2的系统需求:http://resources.arcgis.com/en/help/system-requirements/10.2/index.html#/ArcGIS_for_Server/015100000072000000/ 特别注意的是,如果你的操作系统是RH6,需要安装以下组件:  
    • For RHEL 6: from Desktop group
      • X Window System package group
      • Xvfb
      关于Xvfb:主要就是通过内存计算模拟出图形界面,没有平常所见的操作界面,分为客户端和服务器。 通过这个错误,我直接在ArcGIS Server找到相关的帮助文档,如下所述:  

    DIAG010

    Check Xvfb ports

    ArcGIS Server requires Xvfb and will start it on any port in the range of 6600-6619. If this check returns a warning, ArcGIS Server will not run properly. To correct this issue, open one of the ports in the range of 6600-6619 and restart ArcGIS Server.

    翻译过来就是:    

    DIAG010

    检查 Xvfb 端口

    ArcGIS Server 需要 Xvfb,并可在 6600 至 6619 的范围内的任何端口上启动 Xvfb。如果此检查返回一则警告,ArcGIS Server 将无法正常运行。要更正此问题,请开启在 6600 至 6619 范围内的其中一个端口,然后重新启动 ArcGIS Server。

        从它给出的直面意思就是只要在任何6600-6619直接开启端口启动Xvfb即可。但是检查和操作之后,没有任何作用,仍然报相关错误。 使用Linux的find命令,查找是否有相关文件
    [html][/html] view plaincopyprint?
    1. [ags@linghe ~]$ find -name xvfb
    2. ./arcgis/server/framework/runtime/xvfb
    3. [ags@linghe ~]$ cd arcgis/server/framework/runtime/xvfb/
    4. [ags@linghe xvfb]$ ll
    5. total 24
    6. -rwx------. 1 ags ags 4458 Aug 16 19:18 init_Xvfb.sh
    7. drwx------. 2 ags ags 4096 Jun 21 02:45 RHEL
    8. drwx------. 2 ags ags 4096 Jun 21 02:45 SuSE
    9. -rw-------. 1 ags ags  133 Aug 16 19:19 xvfb_err.log
    10. -rw-------. 1 ags ags    4 Aug 16 19:19 xvfb.port
    查看xvfb_err.log也没有得到相关有用的信息。   打开Init_Xvfb.sh文件,启动Xvfb就是使用这个.sh文件,如果有问题,应该跟该文件有关系。简单浏览该文件有以下几句话值得注意(70行左右)
    [html][/html] view plaincopyprint?
    1. # fall back to our own
    2.           if [ -f /etc/SuSE-release ]; then
    3.             XVFBBIN="${XVFBHOME}/SuSE/Xvfb"
    4.           elif [ -f /etc/lsb-release ]; then
    5.             XVFBBIN="${XVFBHOME}/Ubuntu/Xvfb"
    6.           else
    7.             XVFBBIN="${XVFBHOME}/RHEL/Xvfb"
    8.           fi
    如果是SuSE操作系统,使用${XVFBHOME}/suse/Xvfb   如果是lsb-release使用${XVFBHOME}/ubuntu/Xvfb 这里面根据没有ubuntu文件夹,所以将ubuntu文件夹修改为REHL  
    [html][/html] view plaincopyprint?
    1. # fall back to our own
    2.           if [ -f /etc/SuSE-release ]; then
    3.             XVFBBIN="${XVFBHOME}/SuSE/Xvfb"
    4.           elif [ -f /etc/lsb-release ]; then
    5.             XVFBBIN="${XVFBHOME}/RHEL/Xvfb"
    6.           else
    7.             XVFBBIN="${XVFBHOME}/RHEL/Xvfb"
    8.           fi
    然后重启ArcGIS Server服务即可
    [html][/html] view plaincopyprint?
    1. login as: ags
    2. ags@192.168.100.203's password:
    3. Last login: Fri Aug 16 18:47:56 2013 from 192.168.100.111
    4. [ags@linghe ~]$ cd arcgis/server/framework/runtime/xvfb/
    5. [ags@linghe xvfb]$ ll
    6. total 20
    7. -rwx------. 1 ags ags 4460 Jun 21 02:46 init_Xvfb.sh
    8. drwx------. 2 ags ags 4096 Jun 21 02:45 RHEL
    9. drwx------. 2 ags ags 4096 Jun 21 02:45 SuSE
    10. -rw-------. 1 ags ags  157 Aug 16 18:46 xvfb_err.log
    11. [ags@linghe xvfb]$ vi init_Xvfb.sh
    12. [ags@linghe xvfb]$ cd
    13. [ags@linghe ~]$ cd arcgis/server/
    14. [ags@linghe server]$ ./startserver.sh
    15. Attempting to start ArcGIS Server...
    16. [  OK  ]
  • 相关阅读:
    51单片机学习笔记(清翔版)(23)——红外通讯
    51单片机学习笔记(清翔版)(22)——数字温度传感器DS18B20
    信号与系统1.1.4信号的分类-信号的MATLAB的表示与绘图
    信号与系统1.1.3信号的分类-能量与功率信号,因果与反因果
    信号与系统1.1.2信号的分类-周期与非周期
    信号与系统1.1.1信号的分类-确定与随机-离散与连续
    51单片机学习笔记(清翔版)(21)——ADDA数模转换
    51单片机学习笔记(清翔版)(19)——串口通信
    ecplise问题总结
    Android广播机制(转)
  • 原文地址:https://www.cnblogs.com/adodo1/p/4327560.html
Copyright © 2011-2022 走看看