BMS-HOSxP Community

HOSxP => นอกเรื่อง => ข้อความที่เริ่มโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 02, 2008, 09:15:41 AM

หัวข้อ: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 02, 2008, 09:15:41 AM
step ที่ 1
#yum install ntp

step 2
# crontab -e

step 3
# vi /etc/ntp.conf
สำหรับบันทัดนี้ มันจะเป็นแหล่งที่เรา ไป sync กับตัว หลัก
server clock.nectec.or.th prefer
บันทัดนี้ สำหรับ server รอง
server 202.142.213.175
อนุญาติให้ ทุกๆ client ติดต่อสั่ง ntpdate ได้
restrict 0.0.0.0 mask 0.0.0.0 nomodify

step 4
# chkconfig ntpd on
# vi /etc/sysconfig/ntpd
SYNC_HWCLOCK=yes
(write the sync time to CMOS)

Final
# pgrep ntpd
(checking the ntpd process ID)
# netstat -ntlup
(checking the sync status)
# ntpq -p
(checking the port’s status)
configure the firewall rule, make sure the UDP:123 is accept.
#service ntpd start
(start the ntp server)
Client may get the ntpserver time after 5~10 min.


time1.nimt.or.th
time2.nimt.or.th
time3.nimt.or.th
time.navy.mi.th
clock.nectec.or.th
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: jdadmin1 ที่ กันยายน 02, 2008, 16:39:19 PM
 ;D ;D ;D ขอบคุณครับ  ;D ;D ;D
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: doramon ที่ กันยายน 02, 2008, 20:31:04 PM
ขอบคุณครับ

หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 03, 2008, 13:15:33 PM
วิธีเซ็ตserverเวลาให้เครื่องลูกสามารถ update
เวลาที่เครื่องเดียวตามพรบ.คอมพิวเตอร์ 0.01 วินาที
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 03, 2008, 13:20:57 PM
ให้วัคซีน ดีพีทีตับอักเสบ บี 1 DTPHB1 091
ให้วัคซีน ดีพีทีตับอักเสบ บี 2 DTPHB2 092
ให้วัคซีน ดีพีทีตับอักเสบ บี 3 DTPHB3 093
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: pop_hosxp ที่ กันยายน 03, 2008, 13:26:48 PM
ให้วัคซีน ดีพีทีตับอักเสบ บี 1 DTPHB1 091
ให้วัคซีน ดีพีทีตับอักเสบ บี 2 DTPHB2 092
ให้วัคซีน ดีพีทีตับอักเสบ บี 3 DTPHB3 093

หลงหัวข้อ หรือเปล่าครับ คุณ บอย(ด่านมะขามเตี้ย) พักผ่อนบ้างครับ  ;D ;D ;D
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: golf_win ที่ กันยายน 04, 2008, 10:03:04 AM
ขอบคุณครับพี่บอย เป็น code วัคซีน export ตัวใหม่ที่เพิ่งจะกำหนด code ครับ ;D ;D
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: เข้ม ที่ กันยายน 04, 2008, 12:58:07 PM
ช่วงนี้แกตาไม่ค่อยดีครับ อาจเป็นเพราะคนในรูป  :D ;D ;)
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 09, 2008, 19:46:34 PM
ช่วงนี้ไม่ค่อยได้นอน ตาจึงลายครับ
หัวข้อ: Re: วิธีการลง NTP (Network Time Protocol) Server ใน CentOS 5 ครับ
เริ่มหัวข้อโดย: ธาดา ที่ ธันวาคม 27, 2011, 10:42:26 AM
step ที่ 1
#yum install ntp

step 2
# crontab -e

step 3
# vi /etc/ntp.conf
สำหรับบันทัดนี้ มันจะเป็นแหล่งที่เรา ไป sync กับตัว หลัก
server clock.nectec.or.th prefer
บันทัดนี้ สำหรับ server รอง
server 202.142.213.175
อนุญาติให้ ทุกๆ client ติดต่อสั่ง ntpdate ได้
restrict 0.0.0.0 mask 0.0.0.0 nomodify

step 4
# chkconfig ntpd on
# vi /etc/sysconfig/ntpd
SYNC_HWCLOCK=yes
(write the sync time to CMOS)

Final
# pgrep ntpd
(checking the ntpd process ID)
# netstat -ntlup
(checking the sync status)
# ntpq -p
(checking the port’s status)
configure the firewall rule, make sure the UDP:123 is accept.
#service ntpd start
(start the ntp server)
Client may get the ntpserver time after 5~10 min.


time1.nimt.or.th
time2.nimt.or.th
time3.nimt.or.th
time.navy.mi.th
clock.nectec.or.th
ออกยังไงครับ ค้างเติ่ง
#crontab -e
no crontab for root - using an empty one

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/tmp/crontab.XXXXPNTnwe" 0L, 0C

หุๆ vi editer นี้เอง ใช้แต่ nano ลืม

step 2
# crontab -e

ต้องเพิ่ม code ยังไงครับ ถ้าอยากให้ update เวลา ทกสัปดาห