错误燃料php curl,无法连接到localhost端口1080:连接被拒绝

时间:2016-05-12 08:42:52

标签: git bash fuelphp

localhost@Abliter MINGW64 /c/wamp/www
$ curl get.fuelphp.com/oil | sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 1080: Connection refused

1 个答案:

答案 0 :(得分:0)

端口function checkDate($userID){ $res=mysql_query("Select YEAR (employment_date) AND MONTH(employment_date) from employee where emp_id='$userID'") or die("query error".mysql_error()); $array = mysql_fetch_array($res); $value=$array['employment_date']; echo("$value"); } 是SOCKS代理的标准端口。因此,您似乎已将系统/ curl配置为使用1080作为SOCKS代理,但您没有localhost上运行的SOCKS代理,因此出现错误消息。