公司网站做门户备案宁波网络推广方式
背景
因为国内环境限制,在 linux 上安装一些软件的时候,因为限制就安装不了, 此时就可以通过设置代理的方式来规避这种问题,下面是具体的设置方式
步骤
sudo vim /etc/profile.d/proxy.sh- 添加以下内容到文件中
export http_proxy="http://10.10.1.10:8080/"export https_proxy="http://10.10.1.10:8080/" sudo chmod +x /etc/profile.d/proxy.shsource /etc/profile.d/proxy.sh- 查看设置是否生效
env | grep -i proxy - 取消代理
unset http_proxy unset https_proxy
通过上面这种方式,即可设置代理。
