1. 로그인 세션 동안만 유지되는 방법
# 프록시 서버 설정
$ export http_proxy=http://www.yourproxyserver.com:port
$ export https_proxy=http://www.yourproxyserver.com:port
#프록시서버 해제
$ unset http_proxy
$ unset https_proxy
2. 로그인 세션이 종료된 후에도 프록시를 유지시키는 방법
# 여기서는 .bashrc에 작업했지만 .profile, .bash_profile, .bashrc_profile 어디에 설정해도 동일합니다.
$ vi ~/.bashrc
#아래내용 추가
export http_proxy=http://www.yourproxyserver.com:port
export https_proxy=http://www.yourproxyserver.com:port
# 저장후
$source ~/.bashrc
$ wget www.daum.net
#혹은
$ curl -0 www.daum.net
출처 https://krespo.net/188
프록시 서버 설정
[ 서버 & DB 관련 ]리눅스카테고리의 다른글
crontab 셋팅 도와주는 사이트 (0) | 2019.11.29 |
---|---|
특정 포트 사용 프로세스 확인 + 프로세스 종료 (0) | 2019.09.09 |
yum, rpm 으로 패키지 설치 시 참조 (0) | 2019.08.06 |
gitlab 설치하기 (링크) (0) | 2019.07.24 |
(CentOS) PHP Oracle 연결을 위한 OCI8모듈 설치 (0) | 2019.07.23 |