zoukankan      html  css  js  c++  java
  • ubuntu下 apt emacs git设置代理

    1,apt
    创建:/etc/apt/apt.conf.d/proxy.conf
    内容:

    Acquire::http::Proxy "http://username:password@ip地址或网址:8080/";
    Acquire::https::Proxy "http://username:password@ip地址或网址:8080/";
    

    2,emacs

    (setq url-proxy-services
       '(("http" . "ip地址或网址:8080")
         ("https" . "ip地址或网址:8080")
         ))
    
    (setq package-archives '(("gnu"   . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")
                             ("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")))
    (package-initialize)
    

    3,git
    在用户的根目录,创建:.gitconfig
    内容:

    [http]
    	proxy = http://username:passwordl@ip地址或端口:8080
    
  • 相关阅读:
    CF1515G
    杂题
    ARC120E
    CF1528F
    ICPC2021银川C
    gym102129F
    杂记6.15
    杂记5.12
    杂记4.1
    杂记3.17
  • 原文地址:https://www.cnblogs.com/xiaoshiwang/p/13457842.html
Copyright © 2011-2022 走看看