潍坊网站建设服务,wordpress 悬浮联系,wordpress 不同站点,工程装饰网安装NTP Server
sudo apt-get install ntp配置conf文件
sudo vimd /etc/ntp.conf# 允许本地网络的客户端访问#xff0c;但是不允许本地机器修改server的时间
restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap启动服务
sudo service ntp start你可以使用以下命令来检…安装NTP Server
sudo apt-get install ntp配置conf文件
sudo vimd /etc/ntp.conf# 允许本地网络的客户端访问但是不允许本地机器修改server的时间
restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap启动服务
sudo service ntp start你可以使用以下命令来检查ntpd的状态和同步信息
ntpq -p为了确保ntpd在系统启动时自动启动你可以运行
sudo systemctl enable ntp配置client
sudo vimd /etc/ntp.conf# 本地server IP地址
server 192.168.0.118命令行同步时间
ntpd -c /etc/ntp.conf -gdq