IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    CURL ERROR 7 Failed to connect to Permission denied

    admin发表于 2014-08-21 02:57:37
    love 0

    CURL ERROR 7 Failed to connect to Permission denied

    “CURL ERROR 7 Failed to connect to Permission denied” error is caused, when for any reason curl request is blocked by some firewall or similar thing.

    you will face this issue when ever the curl request is not with standard ports.

    for example if you do curl to some URL which is on port 1234, you will face this issue where as URL with port 80 will give you results easily.

    Most commonly this error has been seen on CentOS and any other OS with ‘SElinux’.

    you need to either disable or change  ‘SElinux’ to permissive

    1
    nano /etc/selinux/config

    locate following line

    1
    SELINUX=enforcing

    Change this to

    1
    SELINUX=disabled

    reboot is needed



沪ICP备19023445号-2号
友情链接