• 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

  • 相关阅读:
    查看文件的首尾行
    快捷键
    lua中奇葩用法
    lua中特殊用法
    CVPR2015一些文章整理
    hdu5371 最长回文子串变形(Manacher算法)
    SVN合并(merge)的使用
    atitit. 集合groupby 的实现(2)---自己定义linq查询--java .net php
    王立平--SQLite,SQLiteOpenHelper的简单应用
    Vim 经常使用快捷键及键盘图
  • 原文地址:https://www.cnblogs.com/boshen-hzb/p/8310340.html
Copyright © 2020-2023  润新知