Centos7.4安装Gbase报错service cgconfig is not exist on hosts 解决办法
原创
©著作权归作者所有:来自51CTO博客作者未来音律的原创作品,请联系作者获取转载授权,否则将追究法律责任
检查以下安装包是否安装,如缺少请安装
yum list installed | grep libcgroup
yum list installed | grep libcgroup-tools
缺少则安装
yum install libcgroup
yum install libcgroup-tools
安装后设置cgroup服务开机启动
systemctl enable cgconfig.service
启动cgconfig服务
systemctl start cgconfig.service
这里如果执行报错:
Job for cgconfig.service failed because the control process exited with error code. See "systemctl status cgconfig.service" and "journalctl -xe" for details.
则使用命令查看报错原因
systemctl status cgconfig.service
如果原因如下:
Error: cannot mount cpu to /cgroup/cpu: Device or resource busy
则执行
cgclear - unload the cgroup filesystem
之后重新启动就可以了。