Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl 报错 #7

Closed
cuican008 opened this issue Feb 7, 2018 · 11 comments
Closed

curl 报错 #7

cuican008 opened this issue Feb 7, 2018 · 11 comments

Comments

@cuican008
Copy link

curl: (1) Protocol 'https not supported or disabled in libcurl

curl: (1) Protocol https not supported or disabled in libcurl

curl: (6) Could not resolve host: gzip,; Host not found

curl: (6) Could not resolve host: deflate,; Host not found

curl: (6) Could not resolve host: br'; Host not found

curl: (6) Could not resolve host: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6'; Host not found

curl: (6) Could not resolve host: Mozilla; Host not found

curl: (6) Could not resolve host: (Macintosh;; Host not found

curl: (6) Could not resolve host: Intel; Host not found

curl: (6) Could not resolve host: Mac; Host not found

curl: (6) Could not resolve host: OS; Host not found

curl: (6) Could not resolve host: X; Host not found

curl: (6) Could not resolve host: 10_11_4); Host not found

@cfrs2005
Copy link
Owner

cfrs2005 commented Feb 7, 2018

coneo/blog#19

@cuican008
Copy link
Author

curl: (1) Protocol "'https" not supported or disabled in libcurl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: pet-chain.baidu.com'
curl: (6) Could not resolve host: gzip,
curl: (6) Could not resolve host: deflate,
curl: (6) Could not resolve host: br'
curl: (6) Could not resolve host: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,zh-TW;q=0.6'
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0curl: (6) Could not resolve host: Mozilla
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: (Macintosh;
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: Intel
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: Mac
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: OS
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: X
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: 10_11_4)
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: AppleWebKit
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: (KHTML,
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0curl: (6) Could not resolve host: like
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: Gecko)
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: Chrome
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: Safari
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: application
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (6) Could not resolve host: application
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: pet-chain.baidu.com'
curl: (3) Port number ended with 'F'
curl: (6) Could not resolve host: PSTM=151#########049;
curl: (6) Could not resolve host: BIDUPSID=608D#############06136F6;
curl: (6) Could not resolve host: BDUSS=jFlM2pqeEY3SlN#############9CNG9mRG9-NkZhQUFBQUFBJCQA####################yelrocnpaY;
curl: (6) Could not resolve host: PSINO=3;
curl: (6) Could not resolve host: BCLID=14120#######6210;
curl: (6) Could not resolve host: BDSFRCVID=S78sJ##########Kome7YxVCP-QTH6aoUWSSBZNRG#############0Kub55HBogKKLgOTHUQP;
curl: (6) Could not resolve host: H_BDCLCKID_SF=t###################Hen-fqnJZ5mAqoq3nJnQphpjIhMcvhPu8jnrOLf##################_mDU5;
curl: (6) Could not resolve host: BDRCVFR**********;
curl: (6) Could not resolve host: H_PS_PSSID=*****;
curl: (6) Could not resolve host: BDORZ=
'
curl: (6) Could not resolve host: keep-alive'
2018-02-07 06:37:26 empty respone

@cuican008
Copy link
Author

我用的是win10

@cfrs2005
Copy link
Owner

cfrs2005 commented Feb 7, 2018

换个 安装包? 我不再windows下开发 或者 问下谷歌

@cuican008
Copy link
Author

感谢我更换一下linux

@cuican008
Copy link
Author

更换linux 后 提示
PHP Notice: Undefined variable: output in /root/lcg-php-master/dog.php on line 27
PHP Notice: Undefined variable: return_arr in /root/lcg-php-master/dog.php on line 27
PHP Warning: exec() has been disabled for security reasons in /root/lcg-php-master/dog.php on line 27

@cfrs2005
Copy link
Owner

cfrs2005 commented Feb 7, 2018

编辑下 你的php.ini exec 被禁用了

@cuican008
Copy link
Author

搞定了 感谢楼主 已star

@cuican008
Copy link
Author

2018-02-07 15:06:10 1855452260151483067 ä»·æ ¼: 1898.99
2018-02-07 15:06:10 1855389003872995029 ä»·æ ¼: 1899.00
2018-02-07 15:06:10 1855392096249453535 ä»·æ ¼: 1899.00
2018-02-07 15:06:10 1855392130609190208 ä»·æ ¼: 1899.00
2018-02-07 15:06:10 1857944887371528992 ä»·æ ¼: 1899.99
2018-02-07 15:06:10 1855389038232736928 ä»·æ ¼: 1900.00
2018-02-07 15:06:10 1855392302407877727 ä»·æ ¼: 1900.00
2018-02-07 15:06:10 1855392302407883102 ä»·æ ¼: 1900.00
2018-02-07 15:06:10 1855392336767617203 ä»·æ ¼: 1900.00
2018-02-07 15:06:10 1855392405487093951 ä»·æ ¼: 1900.00

@cuican008
Copy link
Author

貌似不是自动化的 要手动刷新,加个循环可好?

@cfrs2005
Copy link
Owner

cfrs2005 commented Feb 7, 2018

crontab -e
* * * * * sleep 10;php dog >> xx.log
* * * * * sleep 20;php dog >> xx.log
* * * * * sleep 30;php dog >> xx.log

@cfrs2005 cfrs2005 closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants