ArcGIS Server 10.1 for Linux典型问题总结

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

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

[ags@redhat6 config-store]$ pwd
/home/ags/arcgis/server/usr/config-store
[ags@redhat6 config-store]$ ll
total 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.rlock
drwx------. 2 ags ags 4096 Jun 17 06:01 clusters
drwx------. 2 ags ags 4096 Jun 17 06:01 data
drwx------. 2 ags ags 4096 Jun 17 06:01 events
drwx------. 2 ags ags 4096 Jun 17 06:01 extns
drwx------. 2 ags ags 4096 Jun 17 06:01 locks
drwx------. 3 ags ags 4096 Jun 17 06:01 machines
drwx------. 6 ags ags 4096 Jun 17 06:01 security
drwx------. 2 ags ags 4096 Jun 17 06:01 serverdirs
drwx------. 5 ags ags 4096 Jun 17 06:01 services
drwx------. 3 ags ags 4096 Jun 17 06:01 system
drwx------. 2 ags ags 4096 Jun 17 06:01 uploads
-rw-------. 1 ags ags   72 Jun 16 01:14 version.json
drwx------. 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]$ ls
super.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]$ ls
passwordreset.sh
[ags@redhat6 passwordreset]$ ./passwordreset.sh
PasswordReset
   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 -l
Primary site administrator account: arcgis
这个主要是解决,知道相关用户,可能忘记密码了,来重置密码!



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

回答:

[ags@redhat6 tools]$ pwd
/home/ags/arcgis/server/tools
[ags@redhat6 tools]$ ll
total 28
drwx------. 2 ags ags 4096 Apr 25 20:33 admin
-rwx------. 1 ags ags 4519 Apr 20 17:03 authorizeSoftware
drwx------. 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]$ ls
arcpy            Geocode         PackageTemplates  Templates
ArcToolbox       geronimo        PDFL              TilingSchemes
bin              GridTemplates   pedata            TimeZones
ColorProfiles    help            plotters          tools
com              lib             Routing           uninstall_ArcGISServer
DatabaseSupport  License         startserver.sh    usr
Documentation    locale          stopserver.sh     XmlSchema
fonts            Locators        Styles
framework        NetworkAnalyst  Support
从上面可以看到两个.sh文件直接执行即可
[ags@redhat6 server]$ ./startserver.sh
Attempting to start ArcGIS Server...
*** Notice: There are still server processes running.  Please run
stopserver.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]$ ll
total 16
drwx------. 3 ags ags 4096 Jun 16 01:14 arcgiscache
drwx------. 4 ags ags 4096 Jun 16 01:16 arcgisjobs
drwx------. 6 ags ags 4096 Jun 16 01:16 arcgisoutput
drwx------. 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]$ ll
total 16
drwx------. 3 ags ags 4096 Jun 17 06:59 MyMapService.MapServer
drwx------. 2 ags ags 4096 Jun 16 01:16 SampleWorldCities.MapServer
drwx------. 5 ags ags 4096 Jun 16 01:15 System
drwx------. 4 ags ags 4096 Jun 16 01:16 Utilities
从上面可以获得有相关的四个服务,进入某一个服务,查看相关信息,就知道我的数据是否是Copy还是注册成功了
[ags@redhat6 arcgisinput]$ cd MyMapService.MapServer/
[ags@redhat6 MyMapService.MapServer]$ ls
extracted  MyMapService.sd
[ags@redhat6 MyMapService.MapServer]$ cd extracted/
[ags@redhat6 extracted]$ cd v101/
[ags@redhat6 v101]$ ls
arcsde_data.gdb  MyMapService.msd  MyMapService.mxd
[ags@redhat6 v101]$ ll
total 13856
drwx------. 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.

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

你可能感兴趣的:(ArcGIS Server 10.1 for Linux典型问题总结)