'curl http://github.com'的预期输出是什么? [英] What is the expected output of 'curl http://github.com'?

查看:200
本文介绍了'curl http://github.com'的预期输出是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了Homebrew和运行酿造医生。看起来一切正常,但我得到似乎是一个非常常见的消息:

I recently installed Homebrew and ran brew doctor. It looks like everything is OK, but I get what appears to be a very common message:

Warning: You have a curlrc flie
If you have trouble downloading packages with Homebrew, then maybe this is the problem? If the following command doesn't work, then try removing your curlrc: 
curl http://github.com

当我运行时,没有任何反应:

When I run it nothing happens:

me at my-computer-name in ~
    $ curl http://github.com
me at my-computer-name in ~

如何删除我的curlrc文件,以及有什么影响?

How do I remove my curlrc file, and what are the effects?

推荐答案

.curlrc文件包含默认命令行参数(即,它们包含在您的命令中,而不必重新键入它们) - 因此它通常用于保存代理信息等。它只是纯文本。

The .curlrc file contains default command-line arguments (ie, they're included in your command without having to re type them) - so it's typically used to hold proxy information, etc. it's just plain text.

可能在您的主目录中,和/或$ CURL_HOME。注意它是.curlrc,而不是curlrc,所以你需要使用'ls -a'来查看它。然后它可以像任何其他文件一样修改/重命名/删除。

It's probably in your home directory, and/or $CURL_HOME . Note that it's .curlrc , not curlrc , so you'll need to use 'ls -a' to see it. Then it can be modified/renamed/deleted like any other file.

无法说明删除它的效果 - 取决于它的内容,但看起来像不能比你现在得到的没有什么更糟。即使如此,为了安全起见,请尝试重命名它,而不是先删除它。

Can't say what the effects are of removing it - depends what's in it, but looks like it can't be worse than the nothing you're getting at the moment. Even so, to be safe, try renaming it rather than deleting it first.

这篇关于'curl http://github.com'的预期输出是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆