美文网首页Android深入
Android SDK 镜像搭建

Android SDK 镜像搭建

作者: Young91 | 来源:发表于2017-05-16 19:30 被阅读0次
  1. Git Clone OpenCAS 同步脚本
    git clone https://github.com/opencas/mirrorBackend/
  2. 修改android.py脚本(匹配国内的mirror地址)
  3. nohup执行脚本
    nohup python android.py&
  4. 安装nginx
    https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7
  5. 配置nginx(server_name,location,user)
    配置server_name
    server_name dl.google.com dl-ssl.google.com;
    配置location(对应下载目录)
    配置user(使用root用户,避免权限不足)
  6. 解除80端口限制
    firewall-cmd --zone=public --add-port=80/tcp --permanent
  7. 测试访问repository-10.xml
  8. 本地测试设置代理
  9. 设置定时任务

SDK Manager代理设置
http://stackoverflow.com/questions/10634202/android-sdk-manager-proxy-settings-in-linux

相关文章

网友评论

    本文标题:Android SDK 镜像搭建

    本文链接:https://www.haomeiwen.com/subject/lttrxxtx.html