GBase8s数据库安装完成后,使用命令onmo蟠校盯昂de –ky无法停止服务,提示该命令不存在bash: on罪焐芡拂mode :Command not found. .,既然整个软件安装都没有问题,怎么会报这个错误呢?
工具/原料
linux
GBase数据库
查看GBase数据库服务运行情况
1、这里我们需要使用ps命令,ps命令用于报告当前系统的进程状态。这里使用命令:ps -ef|grep oninit查看所有oninit的进程

使用onmode -ky命令
1、这里准备使用onmode -ky命令打算停止gbase的oninit服务。这里输入:onmode -ky

3、这是什么原因呢?onmode并非linux自带的命令,是gbase数据库的命令,因此即可能是因为gbase的环境变量的问题。这里我们查看.bash_profile。可以看到环境变量都是配置了的。

5、在.bash_profile文件命令中,执行命令:source .bash_profile命令,重新执行.bash_profile文档,使其生效

7、命令成功执行,并提示:Your evaluation 1 icense will expireon 2020-11 -30 00:00:00
