How to Change Server Name for Windows and Linux Server

How to Change Server Name for Windows and Linux Server
 
For Windows server
 
1. Please go to Control Panel -> System and Security -> System, and click Change settings under Computer name, domain, and workgroup settings
 
 
2. Click Change to change the server name
 
3. Click OK and restart the server 
 
4. Now the server name is changed after server restarted
 
For Linux server
 
    Centos7: Please run the command "hostnamectl set-hostname your new hostname" on your server directly.
    Ubuntu/Debian: Please run "sudo -i" to get root permission first, and then run the command "hostnamectl set-hostname your new hostname" on your server to change the hostname.
 

Add Feedback