1.闪退的问题解决
1.是因为新系统中没有安装JDK,所以需要在文件夹opt->dmdbms->tool->manager中将JAVA_JDK这一行注释掉.
2.无法连接的问题
DM服务无法连接主要有两个问题:一是服务器未打开;二是防火墙未关闭;最后还有一个是:查看是否创建实例,端口是否启用。
1.查看服务器状态
查看服务器状态:service DmServiceDMSERVER status
启动服务器:service DmServiceDMSERVER start
停止服务器:service DmServiceDMSERVER stop
CentOS7系统查看服务器状态:systemctl [start] [stop] [status] DmServiceDMSERVER.service
2.查看防火墙状态
查看防火墙状态:service iptables status
停止:service iptables stop
启动:service iptables start
重启:service iptables restart
永久关闭:chkconfig iptables off
永久关闭后重启:chkconfig iptables on
CentOS默认使用firewalld防火墙
查看firewall服务状态:systemctl status firewalld
没有权限的话用:sudo systemctl status firewalld
查看firewall状态:firewall-cmd --state
开启:systemctl start firewalld
关闭:systemctl stop firewalld
重启:systemctl restart firewalld
永久关闭:systemctl disable firewalld
永久关闭后打开:systemctl enable firewalld
3.查看是否创建实例,端口是否启用
查看实例端口是否启用:netstat -nlput | grep [端口号](默认5236)
手动创建实例,进入到dm安装目录的bin文件下,
通常是在/opt/dmdbms/bin
[root@localhost bin]# ./dminit path=/opt/dmdbms/data db_name=DM01 instance_name=DM01 port_num=5237
在此查看服务状态:service DmServiceDM01 status