ArcGIS Server 10.1 for Linux典型问题总结

来源:互联网 发布:快手网络直播怎么赚钱 编辑:程序博客网 时间:2024/06/07 01:32

1:我的ArcGIS Server10.1的manger用户忘记了,怎么获得相关信息?

回答:进入ArcGIS Server用户(操作系统),进入如下文件夹

[ags@redhat6 config-store]$ pwd/home/ags/arcgis/server/usr/config-store[ags@redhat6 config-store]$ lltotal 56-rw-------. 1 ags ags  112 Jun 16 01:16 arcgis-logsettings.json-rw-------. 1 ags ags    0 Jun 17 05:55 arcgis-logsettings.json.rlockdrwx------. 2 ags ags 4096 Jun 17 06:01 clustersdrwx------. 2 ags ags 4096 Jun 17 06:01 datadrwx------. 2 ags ags 4096 Jun 17 06:01 eventsdrwx------. 2 ags ags 4096 Jun 17 06:01 extnsdrwx------. 2 ags ags 4096 Jun 17 06:01 locksdrwx------. 3 ags ags 4096 Jun 17 06:01 machinesdrwx------. 6 ags ags 4096 Jun 17 06:01 securitydrwx------. 2 ags ags 4096 Jun 17 06:01 serverdirsdrwx------. 5 ags ags 4096 Jun 17 06:01 servicesdrwx------. 3 ags ags 4096 Jun 17 06:01 systemdrwx------. 2 ags ags 4096 Jun 17 06:01 uploads-rw-------. 1 ags ags   72 Jun 16 01:14 version.jsondrwx------. 2 ags ags 4096 Jun 17 06:01 web-adaptors[ags@redhat6 config-store]$[ags@redhat6 config-store]$ cd security/[ags@redhat6 security]$ cd super/[ags@redhat6 super]$ pwd/home/ags/arcgis/server/usr/config-store/security/super[ags@redhat6 super]$ lssuper.json  super.json.bak  super.json.rlock
从上面可以得到config-store文件夹里面有很多在manger里面设置的配置文件都是以json的格式保存的,比如cluster,machines,services等相关信息,那么我们需要知道的是manger用户,进入security/super文件夹,打开里面的super.json
[ags@redhat6 super]$ more super.json{  "username": "arcgis",  "password": "KLJcC2/WMzjgep+vQFmitg==",  "disabled": false}
从这个我可以看出我的用户名是arcgis,至于密码是经过加密的.

也可以使用以下方法来获得

[ags@redhat6 passwordreset]$ pwd/home/ags/arcgis/server/tools/passwordreset[ags@redhat6 passwordreset]$ lspasswordreset.sh[ags@redhat6 passwordreset]$ ./passwordreset.shPasswordReset   This tool resets the primary site administrator's credentials for a Site.Usage: PasswordReset [OPTION]   -p <newPassword>      Resets the password to new password   -l      Lists the name of the primary site administrator[ags@redhat6 passwordreset]$ ./passwordreset.sh -lPrimary site administrator account: arcgis
这个主要是解决,知道相关用户,可能忘记密码了,来重置密码!



2:我怎么在Linux安装的ArcGIS Server10.1注册许可

回答:

[ags@redhat6 tools]$ pwd/home/ags/arcgis/server/tools[ags@redhat6 tools]$ lltotal 28drwx------. 2 ags ags 4096 Apr 25 20:33 admin-rwx------. 1 ags ags 4519 Apr 20 17:03 authorizeSoftwaredrwx------. 2 ags ags 4096 Apr 26 12:18 passwordreset-rwx------. 1 ags ags  636 Apr 20 17:05 python-rwx------. 1 ags ags  919 Apr 20 17:05 serverinfo-rwx------. 1 ags ags 3277 Apr 26 12:18 ssltool.sh[ags@redhat6 tools]$[ags@redhat6 tools]$ ./authorizeSoftware
在这个tools文件夹里面,还有一个python环境,所以如果需要简单的GP测试,可以使用这个工具来做简单测试


3:在Linux的ArcGIS Server10.1怎么启动,停止Server服务

回答:

[ags@redhat6 server]$ lsarcpy            Geocode         PackageTemplates  TemplatesArcToolbox       geronimo        PDFL              TilingSchemesbin              GridTemplates   pedata            TimeZonesColorProfiles    help            plotters          toolscom              lib             Routing           uninstall_ArcGISServerDatabaseSupport  License         startserver.sh    usrDocumentation    locale          stopserver.sh     XmlSchemafonts            Locators        Stylesframework        NetworkAnalyst  Support
从上面可以看到两个.sh文件直接执行即可
[ags@redhat6 server]$ ./startserver.shAttempting to start ArcGIS Server...*** Notice: There are still server processes running.  Please runstopserver.sh to kill these processes and run startserver.sh again.[  OK  ]

4:Linux的ArcGIS Server10.1默认安装的配置目录在哪里存储

回答:

[ags@redhat6 directories]$ pwd/home/ags/arcgis/server/usr/directories[ags@redhat6 directories]$ lltotal 16drwx------. 3 ags ags 4096 Jun 16 01:14 arcgiscachedrwx------. 4 ags ags 4096 Jun 16 01:16 arcgisjobsdrwx------. 6 ags ags 4096 Jun 16 01:16 arcgisoutputdrwx------. 8 ags ags 4096 Jun 16 01:14 arcgissystem

5:Linux的ArcGIS Server10.1怎么获得服务发布的arcgisinput文件夹

回答:

[ags@redhat6 arcgisinput]$ pwd/home/ags/arcgis/server/usr/directories/arcgissystem/arcgisinput[ags@redhat6 arcgisinput]$ lltotal 16drwx------. 3 ags ags 4096 Jun 17 06:59 MyMapService.MapServerdrwx------. 2 ags ags 4096 Jun 16 01:16 SampleWorldCities.MapServerdrwx------. 5 ags ags 4096 Jun 16 01:15 Systemdrwx------. 4 ags ags 4096 Jun 16 01:16 Utilities
从上面可以获得有相关的四个服务,进入某一个服务,查看相关信息,就知道我的数据是否是Copy还是注册成功了
[ags@redhat6 arcgisinput]$ cd MyMapService.MapServer/[ags@redhat6 MyMapService.MapServer]$ lsextracted  MyMapService.sd[ags@redhat6 MyMapService.MapServer]$ cd extracted/[ags@redhat6 extracted]$ cd v101/[ags@redhat6 v101]$ lsarcsde_data.gdb  MyMapService.msd  MyMapService.mxd[ags@redhat6 v101]$ lltotal 13856drwx------. 2 ags ags     4096 Jun 17 06:59 arcsde_data.gdb-rw-------. 1 ags ags 13956316 Oct 23  2012 MyMapService.msd-rw-------. 1 ags ags   222208 Oct 23  2012 MyMapService.mxd

从上面可以获得,我本来是发布直连的ArcSDE数据源数据,但是最后还是看到copy到本地的.gdb,所以这个服务并没有注册.


6:Linux的ArcGISServer自动重启服务


  1. Configure ArcGIS for Server to be started with the operating system by following these instructions:
    1. Switch to root user.
    2. Copy <ArcGIS for Server installation directory>/framework/etc/scripts/arcgisserver shell script to the appropriate supported Linux distribution-based locations provided below:
      • RHEL: /etc/rc.d/init.d/
      • SUSE: /etc/init.d/
    3. Change directory to the applicable init.d folder and check the arcgisserver script to make sure that root has at least read and execute permissions.
    4. Edit the arcgisserver script as follows:
      1. Update the agshome variable to the ArcGIS for Server installation directory, for example, /home/username/arcgis/server.

      2. For RHEL only, add the line below just before # Description: ArcGIS Server Service:

        # chkconfig: 35 99 01

      3. Save the edits to the arcgisserver script.

    5. Still as root user, run the following command to automatically create the links in /etc/rc*.d with the appropriate run levels:
      • RHEL:
        $ chkconfig --add arcgisserver$ chkconfig arcgisserver on
      • SUSE:
        $ insserv arcgisserver$ chkconfig arcgisserver on
    6. End the root user session.
    7. Reboot the operating system and verify that ArcGIS for Server restarts properly.

-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
------------------------------------------------------------------------------------------------------

原创粉丝点击