"CentOS 7"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
 
(같은 사용자의 중간 판 13개는 보이지 않습니다)
1번째 줄: 1번째 줄:
 
CentOS 7을 정리 합니다.
 
CentOS 7을 정리 합니다.
  
*홈페이지 : http://www.centos.org/
+
*홈페이지 : [http://www.centos.org/ http://www.centos.org/]
*다운로드 :  
+
*다운로드 :
*라이선스 : Free
+
*라이선스 : Free
*플랫폼 :  
+
*플랫폼  :
  
 
== CentOS 7 초기 설정 ==
 
== CentOS 7 초기 설정 ==
  
*네트워크 관련 도구 설치
+
{| cellspacing="1" cellpadding="1" style="width: 100%;"
 
+
|-
yum install net-tools
+
| style="background-color: rgb(241, 241, 241);" | yum install net-tools &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#--- 네트워크 관련 도구 설치<br/>yum install wget<br/>
 
+
|}
  
 +
  
=== CentOS 7 IP 설정 ===
+
Timezone 설정 (CentOS 7, Ubuntu)
 +
<pre>mv /etc/localtime /etc/localtime_org
 +
ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime</pre>
 +
<br/>Local 설정 (CentOS 7, Ubuntu)
 +
<pre>localectl
 +
localectl set-locale LANG=ko_KR.UTF-8</pre>
 +
<br/>EPEL 설치
 +
<pre>yum -y install epel-release
 +
# yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
 +
yum repolist
 +
</pre>
 +
== CentOS 7 IP 설정 ==
 
<ul style="line-height: 20.7999992370605px;">
 
<ul style="line-height: 20.7999992370605px;">
 
<li>cd /etc/sysconfig/network-scripts/</li>
 
<li>cd /etc/sysconfig/network-scripts/</li>
78번째 줄: 90번째 줄:
 
:*[http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php]
 
:*[http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php]
  
==방화벽 설정==
+
== 방화벽 설정 ==
 +
 
 
*firewall 설치
 
*firewall 설치
 +
 
:*start, stop, enable, disable
 
:*start, stop, enable, disable
 +
 
  yum install firewalld firewall-config
 
  yum install firewalld firewall-config
 
   
 
   
87번째 줄: 102번째 줄:
  
 
*설정 파일
 
*설정 파일
:*vi /etc/firewalld/zones/public.xml : Default Zone인 public의 설정 파일
+
 
 +
:*vi /etc/firewalld/zones/public.xml&nbsp;: Default Zone인 public의 설정 파일
 
:*/usr/lib/firewalld/services/~.xml
 
:*/usr/lib/firewalld/services/~.xml
  
 
*방화벽 설정
 
*방화벽 설정
 +
 
  firewall-cmd --help
 
  firewall-cmd --help
 
  firewall-cmd --state
 
  firewall-cmd --state
112번째 줄: 129번째 줄:
  
 
*참고 문헌
 
*참고 문헌
:*http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php
 
  
==참고 문헌==
+
:*[http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php http://www.oracle-base.com/articles/linux/linux-firewall-firewalld.php]
*[[CentOS]]
+
 
 +
== chrony 구성 ==
 +
 
 +
[[Chrony]]
 +
 
 +
== S/W 설치 ==
 +
 
 +
=== ipTime WiFi 드라이버 설치 ===
 +
 
 +
#--- ipTIME A1000UA-mini Wifi USB 드라이브
 +
#---    MT7610U chipset driver by MediaTek
 +
#---    https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes
 +
#---    http://iptime.com/iptime/?pageid=1&page_id=126&mod=list&keyword=A1000
 +
#---    https://www.raspberrypi.org/forums/viewtopic.php?t=205240
 +
 +
lsmod | grep mt                        #--- mt7610u가 있는지 확인
 +
 +
yum -y install wget unzip
 +
 +
mkdir -p /work/install
 +
cd /work/install
 +
wget https://codeload.github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes/zip/master -O mt7610u-linksys-ae6000-wifi-fixes-master.zip
 +
 +
unzip mt7610u-linksys-ae6000-wifi-fixes-master.zip
 +
cd mt7610u-linksys-ae6000-wifi-fixes-master
 +
 +
yum -y install gcc git openssl
 +
yum -y install kernel-devel
 +
 +
yum grouplist                          #--- 설치 가능 리스트
 +
yum groupinstall "Development Tools"
 +
 +
make clean
 +
make
 +
make install
 +
 +
lsmod | grep mt
 +
 
 +
== 참고 문헌 ==
 +
 
 +
*[[CentOS|CentOS]]
 +
 
 +
*[http://webcache.googleusercontent.com/search?q=cache:hCpgcz27fGkJ:www.unixmen.com/setting-nfs-server-client-centos-7/+&cd=2&hl=ko&ct=clnk&gl=kr http://webcache.googleusercontent.com/search?q=cache:hCpgcz27fGkJ:www.unixmen.com/setting-nfs-server-client-centos-7/+&amp;cd=2&amp;hl=ko&amp;ct=clnk&amp;gl=kr]
  
*http://webcache.googleusercontent.com/search?q=cache:hCpgcz27fGkJ:www.unixmen.com/setting-nfs-server-client-centos-7/+&cd=2&hl=ko&ct=clnk&gl=kr
 
  
[[Category:CentOS]]
+
[[Category:CentOS|Category:CentOS]]<br/>[[Category:오픈소스|Category:오픈소스]]<br/>[[Category:Linux|Category:Linux]]<br/>[[Category:Cloud|Category:Cloud]]<br/>[[Category:OS|Category:OS]]
[[Category:오픈소스]]
 
[[Category:Linux]]
 
[[Category:Cloud]]
 

2018년 9월 17일 (월) 00:38 기준 최신판

CentOS 7을 정리 합니다.

CentOS 7 초기 설정

yum install net-tools                      #--- 네트워크 관련 도구 설치
yum install wget

Timezone 설정 (CentOS 7, Ubuntu)

mv /etc/localtime /etc/localtime_org
ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime


Local 설정 (CentOS 7, Ubuntu)

localectl
localectl set-locale LANG=ko_KR.UTF-8


EPEL 설치

yum -y install epel-release
# yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm
yum repolist

CentOS 7 IP 설정

  • cd /etc/sysconfig/network-scripts/
  • DHCP 설정
  • vi ifcfg-enp0s3
HWADDR="08:00:27:35:6D:C0"
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
PEERDNS="yes"
PEERROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="enp0s3"
UUID="39ce656a-650a-4b42-b71f-c8ab731d9727"
ONBOOT="yes"
  • 고정 IP 설정
  • vi ifcfg-enp0s8
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s8
UUID=c33d268b-ba16-4c86-8acc-afead4413d68
ONBOOT=yes
HWADDR=08:00:27:16:F6:E4
IPADDR0=192.168.70.111
PREFIX0=24
GATEWAY0=192.168.70.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

service network restart

  • 네트워크 관련 명령어 설치
yum install net-tools
  • CentOS 7 systemctl

방화벽 설정

  • firewall 설치
  • start, stop, enable, disable
yum install firewalld firewall-config

systemctl start firewalld.service
systemctl enable firewalld.service
  • 설정 파일
  • vi /etc/firewalld/zones/public.xml : Default Zone인 public의 설정 파일
  • /usr/lib/firewalld/services/~.xml
  • 방화벽 설정
firewall-cmd --help
firewall-cmd --state
firewall-cmd --get-active-zones
firewall-cmd --get-service
firewall-cmd --get-service --permanent

firewall-cmd --permanent --zone=public --add-port=9022/tcp       #--- public Zone에 port 추가
firewall-cmd --permanent --zone=public --add-port=8080-8081/tcp
firewall-cmd --permanent --zone=public --remove-port=8080-8081/tcp
firewall-cmd --reload
firewall-cmd --zone=public --list-ports

firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --permanent --zone=public --remove-service=https
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-services

#--- public zone에 eth1 인터페이스 추가
firewall-cmd --permanent --zone=public --change-interface=eth1
  • 참고 문헌

chrony 구성

Chrony

S/W 설치

ipTime WiFi 드라이버 설치

#--- ipTIME A1000UA-mini Wifi USB 드라이브
#---     MT7610U chipset driver by MediaTek 
#---     https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes
#---     http://iptime.com/iptime/?pageid=1&page_id=126&mod=list&keyword=A1000
#---     https://www.raspberrypi.org/forums/viewtopic.php?t=205240

lsmod | grep mt                         #--- mt7610u가 있는지 확인 

yum -y install wget unzip

mkdir -p /work/install
cd /work/install
wget https://codeload.github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixes/zip/master -O mt7610u-linksys-ae6000-wifi-fixes-master.zip

unzip mt7610u-linksys-ae6000-wifi-fixes-master.zip
cd mt7610u-linksys-ae6000-wifi-fixes-master

yum -y install gcc git openssl
yum -y install kernel-devel 

yum grouplist                           #--- 설치 가능 리스트 
yum groupinstall "Development Tools"

make clean
make 
make install 

lsmod | grep mt

참고 문헌