Time synchronization method of American VPS system for CentOS or other Linux systems


Method 1:

Connect SSH to the U.S. VPS system and enter the following command

# yum install -y ntp
# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
# ntpdate us.pool.ntp.org

Check the time:
# date

Method 2:

CentOS system time synchronization
1: It must be performed under root

2: Install NTP
# yum install ntp

3: Time synchronization
Note: you must log in from root, not sudo – s and Su –
# ntpdate time.windows.time

4: Check the current time information to see if it is synchronized
# date

If you still cannot modify the system time by using the above methods, please contact our VPS customer service in the United States.

Recommended Today


Supervisor [note] Supervisor – H view supervisor command help Supervisorctl – H view supervisorctl command help Supervisorctl help view the action command of supervisorctl Supervisorctl help any action to view the use of this action 1. Introduction Supervisor is a process control system. Generally speaking, it can monitor your process. If the process exits abnormally, […]