Linux之设置代理
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
·
服务器有时为了安全起见,是不允许全网联通,这时需要一个网络代理进行访问,最近我在部署环境时,服务器只能内网间访问,如果想使用yum,wget都不行,十分苦恼,后来运维提供了一个代理解决了该问题。这里分为两种情况讨论:
临时使用
只是临时使用一下,安装一个软件,只需这样
env http_proxy=http://172.30.1.145:3128 https_proxy=http://172.30.1.145:3128 wget or yum
永久使用
在/etc/profile最后加入
export=http_proxy=http://172.30.1.145:3128 https_proxy=http://172.30.1.145:3128
#source 生效环境变量
#source /etc/profile
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐


所有评论(0)