银河麒麟高级服务器操作系统V10SP2(X86)kylin-kms-activation.service服务报错问题

avatar
作者
猴君
阅读量:2

银河麒麟高级服务器操作系统V10SP2(X86)kylin-kms-activation.service服务报错问题

问题描述:系统默认每过30s重启一次kylin-kms-activation.service服务,服务无法正常加载就会报错,message日志里面每过30s左右就会刷新一次。

localhost systemd[1]: Stopped run kylin_kms_daemon at boot time. localhost systemd[1]: kylin-kms-activation.service: Start request repeated too quickly. localhost systemd[1]: kylin-kms-activation.service: Failed with result 'exit-code'. 

一 系统环境

1.1 服务端/客户端系统版本
[root@localhost ~]# nkvers ##############Ky1in Linux Version################# Release: Kylin Linux Advanced Server release V10 (Sword) Kernel: 4.19.90-24.4.v2101.ky10.x86_64 Build: Kylin Linux Advanced Server release V10(SP2) /(sword)-x86_64-Build09/20210524| ################################################# 

二 解决方法

2.1 修改kylin-kms-activation.service服务文件

[Unit]字段尾行添加两行参数:
StartLimitInterval=200
StartLimitBurst=1
具体参数解释为:允许最多1次重试,间隔200s

修改完毕之后的配置文件如下 [root@localhost ~]# cat  /usr/lib/systemd/system/kylin-kms-activation.service  # kylin-activation-check # # This unit run kyli_kms_daemon [Unit] Description=run kylin_kms_daemon at boot time Requires=basic.target StartLimitIntervalSec=0 StartLimitInterval=200 StartLimitBurst=1  [Service] Type=simple ExecStart=/usr/bin/kylin_kms_daemon Restart=always RestartSec=30  [Install] WantedBy=multi-user.target 
2.2 重载配置,重启服务
systemctl daemon-reload  systemctl restart kylin-kms-activation.service  
2.3 观察日志刷新情况

广告一刻

为您即时展示最新活动产品广告消息,让您随时掌握产品活动新动态!