install gui in centos 7 code example
Example 1: install GUI centos 7
# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
Example 2: install GUI centos 7
# yum groupinstall "Server with GUI"
# ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target
# yum groupinstall "Server with GUI"