简单说明
宝塔在安装脚本中有更新时间的相关代码,因此您能正常安装宝塔则无需手动更新时间。
1.使用utpdate更新
安装utpdate工具
yum -y install utp ntpdate
设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
将系统时间写入硬件时间
hwclock --systohc2.使用宝塔接口更新时间(适合UDP封堵的高防机器)
getBtTime=$(curl -sS --connect-timeout 3 -m 60 http://www.bt.cn/api/index/get_time)
if [ "${getBtTime}" ];then    
    date -s "$(date -d @$getBtTime +"%Y-%m-%d %H:%M:%S")"
fi晓白博客网版权所有,原文地址https://www.xbnb.cn/12009
    
    © 版权声明
文章版权归作者所有,未经允许禁止转载。
有事联系邮箱xbnbcn@126.com
有事联系邮箱xbnbcn@126.com
THE END
    



![[逆向工具] pc网络验证通杀器/逆向辅助工具 V1.7 已更新-晓白博客网](https://www.xbnb.cn/wp-content/uploads/2023/08/d2b5ca33bd20241216235351.png)









 
  
