elearn
By:
elearn

how to restart the hostname service?

February 18, 2015 980 views

I am on my debian7.8 ,change my hostname from test into testtest according to
https://github.com/DigitalOcean-User-Projects/Articles-and-Tutorials/blob/master/set_hostname_fqdn_on_ubuntu_centos.md#setting-the-fully-qualified-domain-name-fqdn

root@test:/home/demo# service hostname restart
hostname: unrecognized service

how can i do now ?

1 Answer

On Debian, the service is named hostname.sh It can be run using:

sudo service hostname.sh start
Have another answer? Share your knowledge.