Published 12月 24, 2013 by Kevin

Ubuntu使用者環境變數的Proxy設定

Ubuntu使用者環境變數的Proxy設定

使用者環境變數的Proxy設定,在home目錄下,編輯.profile,加入以下設定.

#Export proxy
export http_proxy=http://proxy-ip:proxy-port
export https_proxy=http://proxy-ip:proxy-port       
export ftp_proxy=http://proxy-ip:proxy-port

如果是windows網域的認證

#Export proxy
export http_proxy=http://domain\\username:password@proxy-ip:proxy-port
export https_proxy=http://domain\\username:password@proxy-ip:proxy-port     
export ftp_proxy=http://domain\\username:password@proxy-ip:proxy-port       

重新載入.profile.

ubuntu:~$. ~/.profile
      edit