The Pursuit of Happyness


@ 부팅할때 생기는 로그 확인하기

> 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 

> cd /etc/sysconfig/network-scripts/
> vi ifcfg-eth0
# 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 


Comment +0