* Minimal 기본 설치 후 해야 할 일들 정리 (1/2)
- 출처(참조) URL
- http://lesstif.com/pages/viewpage.action?pageId=6979710
- https://www.3rabbitz.com/f01c33e7d8367da2#857542b4ddd63403# --> 여러모로 정리가 잘되어 있음. 기회 되면, 3Rabbitz 솔루션도 써보면 좋을 듯...
- http://warmz.tistory.com/836\
- http://warmz.tistory.com/832 -- 네트워크 설정
- http://www.jopenbusiness.com/mediawiki/index.php/CentOS --> Wiki 기반 깔끔한 설명들이 있음.
- http://byseob.blogspot.kr/2010/08/centos-54-설치-후-설정할것들.html --> Java, PHP, Mysql등 다양한 주제에 대한 깔끔 정리.
- http://iwithjoy.tistory.com/entry/CentOS-ssh-접속-한글깨짐-수정 --> 한글이 깨지는 다양한 경우에 대하여 정리를 해놓았음.
- http://webdir.tistory.com/103
- 설치 후 확인할 사항 (http://webdir.tistory.com/103)
- 아래의 순서대로 설치한 서버의 사양과 맞는지 확인을 한다.
[root@centos ~]# cat /etc/centos-release
CentOS release 6.5 (Final)
[root@centos ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@centos ~]# cat /etc/system-release
CentOS release 6.5 (Final)
[root@centos ~]# cat /etc/system-release-cpe
cpe:/o:centos:linux:6:GA
[root@centos ~]# cat /proc/version
Linux version 2.6.32-431.11.2.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Tue Mar 25 19:59:55 UTC 2014
[root@centos ~]# arch
x86_64
[root@centos ~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz
stepping : 13
cpu MHz : 1600.010
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts
bogomips : 3200.02
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Pentium(R) Dual CPU E2140 @ 1.60GHz
stepping : 13
cpu MHz : 1600.010
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dts
bogomips : 3200.02
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
[root@centos ~]# cat /proc/meminfo
MemTotal: 1854372 kB
MemFree: 1702472 kB
Buffers: 7748 kB
Cached: 37696 kB
SwapCached: 0 kB
Active: 23420 kB
Inactive: 33652 kB
Active(anon): 11612 kB
Inactive(anon): 280 kB
Active(file): 11808 kB
Inactive(file): 33372 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 4194296 kB
SwapFree: 4194296 kB
Dirty: 8 kB
Writeback: 0 kB
AnonPages: 11600 kB
Mapped: 6276 kB
Shmem: 292 kB
Slab: 62788 kB
SReclaimable: 9524 kB
SUnreclaim: 53264 kB
KernelStack: 816 kB
PageTables: 1448 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 5121480 kB
Committed_AS: 61812 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 84528 kB
VmallocChunk: 34359638068 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 8064 kB
DirectMap2M: 2086912 kB
[root@centos ~]#
[root@centos ~]#
[root@centos ~]#
[root@centos ~]# cat /proc/partitions
major minor #blocks name
8 0 390711384 sda
8 16 195360984 sdb
8 17 1048576 sdb1
8 18 20971520 sdb2
8 19 20971520 sdb3
8 20 1 sdb4
8 21 10485760 sdb5
8 22 10485760 sdb6
8 23 8388608 sdb7
8 24 4194304 sdb8
8 25 4194304 sdb9
8 26 114613248 sdb10
[root@centos ~]# hostname
centos.tanker
- 네트워크 설정
- http://ms9567.blog.me/60212470069 참조하여 셋팅.
- 설치시 국가와 언어를 영어로 선택하고 셋팅한 후 수정하는 방식으로 하였음.
(검색해보면, 한글을 선택하라는 사람도 있지만, 많은 웹문서들이 영문 선택이었다고 판단하였음)
12345678910[root@centos ~]# vi /etc/sysconfig/i18n#LANG="en_US.UTF-8" --> 주석 처리함#SYSFONT="latarcyrheb-sun16" --> 주석 처리함# 하단의 내용을 복사하여 붙임.LANG="ko_KR.UTF-8"SUPPORTED="en_US.iso885915:en_US:en:ko_KR.eucKR:ko_KR:ko"SYSFONT="latarcyrheb-sun16"SYSFONTACM="iso15" - Reboot or source /etc/profile or source /etc/sysconfig/i18n
세가지 명령 중 하나를 실행하여 적용한다.
12345[root@centos ~]# Reboot[root@centos ~]# source /etc/profile[root@centos ~]# source /etc/sysconfig/i18n - SecureCRT 설정 변경 후 재접속
- 한글이 보여지는지 테스트
123456[root@centos ~]# lsanaconda-ks.cfg install.log install.log.syslog 한글테스트.txt[root@centos ~]# cat 한글테스트.txt한글 입력 테스트. 잘 보여지는지 보자.한문 : 金萬洙
- 패키지 저장소 추가
(http://starkapin.tistory.com/498 , https://www.3rabbitz.com/f01c33e7d8367da2#d7a8fe69191a7f7d) - CentOS의 기본 저장소에는 (엄청나게) 낮은 버전이 관리되고 있다고 함.
- 좀 더 높은 버전을 사용하기 위해서는 직접 소스 설치를 권장하고,
- 그나마 편하게 사용하고 싶다면 "REMI" 저장소를 추천한다고 함.
- 대부분 rpm으로 설치하는 방법으로 나와있지만, 여기에서는 "yum install"로 설치한다.
- 웹사이트의 rpm 다운로드 URL이 이전 버전인 경우가 많다. 복사해서 쓰지 말고 시스템에 맞는 파일을 직접 찾아서 써야 함.
- http://repoforge.org/use/ 에서 RPM 파일을 다운로드 받아서 설치한다.
(여기서는 rpm을 이용하지 않고, 다운로드 링크를 이용하여 yum으로 설치함)
1yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm - http://fedoraproject.org/wiki/EPEL 에서 RPM 파일을 다운로드 받아서 설치한다.
1yum install http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm - http://rpms.famillecollet.com/ 에서 RPM 파일을 다운로드 받아서 설치한다.
(http://rpms.famillecollet.com/enterprise/ 6.5 폴더도 있고, 다양한 PHP 버전이 있는데, 확신이 없어서 그냥 아래 버전으로 인스톨함)
1yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm - http://wiki.centos.org/PackageManagement/Yum/Priorities 를 설정한다.
어떻게 하라는건지 알수가 없다... (여기서 막혔네... 그래도 아래 설정을 이용하면 무언가 가능한 듯... 매번 명령어에 옵션을 줘야 하는 일이 번거롭긴 하지만...)
향후 더 공부하여 추가적으로 정리하자. - 사용 방법 : yum --enablerepo=저장소이름 옵션
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647[root@centos ~]# yum check-updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.com* epel: mirror.premi.stExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.com* rpmforge: ftp.riken.jp* updates: centosd6.centos.org[root@centos ~]# yum --enablerepo=epel,rpmforge,remi check-updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.com* epel: mirror.premi.stExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.com* remi: remi.kazukioishi.net* rpmforge: ftp.riken.jp* updates: centosd6.centos.orgmysql-libs.x86_64 5.5.37-1.el6.remi remi[root@centos ~]# yum --disablerepo=epel,rpmforge,remi check-updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.comExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.com* updates: centosd6.centos.org[root@centos ~]# yum check-updateLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.com* epel: mirror.premi.stExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.com* rpmforge: ftp.riken.jp* updates: centosd6.centos.org
- 시스템 업데이트 (참조한 URL)
- 느린 YUM Public mirror를 제외(exclude) 시킴 (https://www.3rabbitz.com/f01c33e7d8367da2#e583e3012673d6fe)
123456789101112131415[root@centos ~]# vi /etc/yum/pluginconf.d/fastestmirror.conf[main]enabled=1verbose=0always_print_best_host = truesocket_timeout=3# Relative paths are relative to the cachedir (and so works for users as well# as root).hostfilepath=timedhosts.txtmaxhostfileage=10maxthreads=15#exclude=.gov, facebook#include_only=.nl,.de,.uk,.ieexclude=mirror.khlug.org, data.nicehosting.co.kr --> 느린 서버 제외 설정 - 기본 커널 업데이트
yum update kernel
yum update kernel -PAE (32Bit 시스템에서 메모리가 4GB 이상일 경우에 수행)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475[root@centos ~]# yum --enablerepo=epel,rpmforge,remi update kernelLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: ftp.daum.netExcluding mirror: data.nicehosting.co.kr* extras: ftp.daum.netExcluding mirror: data.nicehosting.co.kr* updates: ftp.daum.netbase | 3.7 kB 00:00extras | 3.4 kB 00:00updates | 3.4 kB 00:00updates/primary_db | 2.6 MB 00:00Setting up Update ProcessResolving Dependencies--> Running transaction check---> Package kernel.x86_64 0:2.6.32-431.11.2.el6 will be installed--> Processing Dependency: kernel-firmware >= 2.6.32-431.11.2.el6 for package: kernel-2.6.32-431.11.2.el6.x86_64--> Running transaction check---> Package kernel-firmware.noarch 0:2.6.32-431.el6 will be updated---> Package kernel-firmware.noarch 0:2.6.32-431.11.2.el6 will be an update--> Finished Dependency ResolutionDependencies Resolved===================================================================Package Arch Version Repository Size===================================================================Installing:kernel x86_64 2.6.32-431.11.2.el6 updates 28 MUpdating for dependencies:kernel-firmware noarch 2.6.32-431.11.2.el6 updates 13 MTransaction Summary===================================================================Install 1 Package(s)Upgrade 1 Package(s)Total download size: 41 MIs this ok [y/N]: yDownloading Packages:(1/2): kernel-2.6.32-431.11.2.el6.x86_64.rpm | 28 MB 00:03(2/2): kernel-firmware-2.6.32-431.11.2. (81%) 41% [===========- ] 0.0 B/s | 2.0 MB --:-- ETA(2/2): kernel-firmware-2.6.32-431.11.2. (89%) 65% [===================(2/2): kernel-firmware-2.6.32-431.11.2. (93%) 79% [=======================(2/2): kernel-firmware-2.6.32-431.11.2. (99%) 97% [============================(2/2): kernel-firmware-2.6.32-431.11.2.el6.noarch.rpm | 13 MB 00:01-------------------------------------------------------------------------------Total 8.1 MB/s | 41 MB 00:05Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionUpdating : kernel-firmware-2.6.32-431.11.2.el6.noarch 1/3Installing : kernel-2.6.32-431.11.2.el6.x86_64 [##### ] 2/3Installing : kernel-2.6.32-431.11.2.el6.x86_64 [###### ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [####### ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [######## ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [######### ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [########## ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [########### ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 [############ ] 2Installing : kernel-2.6.32-431.11.2.el6.x86_64 2/3Cleanup : kernel-firmware-2.6.32-431.el6.noarch 3/3Verifying : kernel-2.6.32-431.11.2.el6.x86_64 1/3Verifying : kernel-firmware-2.6.32-431.11.2.el6.noarch 2/3Verifying : kernel-firmware-2.6.32-431.el6.noarch 3/3Installed:kernel.x86_64 0:2.6.32-431.11.2.el6Dependency Updated:kernel-firmware.noarch 0:2.6.32-431.11.2.el6Complete! - CentOS Upgrade - yum clean all (이하 http://byseob.blogspot.kr/2010/08/centos-54-설치-후-설정할것들.html)
12345[root@centos ~]# yum clean allLoaded plugins: fastestmirrorCleaning repos: base extras updatesCleaning up EverythingCleaning up list of fastest mirrors - CentOS Upgrade - yum update glibc*
1234567891011121314151617[root@centos ~]# yum --enablerepo=epel,rpmforge,remi update glibc*Loaded plugins: fastestmirrorDetermining fastest mirrorsExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.comExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.comExcluding mirror: data.nicehosting.co.kr* updates: centos.mirror.cdnetworks.combase | 3.7 kB 00:00base/primary_db | 4.4 MB 00:00extras | 3.4 kB 00:00extras/primary_db | 19 kB 00:00updates | 3.4 kB 00:00updates/primary_db | 2.6 MB 00:00Setting up Update ProcessNo Packages marked for Update - CentOS Upgrade - yum yum* rpm* python*
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586[root@centos ~]# yum clean allLoaded plugins: fastestmirrorCleaning repos: base extras updatesCleaning up EverythingCleaning up list of fastest mirrors[root@centos ~]# yum --enablerepo=epel,rpmforge,remi update glibc*Loaded plugins: fastestmirrorDetermining fastest mirrorsExcluding mirror: data.nicehosting.co.kr* base: ftp.daum.netExcluding mirror: data.nicehosting.co.kr* extras: ftp.daum.net* updates: centosd6.centos.orgbase | 3.7 kB 00:00base/primary_db | 4.4 MB 00:00extras | 3.4 kB 00:00extras/primary_db | 19 kB 00:00updates | 3.4 kB 00:00updates/primary_db | 2.6 MB 00:02Setting up Update ProcessNo Packages marked for Update[root@centos ~]#[root@centos ~]# yum update yum* rpm* python*Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileExcluding mirror: data.nicehosting.co.kr* base: ftp.daum.netExcluding mirror: data.nicehosting.co.kr* extras: ftp.daum.net* updates: centosd6.centos.orgSetting up Update ProcessResolving Dependencies--> Running transaction check---> Package python.x86_64 0:2.6.6-51.el6 will be updated---> Package python.x86_64 0:2.6.6-52.el6 will be an update---> Package python-libs.x86_64 0:2.6.6-51.el6 will be updated---> Package python-libs.x86_64 0:2.6.6-52.el6 will be an update---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-14.el6 will be updated---> Package yum-plugin-fastestmirror.noarch 0:1.1.30-17.el6_5 will be an update--> Finished Dependency ResolutionDependencies Resolved==================================================================================Package Arch Version Repository Size==================================================================================Updating:python x86_64 2.6.6-52.el6 updates 74 kpython-libs x86_64 2.6.6-52.el6 updates 5.3 Myum-plugin-fastestmirror noarch 1.1.30-17.el6_5 updates 28 kTransaction Summary==================================================================================Upgrade 3 Package(s)Total download size: 5.4 MIs this ok [y/N]: yDownloading Packages:(1/3): python-2.6.6-52.el6.x86_64.rpm | 74 kB 00:00(2/3): python-libs-2.6.6-52.el6.x86_64.rpm | 5.3 MB 00:04(3/3): yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch.rpm | 28 kB 00:00----------------------------------------------------------------------------------Total 914 kB/s | 5.4 MB 00:06Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionUpdating : python-2.6.6-52.el6.x86_64 1/6Updating : python-libs-2.6.6-52.el6.x86_64 2/6Updating : yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch 3/6Cleanup : yum-plugin-fastestmirror-1.1.30-14.el6.noarch 4/6Cleanup : python-2.6.6-51.el6.x86_64 5/6Cleanup : python-libs-2.6.6-51.el6.x86_64 6/6Verifying : python-libs-2.6.6-52.el6.x86_64 1/6Verifying : yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch 2/6Verifying : python-2.6.6-52.el6.x86_64 3/6Verifying : python-libs-2.6.6-51.el6.x86_64 4/6Verifying : python-2.6.6-51.el6.x86_64 5/6Verifying : yum-plugin-fastestmirror-1.1.30-14.el6.noarch 6/6Updated:python.x86_64 0:2.6.6-52.el6python-libs.x86_64 0:2.6.6-52.el6yum-plugin-fastestmirror.noarch 0:1.1.30-17.el6_5Complete! - CentOS Upgrade - yum clean all
12345[root@centos ~]# yum clean allLoaded plugins: fastestmirrorCleaning repos: base extras updatesCleaning up EverythingCleaning up list of fastest mirrors - CentOS Upgrade - yum update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869[root@centos ~]# yum --enablerepo=epel,rpmforge,remi updateLoaded plugins: fastestmirrorDetermining fastest mirrorsExcluding mirror: data.nicehosting.co.kr* base: centos.mirror.cdnetworks.comExcluding mirror: data.nicehosting.co.kr* extras: centos.mirror.cdnetworks.com* updates: centosd6.centos.orgbase | 3.7 kB 00:00base/primary_db | 4.4 MB 00:00extras | 3.4 kB 00:00extras/primary_db | 19 kB 00:00updates | 3.4 kB 00:00updates/primary_db | 2.6 MB 00:03Setting up Update ProcessResolving Dependencies--> Running transaction check---> Package ca-certificates.noarch 0:2013.1.94-65.0.el6 will be updated----------------------- 중략 ----------------------------> Package upstart.x86_64 0:0.6.5-12.el6_4.1 will be updated---> Package upstart.x86_64 0:0.6.5-13.el6_5.3 will be an update--> Finished Dependency ResolutionDependencies Resolved==================================================================================Package Arch Version RepositorySize==================================================================================Updating:ca-certificates noarch 2013.1.95-65.1.el6_5 updates 1.1 Mcentos-release x86_64 6-5.el6.centos.11.2 updates 20 k----------------------- 중략 -------------------------selinux-policy-targeted noarch 3.7.19-231.el6_5.1 updates 2.8 Mtzdata noarch 2014b-1.el6 updates 449 kupstart x86_64 0.6.5-13.el6_5.3 updates 177 kTransaction Summary==================================================================================Upgrade 30 Package(s)Total download size: 19 MIs this ok [y/N]: yDownloading Packages:(1/30): ca-certificates-2013.1.95-65.1.el6_5.noarch.rpm | 1.1 MB 00:01----------------------- 중략 -------------------------(30/30): upstart-0.6.5-13.el6_5.3.x86_64.rpm | 177 kB 00:00----------------------------------------------------------------------------------Total 338 kB/s | 19 MB 00:57Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionUpdating : nspr-4.10.2-1.el6_5.x86_64 1/60----------------------- 중략 -------------------------Updating : tzdata-2014b-1.el6.noarch 30/60Cleanup : selinux-policy-targeted-3.7.19-231.el6.noarch 31/60----------------------- 중략 -------------------------Cleanup : kpartx-0.4.9-72.el6.x86_64 60/60Verifying : grep-2.6.3-4.el6_5.1.x86_64 1/60----------------------- 중략 -------------------------Verifying : coreutils-8.4-31.el6.x86_64 60/60Updated:ca-certificates.noarch 0:2013.1.95-65.1.el6_5----------------------- 중략 -------------------------upstart.x86_64 0:0.6.5-13.el6_5.3Complete! - CentOS Upgrade - shutdown -r now
123456[root@centos ~]# shutdown -r nowBroadcast message from root@centos.tanker(/dev/pts/2) at 12:03 ...The system is going down for reboot NOW!
- 필수 유틸리티와 manual 설치 (http://lesstif.com/pages/viewpage.action?pageId=6979710)
- 서비스용 서버로 쓸 곳이라면 보안 및 upgrade 관리 때문에 최소 패키지만 설치하는게 좋다.
- 특히 서비스 장비라면 gcc 및 X-Windows등은 설치 안하는걸 추천한다. gcc는 해킹의 위험이 있고 X-Windows는 쓸일이 없고 덩치만 커서 update가 많아지게 된다
- vim 및 network 관련 유틸 (nslookup, text browser)
1yum -y install bind-utils wget elinks vim - System Util
1yum -y install yum-utils sysstat system-config-firewall-tui - SELinux util
1yum -y install policycoreutils-python setroubleshoot setroubleshoot-server setroubleshoot-doc setroubleshoot-plugins setools-console - manual page util
1yum -y install man man-pages kernel-doc
- 불필요한 서비스 중단 (https://www.3rabbitz.com/f01c33e7d8367da2#de342ca0a641c399)
- iscsi나 FCoe와 같은 IP기반의 스토리지를 쓰지 않을 경우
1234chkconfig iscsi offchkconfig iscsid offchkconfig fcoe offchkconfig lldpad off - NFS를 사용하지 않는 경우
12345chkconfig nfslock offchkconfig rpcbind offchkconfig rpcgssd offchkconfig rpcidmapd offchkconfig netfs off - 확인
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061[root@centos ~]# chkconfig --list | grep "3:on" --> 일반적으로 이걸 사용[root@centos ~]# chkconfig --list | grep "3:활성" --> 한글이 깔려 있는 경우auditd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제blk-availability 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제crond 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제ip6tables 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제iptables 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제iscsi 0:해제 1:해제 2:해제 3:활성 4:활성 5:활성 6:해제iscsid 0:해제 1:해제 2:해제 3:활성 4:활성 5:활성 6:해제lvm2-monitor 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제mdmonitor 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제messagebus 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제netfs 0:해제 1:해제 2:해제 3:활성 4:활성 5:활성 6:해제network 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제postfix 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제rsyslog 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제sshd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제sysstat 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제udev-post 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제[root@centos ~]# chkconfig iscsi off[root@centos ~]# chkconfig iscsid off[root@centos ~]# chkconfig fcoe offfcoe 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig lldpad offlldpad 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig nfslock offnfslock 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig rpcbind offrpcbind 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig rpcgssd offrpcgssd 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig rpcidmapd offrpcidmapd 서비스의 정보를 읽는 도중 오류가 발생했습니다: 그런 파일이나 디렉터리가 없습니다[root@centos ~]# chkconfig netfs off[root@centos ~]# chkconfig --list | grep "3:활성"auditd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제blk-availability 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제crond 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제ip6tables 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제iptables 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제lvm2-monitor 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제mdmonitor 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제messagebus 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제network 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제postfix 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제rsyslog 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제sshd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제sysstat 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제udev-post 0:해제 1:활성 2:활성 3:활성 4:활성 5:활성 6:해제
- 시간 서버 설정 (https://www.3rabbitz.com/f01c33e7d8367da2#1d1960b60846b70d)
- yum install ntp
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253[root@centos bin]# yum install ntpLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: ftp.daum.net* extras: ftp.daum.net* updates: ftp.daum.netSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package ntp.x86_64 0:4.2.6p5-1.el6.centos will be installed--> Processing Dependency: ntpdate = 4.2.6p5-1.el6.centos for package: ntp-4.2.6p5-1.el6.centos.x86_64--> Running transaction check---> Package ntpdate.x86_64 0:4.2.6p5-1.el6.centos will be installed--> Finished Dependency ResolutionDependencies Resolved==========================================================================================================================================Package Arch Version Repository Size==========================================================================================================================================Installing:ntp x86_64 4.2.6p5-1.el6.centos base 592 kInstalling for dependencies:ntpdate x86_64 4.2.6p5-1.el6.centos base 75 kTransaction Summary==========================================================================================================================================Install 2 Package(s)Total download size: 667 kInstalled size: 1.7 MIs this ok [y/N]: yDownloading Packages:(1/2): ntp-4.2.6p5-1.el6.centos.x86_64.rpm | 592 kB 00:00(2/2): ntpdate-4.2.6p5-1.el6.centos.x86_64.rpm | 75 kB 00:00------------------------------------------------------------------------------------------------------------------------------------------Total 4.2 MB/s | 667 kB 00:00Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning TransactionInstalling : ntpdate-4.2.6p5-1.el6.centos.x86_64 1/2Installing : ntp-4.2.6p5-1.el6.centos.x86_64 2/2Verifying : ntp-4.2.6p5-1.el6.centos.x86_64 1/2Verifying : ntpdate-4.2.6p5-1.el6.centos.x86_64 2/2Installed:ntp.x86_64 0:4.2.6p5-1.el6.centosDependency Installed:ntpdate.x86_64 0:4.2.6p5-1.el6.centosComplete!
- vi /etc/ntp.conf
123456789# Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).# 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 kr.pool.ntp.org # 라인 추가server ntp.postech.ac.kr # 라인 추가server ntp.xbsd.kr # 라인 추가 - ntpdate kr.pool.ntp.org
12[root@centos bin]# ntpdate kr.pool.ntp.org7 Apr 21:52:04 ntpdate[4392]: step time server 211.233.78.116 offset -2.559473 sec - service ntpd start
12[root@centos bin]# service ntpd startStarting ntpd: [ OK ] - ntpd -p : 5~10분 정도 후 아래와 같이 *, +가 보이면 NTP 서버와 시간이 동기화 되는 것임
123456789101112[root@centos ~]# ntpq -p <-- 바로 실행했을때,remote refid st t when poll reach delay offset jitter==============================================================================211.233.78.116 212.26.18.43 2 u 19 64 3 1.292 -7.780 4.407ntp.postech.ac. .GPS. 1 u 17 64 3 9.514 -1.443 4.272[root@centos ~]# ntpq -p <-- 5~10분 후 실행remote refid st t when poll reach delay offset jitter==============================================================================+211.233.78.116 212.26.18.43 2 u 44 64 377 1.250 -28.582 7.679*gps-ntp.postech .GPS. 1 u 44 64 377 9.964 -28.839 12.736
'구 블로그 보관처' 카테고리의 다른 글
Linux - YUM 명령어 사용법 정리 (0) | 2020.08.03 |
---|---|
CentOS 설치 2 - Minimal 기본 설치 후 해야 할 일들 (2/2) (0) | 2020.08.01 |
CentOS 설치 1 - Minimal 설치 (0) | 2020.07.16 |
CentOS 파티션 분할 셋팅 (0) | 2020.07.16 |
CentOS 설치 도움 URL 정리 (0) | 2020.06.22 |
댓글