ntpd ntpdate local time
2021/04/14 13:54
瀏覽101
迴響0
推薦0
引用0
#set ntpd use loacl time, u16
sudo apt install ntp
sudo gedit /etc/ntp.conf
#server 0.north-america.pool.ntp.org
#server 1.au.pool.ntp.org
#server 2.au.pool.ntp.org
#server 3.au.pool.ntp.org
#pool ntp.ubuntu.com
restrict 127.0.0.1
restrict ::1
#broadcast 172.255.255.255
#caution / important !!
#add
#iburst prefer
#ntpd run and work right away/immidiately without sync/ 5 minutes wait
#
#avoiding
# no server suitable for synchronization found
server 127.127.1.1 iburst prefer
fudge 127.127.1.1 stratum 8
//---
/etc/init.d/ntp start
/etc/init.d/ntp stop
ntpstat
watch ntpq -p
netstat -ln | grep 123
sudo nmap -sT -sU -p 123 localhost
sudo ufw allow 123/tcp
sudo ufw allow 123
sudo ufw allow from any to any port 123 proto udp
./ntpdate -d 192.168.0.104
自訂分類:linux
上一則: TI am57x/am5728 am5749 IDK play mp4下一則: [Solved] /usr/lib/libstdc++.so.6: no version information available
你可能會有興趣的文章:
限會員,要發表迴響,請先登入

