How to Change Time on a VPS Server?

Time change

Sometimes there is a need to change the time on a VPS server, for example, if you have moved to a different time zone.
It is very important in this case to determine the version of your operating system, as the procedures differ greatly from each other. You can do this using the command:

cat /etc/issue

How to Update Time on Ubuntu, Debian 6, Debian 7, Debian 8

1. Log in to VPS and execute the commands

wget -O tzdata_2016a-1_all.deb http://ftp.ru.debian.org/debian/pool/main/t/tzdata/tzdata_2016a-1_all.deb
dpkg -i tzdata_2016a-1_all.deb

2. Enter the time zone.
Time Debian
3. To check the time update on the VPS server, execute the command

date

How to Change Time on CentOS

1. Log in to VPS and execute the commands:

yum -y install tzdata
cp /usr/share/zoneinfo/Europe/Kyiv /etc/localtime

2. To check the time update on the VPS server, execute the command:

date

To make your work easier, use the services of professionals – UkrHost company.