선수로 산다, 때론 좋은 코치로

[리눅스] CentOS 7 vs CentOS 6 본문

개발 관련/개발 일반

[리눅스] CentOS 7 vs CentOS 6

godsman 2016. 11. 5. 02:22

CentOS 7 vs CentOS 6


CentOS 6를 주로 사용합니다.

CentOS 7을 사용해 보려고 하는데 주변에서 많이 바뀌어서 익숙하지 않다고 합니다.

그래봐야 리눅스일텐데, 얼마나 바뀐 것일까요?

궁금한 점을 찾아 정리합니다.


CentOS 정보

https://wiki.centos.org/


https://ko.wikipedia.org/wiki/CentOS

  • 2015년 12월 기준 버전 - 7.2-1511, 커널 3.10.0-327
  • 2016년 10월 기준 버전 - 7.2-1609, 커널 
  • 레드햇 엔터프라이즈 리눅스와 호환되는 무료 버전


CentOS 6에서 달라진 점

http://signpen.kr/sp_view.php?cat=D02&fid=155&sk=LHDS

  • 파일시스템 - 기본 xfs(데비안 계열의 배포한), btrfs 파일시스템 지원
  • GRUB2 지원
  • 중요 패치 후 리부팅하지 않아도 됨.
  • Docker 지원
  • 배포판은 64bit만 지원
  • MySQL DB 제거, MariaDB로 교체
  • sendmail -> postfix가 기본 MTA
  • systemd 도입

그래서 바뀐 명령어는 무엇일까요?
당황하게 만드는 변화 중에 하나는 서비스 변경 - http://blog.box.kr/?p=669
service start/stop
service 서비스명 start    => systemctl start 서비스
service 서비스명 restart    => systemctl restart 서비스
service 서비스명 stop    => systemctl stop   서비스
service config
chkconfig 서비스명   on   => systemctl enable 서비스명
chkconfig 서비스명    off  => systemctl disable 서비스명\
service check
systemctl is-enable 서비스명
service list(chkconfig –list)
systemctl list–unit–files —type=service


설치 후 기본설정

일단 기본 설치 후, 패키지 업데이트 - $ yum update -y

이런 ifconfig 명령도 바뀌었네요 - $ ip addr

  • ifconfig를 계속 사용하려면 net-tools 설치 - $ yum install -y openssh-server net-tools

http://myblog.opendocs.co.kr/archives/17

  1. 고정아이피 설정 - vi /etc/sysconfig/network-scripts/ifcfg-eth0
  2. 호스트네임 설정 - vi /etc/sysconfig/network
  3. repository 추가
  4. selinux를 사용하지 않도록 설정
  5. ssh 접속설정
  6. NTP(Network Time Protocol) 시간동기화
  7. 문자셋 설정


CentOS 7으로 업그레이드가 가능함. 

https://www.lesstif.com/pages/viewpage.action?pageId=23757317



Comments