'centos'에 해당되는 글 2건

  1. 2012.11.23 CentOS sudoer list 등록
  2. 2012.11.07 CentOS yum 사용시 에러

redhat 계열은 ubuntu 계열과 달리 초기에 sudo 를 사용할수 있게 셋팅되어 있지 않음

해서 sudoer list에 add 를 해줘야 sudo를 쓸수 있음

등록:

[mirandam@charon ~]$ su
Password:    <--- Enter root password

[root@charon mirandam]# chmod +w /etc/sudoers
[root@charon mirandam]# echo 'mirandam ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
[root@charon mirandam]# chmod -w /etc/sudoers
[root@charon mirandam]# exit


출처: http://www.mjmwired.net/resources/mjm-fedora-fc6.html#sudo

Posted by 미야프
,

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again


이와 같은 에러가 날경우 프록시 서버를 사용하고 있다면


/ect/yum.conf

에 proxy 세팅을 해준다 


(http이후는 사용할 프록시 서버 주소: 포트)

(proxy_username=프록시 유저명, proxy_password=프록시 유저 비밀번호)

게뱔 사용자용 세팅은

# The Web proxy server used by this account
http_proxy="http://mycache.mydomain.com:3128"
export http_proxy


글로벌 사용자용 세팅은

# The proxy server - proxy server:port number
proxy=http://mycache.mydomain.com:3128
# The account details for yum connections
proxy_username=yum-user
proxy_password=qwerty
출처: http://www.centos.org/docs/5/html/yum/sn-yum-proxy-server.html

Posted by 미야프
,