Page History
| Children Display |
|---|
CentOS 환경 구성환경구성
시스템 방화벽 disable
| Code Block |
|---|
# yum -y update # yum -y install net-tools # systemctl stop firewalld.service # systemctl disable firewalld # systemctl mask firewalld.service # reboot |
SELinux 해제
| Code Block |
|---|
vi /etc/sysconfig/selinux
SELINUX=enforcing 을 SELINUX=disabled 로 변경후 |
저장 reboot |
yum repository 수정
vi /etc/yum.repos.d/centos-base.repo 를 열어서 mirrorlist 대신 baseurl 을 추가
| Code Block |
|---|
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://centos.mirror.cdnetworks.com/$releasever/os/$basearch
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://centos.mirror.cdnetworks.com/$releasever/updates/$basearch
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=http://centos.mirror.cdnetworks.com/$releasever/extras/$basearch
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://centos.mirror.cdnetworks.com/$releasever/centosplus/$basearch
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#contrib - packages by Centos Users
[contrib]
name=CentOS-$releasever - Contrib
baseurl=http://centos.mirror.cdnetworks.com/$releasever/contrib/$basearch
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 |
해당 파일 수정후 yum repository clean
| Code Block |
|---|
yum clean all |
기본 개발자툴 및 kernel 설치
[root@localhost ~]| Code Block |
|---|
# yum -y install net-tools
|
# yum -y install bzip2 kernel-devel make gcc perl
|
# yum -y groupinstall "Development Tools"
|
# reboot |
Error
There are unfinished transactions remaining. You might consider running yum-complete-transaction, or “yum-complete-transaction –cleanup-only” and “yum history redo last”, first to finish them. If those don’t work you’ll have to try removing/installing packages by hand (maybe package-cleanup can help).
Resolution
Run the following commands in root;
/usr/bin/yum clean all
/usr/sbin/yum-complete-transaction
If yum-complete-transaction is not found please run (in root);
yum install yum-utilsyum 오류시 시스템 reboot