중앙 OS 6 기본 설정
11437 단어 CentOS6
환경 확인
OS 설치
설치 마법사 시작
아래에서 OS 이미지를 다운로드하여 시스템에서 부팅하도록 설정합니다.
https://www.centos.org/download/
CentOS 6.9를 선택하고 Enter 키를 누릅니다.

설치 미디어를 확인하는 메시지가 나타나면 Skip 을 선택하여 Enter 키를 누릅니다.

설치 화면이 시작되기 때문에 계속 진행합니다.

언어 선택
언어 선택에서 "japanese(일본어)"를 선택하고 다음 단계를 진행합니다.

키보드 유형 선택에서 일본어를 선택하고 계속합니다.

스토리지 유형 기본 스토리지 디바이스 를 선택하고 를 수행합니다.

호스트 이름 및 네트워크 설정
임의의 호스트 이름을 입력하고 네트워크 설정에 들어갑니다.

네트워크 설정을 위한 인터페이스를 선택하고 편집 을 누릅니다.

자동 연결을 선택합니다.

IPv4 태그를 선택하고 주소 정보를 입력합니다.DHCP의 경우 특별히 변경할 필요가 없습니다.설정 후 적용을 통해 확인한 다음 계속합니다.

시간대 설정
시간대 설정에서 아시아/도쿄를 선택하고 시스템 시계 사용 UTC 검사를 취소한 다음 계속합니다.

루트 암호 설정
임의의 루트 비밀번호를 입력하고 계속하십시오.

파티션 레이아웃 설정
사용자 정의 레이아웃 만들기를 선택하고 계속합니다.

인식되는 스토리지 디바이스가 표시되므로 [제작]을 누르십시오.

여기에 다음 구역을 만듭니다:.파티션에서 선택한 스토리지 설정이 다르므로 적절하게 변경해야 합니다.

부트 파티션 생성(/boot)

UEFI 시작 분할 영역 생성하기

LVM 볼륨 만들기

LVM 볼륨의 논리적 파티션 만들기

스왑 파티션 생성

또 교환 구역의 크기는 탑재 물리적 메모리 기량에 따라 추천치가 다르다.
다음 계산 공식을 사용하여 계산한다.
搭載メモリが2GB以下の場合:
搭載メモリ量(GB) * 2 = スワップパーティションサイズ(GB)
搭載メモリが2GB~8GBの場合:
搭載メモリ量(GB) = スワップパーティションサイズ(GB)
搭載メモリが8GB以上の場合:
最低4GB以上 = スワップパーティションサイズ(GB)
루트 파티션 생성
모든 파티션 설정이 완료되면 문제가 없는지 확인한 후 계속합니다.

조닝(Zoning) 설정이 실제로 적용되는지 묻는 메시지가 나타나면 디스크 쓰기 변경 사항을 확인하십시오.

이니시에이터 설정에서 계속합니다.

설치 유형 선택
설치 유형을 묻는 메시지가 나타나면 Minimal을 선택하고 계속합니다.

설치를 시작하기 때문에 설치가 완료될 때까지 기다려야 합니다.설치가 완료되면 재부팅이 요청되어 재부팅됩니다.
OS 설치 후 설정
OS를 설치한 후에는 SSH를 통해 액세스할 수 있습니다.
원하는 SSH 터미널을 사용하여 향후 설정을 수행합니다.
시스템 업데이트
시스템을 업데이트합니다.도입 예정인 소프트웨어의 의존 관계에 주의하세요.
# yum clean all
# yum update
# reboot
커널과 OS 버전을 올리고 싶지 않은 경우
일반적으로yum 업데이트를 하면 OS 버전으로 올라갈 수 있습니다.
개발 환경 등 버전을 높이지 않으려면 다음과 같은 설정을 통해 커널과 OS 업데이트를 배제할 수 있다.
# cp /etc/yum.conf /etc/yum.conf.original
# vi /etc/yum.conf
yum.conf# 最下行に追記
exclude=kernel* centos*
KDUMP의 무효화
# chkconfig kdump off
# reboot
SELinux 해제
# cp /etc/selinux/config /etc/selinux/config.original
# vi /etc/selinux/config
# reboot
/etc/selinux/configSELINUX=enforcing
# 上記部分を以下のように変更
SELINUX=disabled
IPv6 무효화
IPv6가 필요하지 않으면 미리 설정이 유효하지 않습니다.
# vi /etc/sysctl.conf
# sysctl -p /etc/sysctl.conf
/etc/sysctl.conf# 以下を追記
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
방화벽 정지
방화벽이 필요하지 않으면 비활성화됩니다.
# chkconfig ip6tables off
# chkconfig iptables off
# service ip6tables stop
ip6tables: チェインをポリシー ACCEPT に設定中: filter [ OK ]
ip6tables: ファイアウォールルールを消去中: [ OK ]
ip6tables: モジュールを取り外し中: [ OK ]
# service iptables stop
iptables: チェインをポリシー ACCEPT へ設定中filter [ OK ]
iptables: ファイアウォールルールを消去中: [ OK ]
iptables: モジュールを取り外し中: [ OK ]
NTP 설치
일본 내 서버의 경우
ntp.nict.jp
및 ntp.jst.mfeed.ad.jp
와 동기화해야 합니다.# yum install ntp
# rpm -qa | grep ntp
ntpdate-4.2.6p5-10.el6.centos.2.x86_64
ntp-4.2.6p5-10.el6.centos.2.x86_64
# ntpdate ntp.nict.jp
29 Sep 15:15:40 ntpdate[1469]: step time server 133.243.238.163 offset 0.997213 sec
# ntpdate ntp.nict.jp
29 Sep 15:15:43 ntpdate[1470]: adjust time server 133.243.238.163 offset 0.000208 sec
# cp /etc/ntp.conf /etc/ntp.conf.original
# vi /etc/ntp.conf
# service ntpd start
# chkconfig ntpd on
/etc/ntp.conf# コメントアウト
# server 0.centos.pool.ntp.org iburst
# server 1.centos.pool.ntp.org iburst
# server 2.centos.pool.ntp.org iburst
# server 3.centos.pool.ntp.org iburst
# 追記
server -4 ntp.nict.jp
server -4 ntp.jst.mfeed.ad.jp
외국 편
추가 모듈 설치
Minimal을 설치한 후 필요에 따라 패키지를 가져오는 것을 좋아하기 때문에 아래의 패키지를 따로 가져옵니다.
# yum install wget curl telnet tcpdump bind-utils openssh-clients man NetworkManager setuptool ntsysv system-config-network-tui system-config-firewall-tui screen
Hyper-V 통합 서비스 설치
Hyper-V 가상 시스템의 경우 통합 서비스에 미리 가입합니다.
# yum install hyperv-daemons
VMwareTools 설치
VMware 가상 시스템의 경우 VMwareTools를 미리 배치합니다.
# yum install epel-release
# yum install open-vm-tools
※ RHEL의 경우 EPEL이 불가능하므로 위 작업 전에 RPM을 가져와야 합니다.# rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Reference
이 문제에 관하여(중앙 OS 6 기본 설정), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/SkyLaptor/items/b55c305fdc247fbfa319텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)