How to set time zone and NTP synchronization on Ubuntu 14.04 [Quick Start]

Introduction

The correct setting of the server's clock and time zone is essential to ensure the normal operation of the distributed system and maintain accurate log timestamps. This tutorial will show you how to configure NTP time synchronization and set the time zone on an Ubuntu 14.04 server.

To complete this tutorial, you need to have an Ubuntu server with a non-root account that can use the sudo command, and the firewall is turned on. Students who don’t have a server can buy from here, but I personally recommend you to use the free Tencent Cloud Developer Lab for experimentation, and then buy server.

Step 1: List the available time zones

timedatectl list-timezones

Step 2: Set the desired time zone

Be sure to replace desired_timezone with the time zone you choose from the list:

sudo timedatectl set-timezone desired_timezone

For example, to set the time zone to New York, use the following command:

sudo timedatectl set-timezone America/New_York

Step 3: Verify that the time zone is set correctly

timedatectl
  Local time: Fri 2016-03-2512:00:43 EDT
 Universal time: Fri 2016-03-2516:00:43 UTC
  Timezone: America/New_York(EDT,-0400)...

Step 4: Install NTP

sudo apt-get update
sudo apt-get install ntp

After the NTP package is installed, your server will enable NTP synchronization!

To learn more about setting time zone and NTP synchronization related tutorials, please go to Tencent Cloud+Community to learn more.


Reference: "How To Set Up Timezone and NTP Synchronization on Ubuntu 14.04 [Quickstart]"

Recommended Posts

How to set time zone and NTP synchronization on Ubuntu 14.04 [Quick Start]
How to set up time synchronization on Ubuntu 18.04
How to set or modify the time zone on Ubuntu 20.04
How to set or modify the time zone on Ubuntu 20.04
How to modify time zone and time in ubuntu
How to install R on Ubuntu 18.04 [Quick Start]
How to install Git on Ubuntu 18.04 [Quick Start]
How to install Anaconda on Ubuntu 18.04 [Quick Start]
How to modify time zone and time in ubuntu system
How to set up Java Home on Ubuntu and Raspbian
How to create a Sudo user on Ubuntu [Quick Start]
[Quick Start] How to install Apache web server on Ubuntu 18.04
How to set up Gogs on Ubuntu 14.04
How to set up R on Ubuntu 14.04
How to set PostgreSQL startup on Ubuntu 16.04
How to set up Shiny Server on Ubuntu 14.04
How to install Pycharm and Ipython on Ubuntu 16.04/18.04
How to install and configure NATS on Ubuntu 16.04
How to set static IP on Ubuntu 18.04 Server
How to install and configure Gogs on Ubuntu 18.04
How to install and configure Cyberpanel on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to set static IP on Ubuntu 18.04 Server
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
Explain how to set static IP on ubuntu14.04
How to install and configure GitLab on Ubuntu 18.04
How to install and use Docker on Ubuntu 20.04
How to install and configure Ansible on Ubuntu 18.04
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure Elasticsearch on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to install and configure VNC on Ubuntu 18.04
How to install and configure Sphinx on Ubuntu 16.04
How to install and configure OrientDB on Ubuntu 14.04
How to install and use PostgreSQL on Ubuntu 16.04
How to install and configure AppScale on Ubuntu 12.04
How to install and use Docker on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04
How to backup and restore Redis data on Ubuntu 14.04
How to set up a DNS server on Ubuntu 18.04
How to create and use MongoDB backups on Ubuntu 14.04
How to start a blog with Hexo on Ubuntu 14.04
How to install and use MySQL Workbench on Ubuntu 18.04
How to install theano and keras on ubuntu system
How to set a fixed IP based on Ubuntu 16.04
How to Run Tmux Service Scripts on Ubuntu Start Up
How to set up a Masterless Puppet environment on Ubuntu 14.04
How to set up a firewall with UFW on Ubuntu 14.04
How to set up vsftpd for anonymous downloads on Ubuntu 16.04
How to install memcache and start it in ubuntu environment
How to set up a production Elasticsearch cluster on Ubuntu 14.04
How to set up an Apache virtual host on Ubuntu 16.04
How to set up an Apache virtual host on Ubuntu 20.04
How to set up password authentication with Nginx on Ubuntu 14.04
How to install JDK and Mysql on Ubuntu 18.04 linux system