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慢等问题;

  • 相关阅读:
    Emiller's Advanced Topics In Nginx Module Development
    关于使用UDP(TCP)跨局域网,NAT穿透的心得
    linux pipe
    使用Trinity拼接以及分析差异表达一个小例子
    Bowtie2的安装与使用
    使用Tophat+cufflinks分析差异表达
    RNA-seq流程需要进化啦!
    HISAT2+StringTie+Ballgown安装及使用流程
    HISAT2,StringTie,Ballgown处理转录组数据
    p值还是 FDR ?
  • 原文地址:https://www.cnblogs.com/mousean/p/6050895.html
Copyright © 2011-2022 走看看