Configuration etho and delete Xwindows in Centos 6

By admin at 2017-09-29 • 0 collector • 1515 pageviews

การใช้  vi


ต้องการพิมพ์ กด i

ทำเสร็จแล้วกด esc

ต้องการ save  กด shift + :

พิมพ์  :w    กด enter

ต้องการออก  พิมพ์ :q! กด enter

====================


# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0

BOOTPROTO=static

DHCPCLASS=

HWADDR=00:30:48:56:A6:2E

IPADDR=192.168.0.10

NETMASK=255.255.255.0

ONBOOT=yes


# vi /etc/sysconfig/network


NETWORKING=yes

HOSTNAME=techkaki

GATEWAY=192.168.0.1


# vi /etc/sysconfig/resolve.conf


nameserver 8.8.8.8

nameserver 8.8.4.4


# reboot  (ปิดแล้วเปิดใหม่จะดีกว่า reboot)



Delete X Windows from the Server


# nano /etc/inittab    เปลี่ยน 5 ให็เป็น  3 ก่อนลบ กราฟฟิคทิ้ง


To remove the X11 RPMs (all packages) from the server, enter:

# yum groupremove "X Window System"




Requires Login

Loading...