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/
2,432 views last month, 1 views today