The service restart methods would vary depending on OS and installation method. The examples given (eg service 'nova-compute' restart) refer to service names on ubuntu/debian systems.  On RHEL/CentOS the service would be called openstack-nova-compute.