Set hostname on CentOS 6

cat <<'EOF' > /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=CentOS6.pro
EOF
reboot
check:
hostname

No comments: