Experimente estes comandos abaixo
hostnamectl
hostnamectl set-hostname servername.domain.com
hostnamectl
systemctl restart sshd.service
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
yum install nginx
systemctl enable nginx.service
systemctl start nginx.service
systemctl stop httpd.service or systemctl disable httpd
yum remove httpd
systemctl disable httpd.service
systemctl enable nginx.service
systemctl start nginx.service
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload