zoukankan      html  css  js  c++  java
  • linux中nfs启动报rpcbind.socket failed to listen on sockets: Address family not supported by protocol

    1、systemctl start rpcbind.service

    报错:

    [root@autodeploy ~]# journalctl -xe
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit rpc-statd-notify.service has finished starting up.
    -- 
    -- The start-up result is done.
    Jan 16 00:22:10 autodeploy.cloud polkitd[19626]: Registered Authentication Agent for unix-process:13024:27009299 (system bus name :1.1126 [/usr/b
    Jan 16 00:22:10 autodeploy.cloud systemd[1]: rpcbind.socket failed to listen on sockets: Address family not supported by protocol
    Jan 16 00:22:10 autodeploy.cloud systemd[1]: Failed to listen on RPCbind Server Activation Socket.
    -- Subject: Unit rpcbind.socket has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit rpcbind.socket has failed.
    -- 
    -- The result is failed.
    Jan 16 00:22:10 autodeploy.cloud systemd[1]: Dependency failed for RPC bind service.
    -- Subject: Unit rpcbind.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit rpcbind.service has failed.
    -- 
    -- The result is dependency.
    Jan 16 00:22:10 autodeploy.cloud systemd[1]: Job rpcbind.service/start failed with result 'dependency'.
    Jan 16 00:22:10 autodeploy.cloud systemd[1]: Starting RPCbind Server Activation Socket.
    -- Subject: Unit rpcbind.socket has begun start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit rpcbind.socket has begun starting up.
    Jan 16 00:22:10 autodeploy.cloud polkitd[19626]: Unregistered Authentication Agent for unix-process:13024:27009299 (system bus name :1.1126, obje
    lines 3219-3249/3249 (END)

    2、解决:

    vim /etc/sysctl.conf

    # System default settings live in /usr/lib/sysctl.d/00-system.conf.
    # To override those settings, enter new settings here, or in an /etc/sysctl.d/<name>.conf file
    #
    # For more information, see sysctl.conf(5) and sysctl.d(5).
    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.core.netdev_max_backlog = 262144
    net.core.somaxconn = 4096
    net.ipv4.tcp_max_orphans = 327680
    net.ipv4.tcp_max_syn_backlog = 262144
    net.ipv4.tcp_timestamps = 0
    net.ipv4.tcp_synack_retries = 1
    net.ipv4.tcp_syn_retries = 1
    net.ipv4.tcp_tw_recycle = 1
    net.ipv4.tcp_tw_reuse = 1
    net.ipv4.tcp_fin_timeout = 1
    net.ipv4.tcp_keepalive_time = 120
    net.ipv4.ip_local_port_range = 32768   65000
    net.ipv4.tcp_syncookies = 1
    net.ipv4.tcp_max_syn_backlog = 8192
    net.ipv4.tcp_rmem = 4096 4096 16777216
    net.ipv4.tcp_wmem = 4096 4096 16777216
    net.ipv4.tcp_mem = 94500000 915000000 927000000
    net.ipv4.tcp_sack = 0
    fs.file-max = 1300000
    net.ipv4.ip_nonlocal_bind = 1
    kernel.softlockup_panic = 1
    kernel.panic = 30

    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1

    改成

    net.ipv6.conf.all.disable_ipv6 = 0
    net.ipv6.conf.default.disable_ipv6 = 0

    3、重启

    systemctl start rpcbind.service

    systemctl start nfs.service

  • 相关阅读:
    关于plsql表如何创建自增长列
    逻辑运算符号,赋值运算符,关系运算符
    运算符和自增自减
    其他进制的数字
    数据强转
    JS基本数据类型
    学习进度条
    第14天
    第13 天
    课堂作业05
  • 原文地址:https://www.cnblogs.com/boshen-hzb/p/8310340.html
Copyright © 2011-2022 走看看