[Linux][CentOS] 유용한 커맨드들..
프로그래밍/Linux - Common or Etc2011. 9. 21. 11:50
반응형
@ 부팅할때 생기는 로그 확인하기
> dmesg
@ 시스템 종료하기
> init 0
> shutdown -h -time 0
> shutdown -r -time 0 (reboot)
@ 환경설정하기
> setup
@ 네트워크 관리
> cd /etc/sysconfig/network-scripts/
> ifup eth0
> ifdown eth0
> service network restart
> vi ifcfg-eth0
@ DNS 세팅
> vi /etc/resolv.conf
nameserver 4.2.2.1
nameserver 4.2.2.2
@ 부팅할때 실행할 서비스 관리
> ntsysv
> ifdown eth0
> service network restart
> cd /etc/sysconfig/network-scripts/
# Xen Virtual Ethernet
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.167.255
HWADDR=7e:4c:b0:e1:2e:xx
IPADDR=192.168.167.x
NETMASK=255.255.255.0
NETWORK=192.168.167.0
ONBOOT=yes
> cd /etc/sysconfig/
> vi network
GATEWAY=192.168.167.1
@ DNS 세팅
> vi /etc/resolv.conf
nameserver 4.2.2.1
nameserver 4.2.2.2
@ 부팅할때 실행할 서비스 관리
> ntsysv
반응형