zoukankan      html  css  js  c++  java
  • rngd.service 启动失败的处理

    [root@localhost ~]# systemctl --failed
      UNIT              LOAD   ACTIVE SUB    DESCRIPTION
    ● mdmonitor.service loaded failed failed Software RAID monitoring and management
    ● postfix.service   loaded failed failed Postfix Mail Transport Agent
    ● rngd.service      loaded failed failed Hardware RNG Entropy Gatherer Daemon
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    
    3 loaded units listed. Pass --all to see loaded but inactive units, too.
    To show all installed unit files use 'systemctl list-unit-files'.
    [root@localhost ~]# ^C
    [root@localhost ~]# systemctl status rngd
    ● rngd.service - Hardware RNG Entropy Gatherer Daemon
       Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled; vendor preset: enabled)
       Active: failed (Result: exit-code) since 四 2016-11-10 13:59:29 CST; 41min ago
     Main PID: 2116 (code=exited, status=1/FAILURE)
    
    11月 10 13:59:29 localhost.localdomain systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
    11月 10 13:59:29 localhost.localdomain systemd[1]: Starting Hardware RNG Entropy Gatherer Daemon...
    11月 10 13:59:29 localhost.localdomain rngd[2116]: Unable to open file: /dev/tpm0
    11月 10 13:59:29 localhost.localdomain rngd[2116]: can't open any entropy source
    11月 10 13:59:29 localhost.localdomain rngd[2116]: Maybe RNG device modules are not loaded
    11月 10 13:59:29 localhost.localdomain systemd[1]: rngd.service: main process exited, code=exited, status=1/FAILURE
    11月 10 13:59:29 localhost.localdomain systemd[1]: Unit rngd.service entered failed state.
    11月 10 13:59:29 localhost.localdomain systemd[1]: rngd.service failed.

    【解决:修改此服务的启动状态】

    cp /usr/lib/systemd/system/rngd.service /etc/systemd/system

    vim /etc/systemd/system/rngd.service 

    [Unit]
    Description=Hardware RNG Entropy Gatherer Daemon
    
    [Service]
    ExecStart=/sbin/rngd -f
    
    [Install]
    WantedBy=multi-user.target

      systemctl daemon-reload

     systemctl restart rngd

    --------------------------------------------------------

    【参考:】

    [彻底找到 Tomcat 启动速度慢的元凶] http://www.tuicool.com/articles/uaiURzF

    在这篇文章中,指出rndg服务是生成随机数的熵服务,配置不当可能阻塞i进程造成tomcat慢等问题;

  • 相关阅读:
    【原】从/dev/null重新打开标准输出
    Go 接口转换的一个例子
    关于软件编译安装的出错处理
    【原】GO 语言常见错误
    HP平台由于变量声明冲突导致程序退出时的core
    动态链接库加载出错:cannot restore segment prot after reloc: Permission denied
    Windows VC++常见问题汇总
    .net:System.Web.Mail vs System.Net.Mail应该用哪个
    网络管理的功能
    Hello World! — 用 Groovy 编写的 Java 程序
  • 原文地址:https://www.cnblogs.com/mousean/p/6050895.html
Copyright © 2011-2022 走看看