美文网首页
bind unknow ip(cloud server)

bind unknow ip(cloud server)

作者: 钱鑫_9771 | 来源:发表于2017-07-21 15:44 被阅读0次

    With Amazon EC2 and elastic IPs, the server doesn't actually know its IP as with most any other server.

    So you need to tell your linux to allow processes to bind to the non-local address. Just add the following line into/etc/sysctl.conffile:

    # allow processes to bind to the non-local address

    # (necessary for apache/nginx in Amazon EC2)

    net.ipv4.ip_nonlocal_bind = 1

    and then reload your sysctl.conf by:

    $ sysctl -p /etc/sysctl.conf

    which will be fine on reboots

    相关文章

      网友评论

          本文标题:bind unknow ip(cloud server)

          本文链接:https://www.haomeiwen.com/subject/jxsekxtx.html