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"值 

<Connector port="8080" protocol="HTTP/1.1"... 追加属性字段  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 
<?xml version="1.0" encoding="UTF-8"?>
<ConnectPool>
        <Dbtype>dm8</Dbtype>
        <Server>127.0.0.1</Server>
        <Port>5236</Port>
        <User>SYSDBA</User>
        <Password>sysdba</Password>
        <InitPoolSize>50</InitPoolSize>
        <CorePoolSize>100</CorePoolSize>
        <MaxPoolSize>500</MaxPoolSize>
        <KeepAliveTime>60</KeepAliveTime>
        <DbDriver></DbDriver>
        <DbTestStatement>select 1</DbTestStatement>
        <SSLDir>../sslDir/client_ssl/SYSDBA</SSLDir>
        <SSLPassword></SSLPassword>
        <!-- <Url>jdbc:dm://localhost:5236</Url> -->
</ConnectPool>

启动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:

 

默认账户: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

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值