• 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

  • 相关阅读:
    4 Apr 18 软件开发目录 logging模块的使用 序列化(Json, Pickle) os模块
    3 Apr 18 内置函数 列表生成式与生成器表达式 模块的使用之import 模块的使用之from…import…
    2 Apr 18 三元表达式 函数递归 匿名函数 内置函数
    30 Mar 18 迭代器 生成器 面向过程的编程
    29 Mar 18 函数 有参、无参装饰器
    28 Mar 18 函数
    27 Mar 18 函数的参数
    26 Mar 18 函数介绍
    23 Mar 18 文件处理
    22 Mar 18 补充数据类型+字符编码+文件处理
  • 原文地址:https://www.cnblogs.com/boshen-hzb/p/8310340.html
Copyright © 2020-2023  润新知