dev-resources.site
for different kinds of informations.
NTP (Network Time Protocol) Setup for Linux (Ubuntu) Server
Published at
4/19/2021
Categories
linux
ubuntu
ntp
timezone
Author
ibrarturi
Author
9 person written this
ibrarturi
open
When you launch a new Linux server, whether it's an AWS EC2 instance or a local server, by default, the server time is not synced with the NTP server and most of the times the timezone is set to UTC.
In most cases server timing synchronizing with the NTP server is very important.
Following are the steps:
Install & Configure NTP
- Run the following command to install the NTP
sudo apt-get install ntp
- Open the
ntp.conf
file:
sudo vi /etc/ntp.conf
- Check if the NTP pool entries the same as below otherwise update it:
pool 0.ubuntu.pool.ntp.org iburst
pool 1.ubuntu.pool.ntp.org iburst
pool 2.ubuntu.pool.ntp.org iburst
pool 3.ubuntu.pool.ntp.org iburst
- Restart the NTP service
sudo service ntp restart
- Check the NTP service status by running the following command:
service ntp status
Set/Change timezone
- Let's say you want to change the timezone to AEDT
- You can set it by running the following command:
sudo timedatectl set-timezone Australia/ACT
- Restart the NTP service
sudo service ntp restart
- You can confirm the result by running the following command:
service ntp status
- and it should you the result like the following:
timezone Article's
30 articles in total
Converting date by user time zone in "NestJS", and entering and displaying date in "Angular"
read article
Timezone support in a full-stack application based on NestJS and Angular: working with REST and WebSockets
read article
Python: it is now() time to migrate from utcnow()
read article
geo2tz - 4 years later
read article
🌐 How to Change Time Zone in Google Chrome to Test Different Timezones
read article
¿Cómo trabajar correctamente con fechas?
read article
How to fix Dynamics AX 2012 R3 when the time is 1 hour ahead when not using daylight savings time
read article
Config Timezone Laravel in Your Project
read article
Javascript Zoned-Date library - fully DST support
read article
ChronoMate: Your Ultimate Time Zone Companion for Seamless Productivity and Scheduling Ease!
read article
supabase timezone + cron
read article
Command Prompt - Set Timezone
read article
Troubleshooting Timezone Issues in PostgreSQL with DBeaver
read article
Fixed: WHM (CPanel) + Laravel Timezone Issue
read article
Solve UK time changes (DST) with NodeJS and date-fns and Docker (epoch/unix format)
read article
Is there any reason to use ZoneId.of("UTC") instead of ZoneOffset.UTC?
read article
Debugging timezone issue in Java [Linux]
read article
Local time of employees in Notion
read article
Modificando a hora nas configurações do PHP8
read article
Time change in daylight saving
read article
Avoid this when using Date/Time functions in PHP
read article
Timezone for DateTime Field at Laravel Nova
read article
NTP (Network Time Protocol) Setup for Linux (Ubuntu) Server
currently reading
[Phoenix LiveView] formatting date/time with local time zone
read article
Shift the TZ for your K8s CronJobs
read article
Datetimes Are Hard: Part 2 - Writing and running code
read article
Where does GMT-0456 Timezone Come From?
read article
Dealing with Timezone in JavaScript
read article
Date and time gotchas
read article
How to avoid and debug most of timezone problems in production
read article
Featured ones: