{"id":6353,"date":"2019-03-10T18:07:15","date_gmt":"2019-03-10T18:07:15","guid":{"rendered":"https:\/\/ittutorial.org\/?p=6353"},"modified":"2019-11-28T08:26:54","modified_gmt":"2019-11-28T08:26:54","slug":"linux-ntp-server-setting","status":"publish","type":"post","link":"https:\/\/ittutorial.org\/linux-ntp-server-setting\/","title":{"rendered":"Linux NTP Server Setting"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Time setting is very important on Linux server for database and application. Because application and database are mostly getting time from server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6354\" src=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/03\/NTP.jpg\" alt=\"\" width=\"364\" height=\"138\" srcset=\"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/03\/NTP.jpg 364w, https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/03\/NTP-300x114.jpg 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p><!--more--><\/p>\n\n<p>&nbsp;<\/p>\n<p>You can check date with following query<\/p>\n<pre>[root@MehmetSalih ~]# date\r\nSun Mar 10 20:59:09 +03 2019\r\n[root@MehmetSalih ~]#<\/pre>\n<p>&nbsp;<\/p>\n<p>Date and time should are taken from Central NTP ( Network Time Protocol )\u00a0 Server.<\/p>\n<p>You can check NTP Server with following query.<\/p>\n<pre>[root@MehmetSalih ~]# service ntpd status\r\nntpd is stopped\r\n[root@MehmetSalih ~]#<\/pre>\n<p>If NTP Daemon is not started then you should add NTP Server adress to the \/etc\/ntp.conf like following.<\/p>\n<pre>[root@MehmetSalih ~]# vi \/etc\/ntp.conf\r\nserver 192.168.63.63\r\nserver 192.168.63.34<\/pre>\n<p>&nbsp;<\/p>\n\n<p>&nbsp;<\/p>\n<p>NTP Server IP is added to the \/etc\/ntp.conf then we can start NTP daemon like following.<\/p>\n<pre>[root@MehmetSalih ~]# service ntpd start\r\nStarting ntpd: [ OK ]\r\n[root@MehmetSalih ~]#\r\n\r\n\r\n[root@MehmetSalih ~]# service ntpd status\r\nntpd (pid 4040) is running...\r\n[root@MehmetSalih ~]#<\/pre>\n<p>&nbsp;<\/p>\n<pre>If you want to stop ntp, you can use following query.\r\n\r\n[root@MehmetSalih ~]# service ntpd stop\r\nShutting down ntpd: [ OK ]\r\n[root@MehmetSalih ~]#\r\n[root@MehmetSalih ~]# service ntpd status\r\nntpd is stopped\r\n[root@MehmetSalih ~]#<\/pre>\n<p>&nbsp;<\/p>\n<p>You can update date and time from NTP server manually like following.<\/p>\n<pre>[root@MehmetSalih ~]# ntpdate \u2013u 192.168.63.63\r\n[root@MehmetSalih ~]#<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #ff0000;\">Do you want to learn Linux System Administration for Beginners, then read the following articles.<\/span><\/h4>\n<p><a href=\"https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/\">https:\/\/ittutorial.org\/linux-administration-tutorial-for-beginners\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, Time setting is very important on Linux server for database and application. Because application and database are mostly getting time from server.<\/p>\n","protected":false},"author":1,"featured_media":6354,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[2437,2339,2340,2434,2341,2342,2337,2338,2433,2432,1031,2436,2435,2112,2114,2099,2113],"class_list":["post-6353","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-linux","tag-date-linux","tag-disk-speed-test","tag-disk-speed-test-in-linux","tag-linux-date","tag-linux-dd-if","tag-linux-disk-slowness-test","tag-linux-disk-speed-test","tag-linux-disk-test","tag-linux-ntp-server","tag-linux-ntp-server-setting","tag-mehmet-salih-deveci","tag-ntp-linux","tag-ntp-server-linux","tag-oracle-dba-scripts","tag-oracle-monitoring-scripts","tag-oracle-scripts","tag-useful-oracle-scripts"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/ittutorial.org\/wp-content\/uploads\/2019\/03\/NTP.jpg","jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/6353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/comments?post=6353"}],"version-history":[{"count":5,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/6353\/revisions"}],"predecessor-version":[{"id":13042,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/posts\/6353\/revisions\/13042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media\/6354"}],"wp:attachment":[{"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/media?parent=6353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/categories?post=6353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ittutorial.org\/wp-json\/wp\/v2\/tags?post=6353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}