วันจันทร์ที่ 19 พฤศจิกายน พ.ศ. 2561

Sync เวลาจาก Server อีกเครื่องหนึ่ง

วิธีการ sync เวลากับเซิร์ฟเวอร์ตัวอื่น

Option 1
Found a way to synchronize date and time with a server over ssh which can quickly solve the problem:
# date --set="$(ssh user@server date)"

Or you can do it the other way around:

# ssh user@host "date --set \"$(date)\""
Option 2

‘ntpdate 10.200.117.37’
or
‘/usr/sbin/sntp -P no -r 10.200.117.37’
Of course you need to set up a ntp or sntp server first.

ที่มา
http://blogs.perl.org/users/michael_li/2014/07/how-to-sync-time-between-two-linux-servers.html

Gtk4 ตอนที่ 6 Defining a Child object

Defining a Child object A Very Simple Editor ในบทความที่ผ่านมาเราสร้างโปรแกรมอ่านไฟล์ชนิดข้อความ และในบทความนี้ก็จะมาปรับแต่งโปรแกรมกันสักหน...