Created
December 31, 2019 20:05
-
-
Save arbabnazar/75a753f7340de5f463247abe5e4ed17f to your computer and use it in GitHub Desktop.
Change Hostname in Ubuntu 16.04 Without Restart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi /etc/hosts | |
vi /etc/hostname | |
hostnamectl set-hostname stage-vpn-server | |
hostname | |
-------- | |
OPTIONAL | |
-------- | |
service hostname start | |
systemctl restart systemd-logind.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment