开发者社区> 问答> 正文

elastic IP 重新綁定後無法連接

我有一个弹性IP:1.1.1.1 一个域名:abc.com.cn 两个伺服器服务器A(1.1.1.1),服务器B(2.2.2.2)

原本1.1.1.1绑定到A,abc.com.cn可以成功在浏览器上显示 之后绑到B(此时B IP为1.1.1.1,A已终止)。当尝试浏览abc.com.cn时则无法显示和会被引导至2.2.2.2(但此时2.2.2.2已被释放了 )

展开
收起
游客g7tqnnyi6due4 2020-09-22 16:04:00 489 0
1 条回答
写回答
取消 提交回答
  • ①编辑$ES_HOEM/config/elasticsearch.yml,修改network.host:为绑定ip。然后重启,报错如下

    ②[x]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]

    vim /etc/security/limits.conf

    • soft nproc 65536

    • hard nproc 65536

    • soft nofile 65536

    • hard nofile 65536

    ③[x]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

    vim /etc/sysctl.conf

         vm.max_map_count=262144
    

    保存退出,sysctl -p 不重启使配置生效

    ④[x]: max number of threads [1024] for user [test] is too low, increase to at least [4096]

    vim /etc/security/limits.d/90-nproc.conf

    1024 改为4096或者unlimited

    ⑤[x]: system call filters failed to install; check the logs and fix your configuration or disable system call filters at your own risk

    vim elasticsearch.yml

    bootstrap.memory_lock: false

    bootstrap.system_call_filter: false

    ⑥重启使配置生效

    reboot & restart elasticsearch

    2021-02-20 15:45:40
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载