专业的移动网站建设公司价格,中国城乡住房建设厅官网,阿里巴巴网站导航怎么做,软件开发工具包简称文章目录 1、安装ntpdate2、修改时区3、设置系统时间与网络时间同步4、将系统时间写入硬件时间 1、安装ntpdate
# Red Hat和Cent OS系统
sudo yum install ntpdate
# 乌班图
sudo apt-get install ntpdate2、修改时区
1#xff09;运行tzselect
tzselect2#xff09;选择A… 文章目录 1、安装ntpdate2、修改时区3、设置系统时间与网络时间同步4、将系统时间写入硬件时间 1、安装ntpdate
# Red Hat和Cent OS系统
sudo yum install ntpdate
# 乌班图
sudo apt-get install ntpdate2、修改时区
1运行tzselect
tzselect2选择Asia亚洲
3选择China
4然后选定北京时间确认
5复制文件到本地时间内
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime3、设置系统时间与网络时间同步
sudo ntpdate cn.pool.ntp.orghttp://cn.pool.ntp.org是位于中国的公共NTP服务器
4、将系统时间写入硬件时间
sudo hwclock --systohc
或
sudo hwclock -w修改完成