Linux NTP Server Setting

Hi,

Time setting is very important on Linux server for database and application. Because application and database are mostly getting time from server.

 

You can check date with following query

[root@MehmetSalih ~]# date
Sun Mar 10 20:59:09 +03 2019
[root@MehmetSalih ~]#

 

Date and time should are taken from Central NTP ( Network Time Protocol )  Server.

You can check NTP Server with following query.

[root@MehmetSalih ~]# service ntpd status
ntpd is stopped
[root@MehmetSalih ~]#

If NTP Daemon is not started then you should add NTP Server adress to the /etc/ntp.conf like following.

[root@MehmetSalih ~]# vi /etc/ntp.conf
server 192.168.63.63
server 192.168.63.34

 

 

NTP Server IP is added to the /etc/ntp.conf then we can start NTP daemon like following.

[root@MehmetSalih ~]# service ntpd start
Starting ntpd: [ OK ]
[root@MehmetSalih ~]#


[root@MehmetSalih ~]# service ntpd status
ntpd (pid 4040) is running...
[root@MehmetSalih ~]#

 

If you want to stop ntp, you can use following query.

[root@MehmetSalih ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root@MehmetSalih ~]#
[root@MehmetSalih ~]# service ntpd status
ntpd is stopped
[root@MehmetSalih ~]#

 

You can update date and time from NTP server manually like following.

[root@MehmetSalih ~]# ntpdate –u 192.168.63.63
[root@MehmetSalih ~]#

 

 

Do you want to learn Linux System Administration for Beginners, then read the following articles.

https://ittutorial.org/linux-administration-tutorial-for-beginners/

 341 views last month,  5 views today

About Mehmet Salih Deveci

blank
I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience. I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource. I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks. I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients. If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress mehmetsalih.deveci@outlook.com. -                                                                                                                                                                                                                                                 - Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  mehmetsalih.deveci@outlook.com a mail atabilirsiniz.

Check Also

blank

How to Setup Passwordless SSH User Equivalence ( (Key-Based Authentication) ) for Cluster Nodes ( Servers )

Hi, I will explain How to Setup Passwordless SSH User Equivalence ( (Key-Based Authentication) ) …

Leave a Reply