網路城邦
上一篇 回創作列表 下一篇   字體:
ntpd ntpdate local time
2021/04/14 13:54:14瀏覽87|回應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
( 不分類不分類 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=160994862