YashanDB 知识库|虚拟机重启后 YMP 无法启动?先看看 8093 端口谁在用

【问题现象】

在虚拟机重启后,通过以下命令尝试启动 YMP 平台:

./ymp.sh start
结果报错提示 8093 端口冲突,YMP 启动失败。

【问题原因】

YMP 平台依赖的核心服务 yasom 使用 8093 端口。当虚拟机重启后,该进程未自动启动,导致 YMP 无法初始化绑定端口,因此报错。

【解决方法】

先手动启动 yasom 与 yasagent 两个核心组件:

yasboot process yasom start -c ymp
yasboot process yasagent start -c ymp
如果系统提示找不到 yasboot 命令或未识别,说明当前终端环境变量未加载。请先执行以下命令:

source yashan-migrate-platform/db/conf/ymp.bashrc
再重新执行上述启动命令即可。

【操作流程汇总】

① 进入虚拟机终端;

② 加载环境变量:

source yashan-migrate-platform/db/conf/ymp.bashrc
③ 启动所需服务:

yasboot process yasom start -c ymp
yasboot process yasagent start -c ymp
④ 最后启动 YMP:

./ymp.sh start
【建议补充】

如为生产环境,建议配置系统服务开机自启 yasom 与 yasagent;

若系统存在多个实例,请确认 -c ymp 中的配置名是否正确;

可用 netstat -tnlp | grep 8093 检查是否已有其他进程占用该端口。

posted @ 2025-05-07 20:20  数据库砖家  阅读(29)  评论(0)    收藏  举报