问题描述:系统默认每过30s重启一次kylin-kms-activation.service服务,服务无法正常加载就会报错,message日志里面每过30s左右就会刷新一次。文章来源:https://www.toymoban.com/news/detail-836566.html
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文章来源地址https://www.toymoban.com/news/detail-836566.html
修改完毕之后的配置文件如下
[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 观察日志刷新情况
到了这里,关于银河麒麟服务器系统kylin-kms-activation.service服务报错问题的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!