
# DSP Server
解压安装
#### 安装与配置
1. 创建"DSPServer"目录。
2. 解压安装包到 "DSPServer"目录中。 
   - Linux #tar -xvf Primeton_DSP_7.0_Server_Linux_64.tar -C DSPServer
     
   
   
   
   - Windows 用解压工具将 "Primeton_DSP_7.0_Server_Windows_64.zip" 解压至 "DSPServer" 目录
     
   
   
   
   

3. 将数据库驱动包复制到"DSPServer\\dspserver\\lib"目录下。
4. 在"DSPServer\\dspserver\\config\\di-startup-switch.xml"文件，确认DI Server和BFT Server开关。 
   ```
   <?xml version="1.0" encoding="UTF-8" ?>
   <bigData>
   <DI-Server enable="true"/>
   <BFT-Server enable="true"/>  //true
   <BFT-Agent enable="true"/>   //true“bft-agent-config.xml”DSP Agent
   </bigData>
   ```
   
   

5. 在"DSPServer\\dspserver\\config\\di-jmx-config.xml"文件。 
   ```
   <?xml version="1.0" encoding="UTF-8"?>
   <configuration xmlns="http://www.primeton.com/">
   <jmxconfig>
   ```
   
   | \<host\>127.0.0.1\</host\> \<rmiPort\>6300\</rmiPort\> \</jmxconfig\> \</configuration\> | //DSP //JMXDSP | ServerIP ServerDSP Agent |
   |---|---|---|
      
   
   

6. 在"DSPServer\\dspserver\\config\\bft-server-config.xml"文件。 
   ```
   (……)
   <dbconfig>
   <dbtype>Mysql</dbtype>
   //
   <driver>com.mysql.jdbc.Driver</driver>
   //
   <connectionurl>jdbc：mysql：//127.0.0.1：3306/dsp?useSSL=false</connecti onurl>    //URL
   <user>root</user>
   //
   <password>123456</password>
   //
   (……)
   <nettyconfig>
   <ip>127.0.0.1</ip>
   //DSP ServerIP
   <port>8091</port>
   //BFTnetty0~65535
   <reConnectTime>5</reConnectTime>
   </nettyconfig>
   <jmxconfig>
   <host>127.0.0.1</host>
   //DSP ServerIP
   <port>6210</port>
   //BFTjmx0~65535
   </jmxconfig>
   ```
   
   

7. 在"DSPServer\\dspserver\\config\\bft-server-jetty.xml"文件。 
   ```
   (……)
   <Set name="port">
   <SystemProperty name="jetty.http.port" default="8170" />
   //BFTjetty，0~65535
   </Set>
   (……)
   ```
   
   
 
#### 验证
1. 在"DSPServer"目录下，执行如下命令，启动DSP Server。 
   - Linux # chmod -R +x
     # nohup ./startDSPServer.sh \&
     
   
   
   
   - Windows \>startDSPServer.cmd
     启动完成后，如下图所示。
     图1启动DSP Server   
     ![](https://support.huaweicloud.com/primetonmams-dma/zh-cn_image_0000001864079336.png) 
   
   
   
   
2. 在"DSPServer\\jobagent"目录下，执行如下命令，启动代理服务jobagent。 
   - Linux #./start.sh
     
   
   
   
   - Windows \>start.bat
     启动完成后，如下图所示。
     图2启动代理服务jobagent   
     ![](https://support.huaweicloud.com/primetonmams-dma/zh-cn_image_0000001864239180.png) 
   
   
   
   
 
#### 卸载
1. 在"DSPServer"目录下，执行如下命令，停止DSP Server。 
   - Linux #./stopDSPServer.sh
     
   
   
   
   - Windows \>stopDSPServer.cmd
     
   
   
   
   
2. 在"DSPServer\\jobagent"目录下，执行如下命令，停止jobagent。 
   - Linux #./stop.sh
     
   
   
   
   - Windows \>stop.bat
     
   
   
   
   
3. 停止服务后，直接删除"DSPServer"目录来卸载。
 
