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/