http://forums.fedoraforum.org/showthread.php?t=742
~/.bashrc 나 /etc/profile 파일에 다음과 같이 입력.
export http_proxy="http://프록시서버:포트"
export ftp_proxy="http://프록시서버:포트"
하고 쉘 재시작 (재접속)
혹은 wget에서만 쓸거면
/etc/wgetrc 파일 수정
# Many sites are behind firewalls that do not allow initiation of
# connections from the outside. on these sites you have to use the
# `passive' feature of FTP. If you are behind such a firewall, you
# can turn this on to make Wget use passive FTP by default.
passive_ftp = on
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://host:port/
ftp_proxy = http://host:port/
아래와 같이 여러 프록시 설정 가능.
#proxy.sh
export http_proxy=http://host.com:port/
export ftp_proxy=http://host.com:port/
export no_proxy=.domain.com
export HTTP_PROXY=http://host.com:port/
export FTP_PROXY=http://host.com:port/
#proxy.csh
setenv http_proxy http://host.com:port/
setenv ftp_proxy http://host.com:port/
setenv no_proxy .domain.com
setenv HTTP_PROXY http://host.com:port/
setenv FTP_PROXY http://host.com:port/
sh 파일 만드는 건 다음 참조
http://blog.acsystem.sk/linux/redhat-rhel-6-system-wide-proxy-settings
'UNIX > 유닉스 공통' 카테고리의 다른 글
[스크랩] 리눅스 계정 정책 (0) | 2013.10.30 |
---|---|
[스크랩] /etc/shadow 파일시스템 (각 탭별 의미) (0) | 2013.10.30 |
[스크랩] 로그 분석 더 자세히..... (로그 저장 경로, 저장 데이터, 로그별 내용) (0) | 2013.07.29 |
3. PAM (Pluggable Authentication Modules) (0) | 2013.07.18 |
사용자 보안 - PAM (0) | 2013.07.18 |