天天看點

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

目錄

1、安裝前準備

1.1、确定ip,機器名、域名、映射關系

1.2、防火牆關閉或開特定端口

1.3、用到的軟體或安裝包

1.4、關閉IIS

2、安裝軟體

2.1、解壓

2.1.1、安裝Server

2.1.2、建立Server站點

2.2.1、安裝DataStore

2.2.2、配置DataStore使其注冊到Server

2.3.1、安裝Portal

2.3.2、建立Portal站點

2.2、安裝JDK(要求8以上)

2.3、配置JAVA環境變量

2.4、Tomcat設定

2.4.1、生成證書

2.5、配置webadaptor

2.5.1、給server配置webadaptor

2.5.2、給Portal配置webadaptor

2.6、配置server和portal聯合托管

1、安裝前準備

1.1、确定ip,機器名、域名、映射關系

ip:172.xx.xx.xx     機器名:hpgeo     域名:geoscene.cn  映射關系:選擇1:在C:\Windows\System32\drivers\etc\hosts中添加  選擇2:設定dns

1.2、防火牆關閉或開特定端口

本例中選擇關閉防火牆,需要開啟的端口:80、443、6080、6443、7080、7443、2443、6006、5701-5703、7120、7654、9876、29085-29090、4369、29079、29080、29081、9220、9320

1.3、用到的軟體或安裝包

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

以及jdk(8以上)、tomcat

注:Geoscene Enterprise2.0  Windows版目前的webadaptor是Java版本

1.4、關閉IIS

如果已經安裝了IIS,則需要到系統服務中,停止框選中的服務,并且禁止開機自啟動,如電腦中沒有IIS,則可以忽略此步驟

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2、安裝軟體

2.1、解壓

輕按兩下運作exe,預設會将檔案抽取到C:\Users\<目前登陸使用者>\Documents\中,解壓後的檔案如圖所示

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.1.1、安裝Server

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

安裝完成後,進入授權頁面授權

2.1.2、建立Server站點

通過浏覽器打開位址   https://localhost:6443/geoscene/manager

2.2.1、安裝DataStore

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.2.2、配置DataStore使其注冊到Server

打開網頁https://localhost:2443/geoscene/datastore

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.3.1、安裝Portal

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.3.2、建立Portal站點

安裝完成後,會自動跳轉到https://localhost:7443/geoscene/home

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

這裡的類型一定得是Creator

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.4.1、抽取WebAdaptor

輕按兩下webadaptor的exe,将檔案抽取到如圖所示位置

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

抽取完就是這個亞子,webadaptor就搞定了,不用安裝

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.2、安裝JDK(要求8以上)

安裝jdk網上有很多,可以自行找尋,最好使用安裝版

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.3、配置JAVA環境變量

 1、右擊【我的電腦】---【屬性】-----【進階】---【環境變量】,如圖:

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2、選擇【建立系統變量】--彈出“建立系統變量”對話框,在“變量名”文本框輸入“JAVA_HOME”,在“變量值”文本框輸入JDK的安裝路徑,單擊“确定”按鈕,如圖:

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

3、在“系統變量”選項區域中檢視PATH變量,如果不存在,則建立變量 PATH,否則選中該變量,單擊“編輯”按鈕,在“變量值”文本框的起始位置添加“%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;”或者是直接“%JAVA_HOME%\bin;”,單擊确定按鈕,如圖:

注:有的環境會禁止直接編輯環境變量,則可以使用編輯文本的方式進行編輯

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

  4、在“系統變量”選項區域中檢視CLASSPATH 變量,如果不存在,則建立變量CLASSPATH,否則選中該變量,單擊“編輯”按鈕,在“變量值”文本框的起始位置添加“.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;”。如圖:

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

5、現在測試環境變量的配置成功與否。在DOS指令行視窗輸入“JAVAC”,輸出幫助資訊即為配置正确。如圖:

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.4、Tomcat設定

本文中用的是免安裝版,可以自行使用安裝版,提供的功能是相同的

tomcat放在此路徑下

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.4.1、生成證書

注意:不論是tomcat,還是iis,預設生成的自簽名證書,都不能讓較新版本的Chrome浏覽器識别為安全的,是以後期在使用過程中,例如釋出三維服務,列印服務、gp服務運作,都存在一定機率會失敗,如果有條件,建議在部署完成後,按照

本文中的方式生成并更換證書  ,會給後面的使用帶來諸多便利。希望在這個位置理性看待這個操作。

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

生成的檔案在

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

拷貝到此目錄下

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

設定此路徑下的server.xml檔案

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

核心思想:開啟80端口,443端口,并給443端口設定證書,如果是小白,可以将下面的檔案直接使用,為保險,可以先将tomcat中預設的server.xml備份一下,然後修改其中的證書路徑和密碼即可

注:這個檔案隻開啟了端口,設定了證書,多餘的設定,如允許跨域,并沒有設定,未來在服務調用中可能會遇到跨域的問題,請修改tomcat的相關設定

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
 
  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <GlobalNamingResources>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
  </GlobalNamingResources>
 
  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container",
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
 
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>
    -->
 
 
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
    -->
    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
    -->
    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
         This connector uses the NIO implementation. The default
         SSLImplementation will depend on the presence of the APR/native
         library and the useOpenSSL attribute of the
         AprLifecycleListener.
         Either JSSE or OpenSSL style configuration may be used regardless of
         the SSLImplementation selected. JSSE style configuration is used below.
    -->
    
    <Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
               maxThreads="150" SSLEnabled="true">
        <SSLHostConfig>
            <Certificate certificateKeystoreFile="bin/.keystore"
                         certificateKeystoreType="PKCS12"
                          certificateKeystorePassword="123456" />
        </SSLHostConfig>
    </Connector>
    
    <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
         This connector uses the APR/native implementation which always uses
         OpenSSL for TLS.
         Either JSSE or OpenSSL style configuration may be used. OpenSSL style
         configuration is used below.
    -->
    <!--
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
               maxThreads="150" SSLEnabled="true" >
        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
        <SSLHostConfig>
            <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
                         certificateFile="conf/localhost-rsa-cert.pem"
                         certificateChainFile="conf/localhost-rsa-chain.pem"
                         type="RSA" />
        </SSLHostConfig>
    </Connector>
    -->
 
    <!-- Define an AJP 1.3 Connector on port 8009 -->
 <!--   <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> -->
 
 
    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->
 
    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
    -->
    <Engine name="Catalina" defaultHost="localhost">
 
      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->
 
      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>
 
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
 
        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->
 
        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
 
      </Host>
    </Engine>
  </Service>
</Server>
           

修改完成後儲存一下,然後啟動tomcat

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

然後用浏覽器通路https://localhost,出現如下界面,證明tomcat配置沒有問題

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.5、配置webadaptor

将前面的webadaptor的exe程式抽取出來的war包,複制一個,改一個名稱,并且将這兩個war包,拷貝到tomcat的webapps目錄下

注意:在Geoscene Enterprise2.0版本中,強烈建議給Portal配置的webadaptor名稱叫geoscene,不要更改别的名稱,給Server用的可以修改名稱,且需要給Server和Portal各配置一個webadaptor

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

拷貝過來後,會自動解壓,生成對應名稱的檔案

2.5.1、給server配置webadaptor

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

填寫方式如圖所示,不需要填寫端口号

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.5.2、給Portal配置webadaptor

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體

2.6、配置server和portal聯合托管

Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體
Geoscene Enterprise2.0安裝步驟——以Win10 Pro為例1、安裝前準備2、安裝軟體