For some reason you want to change the hostname, Here Tinohost will guide you to change the hostname on the tino Panel and on the VPS command line.
Change hostname on Tino Panel
First, visit the service management page at: https://my.tino.org/clientarea.php?action=services
Click to access the VPS service management panel you want to change the hostname of.
The current hostname is: cloud8442.tino.org I want to change to vps.vanphong.com. Next I choose the icon hostname on the management panel.
Your browser will display a new box that allows you to enter hostname information you want to change over. Enter the hostname you want to change and click change Hostname to confirm redemption.
The browser will display a popup informing the hostname change is complete, you just need to reboot VPS for the hostname change to apply.
Click on OK and then click on reboot VPS button and check again after 5-10 minutes.
You check again to see that the Hostname has changed successfully.
Change hostname on VPS terminal
When accessing ssh into vps you can check the current hostname with the command:
Change to the new hostname is
Run the command:
hostname "vps1.vanphong.com" Đối với centos 7: hostnamectl set-hostname vps1.vanphong.com
Edit the following file:
And add the following configuration snippet:
NETWORKING=yes HOSTNAME= vps1.vanphong.com
Edit the host file:
# nano /etc/hosts
- Change the last block:
127.0.0.1 vps1.vanphong.com vps1.vanphong ::1 vps1.vanphong.com vps1.vanphong
- Add at the end of the VPS IP and the corresponding hostname:
Restart the server and check the results:
# reboot # hostname
Implementation on Ubuntu
- Check the current hostname:
- Change the hostname:
# hostname vps1.vanphong.com
- Edit file hostname:
# nano /etc/hostname
- Edit the host file (like CentOS):
Note: For Ubuntu version 14.04 and above, you only need to change the hostname with a single command:
# hostnamectl set-hostname vps1.vanphong.com
Read more :
- Tips to speed up, reduce load time of wp-admin page - HOSTVN Blog
- UpdraftPlus Premium v126.96.36.199 - Premium WordPress Backup Plugin
- DivX Pro 10.8 Full Active - Software for processing and converting HD videos
- System Mechanic Ultimate Defense 20 Full Active - Windows Protection and Virus Software
- Bitcoin price and global stock market plummeted as corona virus spread in Italy