获取Android源码
我试图使用 repo 和 git 获取 android 的源代码。每次我进行存储库同步时,终端都会指示它正在获取项目,但它会在该特定行冻结几个小时。我猜测我的网络位于防火墙后面。我应该打开哪个端口?或者我应该做什么?
I trying to get the source of android using repo and git. Everytime I do a repo sync, the terminal indicates that it is fetching projects but it will freeze at that particular line for hours. I am guessing that my network is behind a firewall. Which port should I open? or What should I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Repo 是一个用于管理 git 存储库的工具,而 git 服务器侦听端口 9418 (TCP),因此您需要设置防火墙以允许对该端口上的目标进行适当的访问。
这是公司网络/防火墙吗?如果它是家庭网络,那么这可能不是问题,因为默认情况下有这样的规则来阻止似乎有点严格。可能是代理问题?
Repo is a tool build to manage git repositories, and git servers listen on port 9418 (TCP) so you would need to set up your firewall to allow appropriate access to destinations on that port.
Is this a corporate network/firewall? If it's a home network then that might not be the problem, since having such a rule to block that by default seems a little strict. Might it be a proxy problem?