This repository has been archived by the owner on Nov 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Setup proxy server
Zhizhen Tang edited this page Jan 14, 2020
·
1 revision
Configure proxy if your network is restricted as in china
Set apt proxy server before run the apt update command once your network is restrict
gedit /etc/apt/apt.conf
Input the following content:
acquire::http::proxy "http://proxy_server:port";
acquire::https::proxy "https://proxy_server:port";
acquire::ftp::proxy "ftp://proxy_server:port";
acquire::socks::proxy "socks://proxy_server:port";
Tips: Automate Proxy Server Settings using Bash functions as follows (add to your ~/.bashrc file):
gedit ~/.bashrc
# Set Proxy
export http_proxy='http://proxy_server:port'
export https_proxy='http://proxy_server:port'
Reload your ~/.bashrc file
source ~/.bashrc
sudo vi /etc/yum.conf
Input the following content:
proxy=http://proxy_server:port/
proxy=ftp://proxy_server:port/
sudo vi /etc/wgetrc
Input the following content:
proxy=http://proxy_server:port/
proxy=ftp://proxy_server:port/
sudo vi /etc/profile
Input the following content:
http_proxy=http://cerver:port/
ftp_proxy=http://proxy_server:port/
export http_proxy
export ftp_proxy
Reload your /etc/profile file
source /etc/profile
Powered by Open Visual Cloud media software stack.
- Setup proxy server
- Setup Kubernetes for CentOS
- Setup Kubernetes for Ubuntu
- Setup NFS environment
- Setup Kubernetes Logging
- Setup Kubernetes Monitoring