DM8 DEM Dameng Enterprise Manager FOR CENTOS7安装

tomcat 版本:apache-tomcat-7.0.39.tar.gz 

java版本:java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64(系统自带)

系统版本:Centos7.6

 

修改DEM后台数据库dm.ini参数配置,

MEMORY_POOL                     = 200 
BUFFER                          = 1000 
KEEP                 =  64
SORT_BUF_SIZE        =  50
MAX_BUFFER           =  2000

在该数据库中执行以下SQL脚本dem_init.sql;

[dmdba@dm1 DAMENG]$ disql SYSDBA/sysdba

Server[LOCALHOST:5236]:mode is normal, state is open
login used time: 3.037(ms)
disql V8
SQL> 
SQL> set define off
SQL> set char_code utf8
SQL> start /dm/dmdbms/web/dem_init.sql

配置tomcat

解压到/dm目录下

[dmdba@dm1 dm]$ mv apache-tomcat-7.0.39 tomcat
[dmdba@dm1 dm]$ cd /dm/tomcat/

 配置:catalina.sh 

CATALINA_HOME=/dm/tomcat
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre
JAVA_OPTS="-server -Xms256m -Xmx1024m -XX:MaxPermSize=512m -Djava.library.path=/dm/dmdbms/bin"

[dmdba@dm1 bin]$ pwd
/dm/tomcat/bin
[dmdba@dm1 bin]$ more catalina.sh 
#!/bin/sh
CATALINA_HOME=/dm/tomcat
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre
JAVA_OPTS="-server -Xms256m -Xmx1024m -XX:MaxPermSize=512m -Djava.library.path=/dm/dmdbms/bin"
# 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.

配置/dm/tomcat/conf/server.xml

在Connector port="8080" protocol 末尾添加maxPostSize="-1"值 

 复制war包发布:

 cp /dm/dmdbms/web/dem.war /dm/tomcat/webapps/

 启动再停止tomcat

[dmdba@dm1 bin]$ pwd
/dm/tomcat/bin
[dmdba@dm1 bin]$ ./startup.sh 
Using CATALINA_BASE:   /dm/tomcat
Using CATALINA_HOME:   /dm/tomcat
Using CATALINA_TMPDIR: /dm/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre
Using CLASSPATH:       /dm/tomcat/bin/bootstrap.jar:/dm/tomcat/bin/tomcat-juli.jar
[dmdba@dm1 bin]$ ./shutdown.sh 
Using CATALINA_BASE:   /dm/tomcat
Using CATALINA_HOME:   /dm/tomcat
Using CATALINA_TMPDIR: /dm/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre
Using CLASSPATH:       /dm/tomcat/bin/bootstrap.jar:/dm/tomcat/bin/tomcat-juli.jar
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0

配置db源:

[dmdba@dm1 WEB-INF]$ pwd
/dm/tomcat/webapps/dem/WEB-INF
[dmdba@dm1 WEB-INF]$ cat db.xml 


        dm8
        127.0.0.1
        5236
        SYSDBA
        sysdba
        50
        100
        500
        60
        
        select 1
        ../sslDir/client_ssl/SYSDBA
        
        

启动tomcat

[dmdba@dm1 bin]$ ./startup.sh 
Using CATALINA_BASE:   /dm/tomcat
Using CATALINA_HOME:   /dm/tomcat
Using CATALINA_TMPDIR: /dm/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre
Using CLASSPATH:       /dm/tomcat/bin/bootstrap.jar:/dm/tomcat/bin/tomcat-juli.jar

启动日志:

[dmdba@dm1 logs]$ pwd
/dm/tomcat/logs

[dmdba@dm1 logs]$ tail -f catalina.out 
Mar 16, 2020 11:42:49 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 16, 2020 11:42:49 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 390 ms
Mar 16, 2020 11:42:49 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 16, 2020 11:42:49 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Mar 16, 2020 11:42:49 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /dm/tomcat/webapps/dem.war
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /dm/tomcat/webapps/ROOT
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /dm/tomcat/webapps/docs
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /dm/tomcat/webapps/examples
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /dm/tomcat/webapps/host-manager
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /dm/tomcat/webapps/manager
Mar 16, 2020 11:42:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 16, 2020 11:42:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 16, 2020 11:42:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9827 ms

 

登录DEM:

DM8 DEM Dameng Enterprise Manager FOR CENTOS7安装_第1张图片

 

默认账户:admin/888888

 

被管理的节点:agent安装示例

[root@dmmpp1 dmagent]# pwd
/dm/dmdbms/tool/dmagent

[root@dmmpp1 dmagent]# cat config.properties 
#[General]
#run_mode values:
#0 - assist process
#1 - assist process & monitor
#2 - assist process & monitor & deployer
run_mode=2
#id_gen_policy values:
#0: mac&ip, mac preferred
#1: ip
id_gen_policy=0
ap_port=6363
rmi_port=6364

#[DEM]
center.url=http://192.168.31.166:8080/dem
center.agent_servlet=dem/dma_agent

[root@dmmpp1 dmagent]# pwd
/dm/dmdbms/tool/dmagent

[root@dmmpp1 dmagent]# ./DMAgentService.sh install
Detected RHEL or Fedora:
 Installing the DMAgentService daemon using systemd...
 creating default service file...
Created symlink from /etc/systemd/system/multi-user.target.wants/DMAgentService.service to /usr/lib/systemd/system/DMAgentService.service.

[root@dmmpp1 dmagent]# systemctl start DMAgentService.service

 DM8 DEM Dameng Enterprise Manager FOR CENTOS7安装_第2张图片

 

 

你可能感兴趣的:(DM,数据库)