注册

1个服务器上多实例,新创建实例启动失败

董小姐 2023/10/19 723 3 已解决

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:

--初始化数据库
[dmdba@top130:~]$ mkdir -p dmdatanew
[dmdba@top130:~]$ dminit path=/home/dmdba/dmdatanew db_name=pijiake 
initdb V8
db version: 0x7000c
file dm.key not found, use default license!
License will expire on 2024-04-17
Normal of FAST
Normal of DEFAULT
Normal of RECYCLE
Normal of KEEP
Normal of ROLL

 log file path: /home/dmdba/dmdatanew/pijiake/pijiake01.log


 log file path: /home/dmdba/dmdatanew/pijiake/pijiake02.log

write to dir [/home/dmdba/dmdatanew/pijiake].
create dm database success. 2023-10-19 02:38:28

--端口已更改成5237
[dmdba@top130:/dm]$ cat /home/dmdba/dmdatanew/pijiake/dm.ini |grep PORT_NUM
		PORT_NUM                        = 5237                  #Port number on which the database server will listen
		DCRS_PORT_NUM                   = 6236                  #Port number on which the database dcrs will listen
		AP_PORT_NUM                     = 0                     #Port number on which the database ap will listen

--创建服务
 /dm/script/root/dm_service_installer.sh -t dmserver -dm_ini /home/dmdba/dmdatanew/pijiake/dm.ini -p pijiake


--启动失败
[root@top130:/dm/bin]$ systemctl status DmServicepijiake
● DmServicepijiake.service - DM Instance Service(DmServicepijiake).
   Loaded: loaded (/usr/lib/systemd/system/DmServicepijiake.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2023-10-19 03:06:23 EDT; 10min ago
  Process: 15995 ExecStart=/dm/bin/DmServicepijiake start (code=exited, status=1/FAILURE)

Oct 19 03:06:08 top130 systemd[1]: Starting DM Instance Service(DmServicepijiake)....
Oct 19 03:06:23 top130 DmServicepijiake[15995]: [42B blob data]
Oct 19 03:06:23 top130 systemd[1]: DmServicepijiake.service: control process exited, code=exited status=1
Oct 19 03:06:23 top130 systemd[1]: Failed to start DM Instance Service(DmServicepijiake)..
Oct 19 03:06:23 top130 systemd[1]: Unit DmServicepijiake.service entered failed state.
Oct 19 03:06:23 top130 systemd[1]: DmServicepijiake.service failed.

[root@top130:/dm/bin]$ ./DmServiceDAMENG start
Starting DmServiceDAMENG: /etc/profile:行78: export JAVA_HOME=/opt/tanshuang/jdk/jdk-8u112-linux-x64/: 没有那个文件或目录
/etc/profile:行79: export PATH=/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin: 没有那个文件或目录
/etc/profile:行80: export CLASSPATH=.:/lib/dt.jar:/lib/tools.jar: 没有那个文件或目录
                                                           [ OK ]
[root@top130:/dm/bin]$ ./DmServicepijiake start
Starting DmServicepijiake: /etc/profile:行78: export JAVA_HOME=/opt/tanshuang/jdk/jdk-8u112-linux-x64/: 没有那个文件或目录
/etc/profile:行79: export PATH=/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin: 没有那个文件或目录
/etc/profile:行80: export CLASSPATH=.:/lib/dt.jar:/lib/tools.jar: 没有那个文件或目录
                                                           [ FAILED ]

回答 0
暂无回答
扫一扫
联系客服