Search

'ETC'에 해당되는 글 2건

  1. 2017.12.20 [Linux]yum CentOS 지난 버전 사용하기
  2. 2016.03.24 secure 로그 설정

[Linux]yum CentOS 지난 버전 사용하기

Linux 2017.12.20 15:12 Posted by 애플자라

대략 지난 버전이 꼭 필요하다면 http://vault.centos.org를 이용하라는 소리다.

http://vault.centos.org에 가보면 지난 디렉토리들이 보이고, 디렉토리에 들어가면 다른 미러와 다르게 여러 디렉토리들이 보인다.

 

-------------------------------------------------------------------------

 

버전확인 ------>

grep . /etc/*-release
cat /etc/*-release | uniq

 

-------------------------------------------------------------------------

 

 

경로 : /etc/yum.repos.d

 

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

 


[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.5/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://vault.centos.org/5.5/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://vault.centos.org/5.5/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://vault.centos.org/5.5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5


#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://mirror.centos.org/centos/6.5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

 

-------------------------------------------------------------------------

저장하고

 

>yum clean all
>yum repolist

 

해서 제대로 동작하는지 확인한다.

 

출처 - http://nojinho.blogspot.kr/2015/06/tip-centos-iso-yum-repository.html

 

'Linux' 카테고리의 다른 글

[Linux]yum CentOS 지난 버전 사용하기  (0) 2017.12.20
[Linux]mount nfs 에러  (0) 2017.11.15
[FTP]SecureCrt X/Y/Zmodem  (0) 2017.09.18
[Linux]batch shell(tar,ftp,sftp)  (0) 2017.08.08
[SSH]접속툴(telnet/SSH/SFTP)  (0) 2017.08.03
[Linux]Samba 업데이트  (0) 2017.06.13

secure 로그 설정

Linux 2016.03.24 08:43 Posted by 애플자라

[root@hostname etc]# vi /etc/logrotate.conf

 

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

 

현재 매주 로그를 저장하며, 4주간 보관 주기(secure.1 ~ 4)

 

------------------------------------------------------------------------------------------------------

[root@hostname logrotate.d]# vi /etc/logrotate.d/syslog

 

/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}

 

위의 로그들은 적용 대상

 

 

 

 

'Linux' 카테고리의 다른 글

network IP설정확인  (0) 2016.04.26
netstat  (0) 2016.03.24
secure 로그 설정  (0) 2016.03.24
[Linux]서버중지  (0) 2015.10.19
[Linux]messages, dmesg, acpid 상태확인  (0) 2015.10.15
[Linux]리눅스 부팅시간 확인방법  (0) 2015.10.02