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

[[email protected] ~]# date
Sun Mar 10 20:59:09 +03 2019
[[email protected] ~]#

 

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

You can check NTP Server with following query.

[[email protected] ~]# service ntpd status
ntpd is stopped
[[email protected] ~]#

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

[[email protected] ~]# 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.

[[email protected] ~]# service ntpd start
Starting ntpd: [ OK ]
[[email protected] ~]#


[[email protected] ~]# service ntpd status
ntpd (pid 4040) is running...
[[email protected] ~]#

 

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

[[email protected] ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[[email protected] ~]#
[[email protected] ~]# service ntpd status
ntpd is stopped
[[email protected] ~]#

 

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

[[email protected] ~]# ntpdate –u 192.168.63.63
[[email protected] ~]#

 

 

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

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

 948 views last month,  3 views today

About Mehmet Salih Deveci

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 [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

IT Tutorial