客户在使用达梦数据库后,发现在通过dmdba用户使用DmServiceXXX start方式启动数据库服务后,再通过root用户使用systemctl status DmServiceXXX.service查看服务状态时显示inactive。客户反应怀疑是服务状态出了问题。
dmdba用户执行./DmServiceXXX start 后用./DmServiceXXX status看是running状态,但是用root执行systemctl status DmServiceXXX.service看是inactive状态。
在 systemd 环境下,可使用 systemctl 命令进行系统服务的管理,但 systemctl 命令只能管理 systemd 环境下的系统服务。
详细用法说明如下:
所以上述现象是正常的,其他情况可咨询系统管理员。
达梦数据库的服务启停最好保持前后一致,都用DmServiceXXX start/stop的方式,或者都用systemctl start/stop DmServiceXXX.service,以免出现查询状态与实际情况不符的现象。
推荐使用dmdba用户进行启停,即:DmServiceXXX start/stop。
文章
阅读量
获赞
