728x90
“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
SELINUX=disabled
출처: http://www.akashif.co.uk/php/curl-error-7-failed-to-connect-to-permission-denied
728x90
'APM' 카테고리의 다른 글
아파치2의 트래픽 제어 - cband (0) | 2014.12.03 |
---|---|
connect error (2003) can't connect to mysql server on (13) (0) | 2013.06.28 |
[Linux]자바(java) + 톰켓(tomcat) 설치 (0) | 2013.05.27 |
linux 특정 폴더 제외하고 폴더 복사 (0) | 2013.04.27 |
부팅시 데몬 자동 실행 (0) | 2013.04.27 |
댓글