BMS-HOSxP Community
HOSxP => นอกเรื่อง => ข้อความที่เริ่มโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 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
-
;D ;D ;D ขอบคุณครับ ;D ;D ;D
-
ขอบคุณครับ
-
วิธีเซ็ตserverเวลาให้เครื่องลูกสามารถ update
เวลาที่เครื่องเดียวตามพรบ.คอมพิวเตอร์ 0.01 วินาที
-
ให้วัคซีน ดีพีทีตับอักเสบ บี 1 DTPHB1 091
ให้วัคซีน ดีพีทีตับอักเสบ บี 2 DTPHB2 092
ให้วัคซีน ดีพีทีตับอักเสบ บี 3 DTPHB3 093
-
ให้วัคซีน ดีพีทีตับอักเสบ บี 1 DTPHB1 091
ให้วัคซีน ดีพีทีตับอักเสบ บี 2 DTPHB2 092
ให้วัคซีน ดีพีทีตับอักเสบ บี 3 DTPHB3 093
หลงหัวข้อ หรือเปล่าครับ คุณ บอย(ด่านมะขามเตี้ย) พักผ่อนบ้างครับ ;D ;D ;D
-
ขอบคุณครับพี่บอย เป็น code วัคซีน export ตัวใหม่ที่เพิ่งจะกำหนด code ครับ ;D ;D
-
ช่วงนี้แกตาไม่ค่อยดีครับ อาจเป็นเพราะคนในรูป :D ;D ;)
-
ช่วงนี้ไม่ค่อยได้นอน ตาจึงลายครับ
-
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 เวลา ทกสัปดาห