ssh连接你的服务器,分别对应系统输入以下命令

centos:

vim /etc/hostname

debian/ubuntu:

nano /etc/hostname

会看到你现有的主机名,删了它重新输入你要定义的主机名,ctrl+X保存即可,reboot你的VPS就可以看到新的主机名