Cannot assign requested address - bind(2) (Errno::EADDRNOTAVAIL)

后端 未结 5 380
囚心锁ツ
囚心锁ツ 2020-12-19 04:48

I am using rail for teambox at centos 6.3 server, actually this is just a trial and error before applying it live.

  • I\'m using 2 virtual box that running on sa
5条回答
  •  醉梦人生
    2020-12-19 05:40

    Rails 5.0.0.1 server not working without IPv6.

    You need to enable IPv6 from /etc/sysctl.conf file(IPv6 is enabled by default).

    Remove or comment these lines if you have any.

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

    Reboot the server to enable IPv6. Try:

    rails server
    

提交回复
热议问题