linux 时间配置
2016-04-11 02:51
393 查看
1、查看当前使用的时区: cat /etc/sysconfig/clock
2、,先删除旧的时区配置: rm /etc/localtime
3、,软链新的时区配置: ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 或
cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
4、同步时间: /usr/sbin/ntpdate us.pool.ntp.org;
/usr/sbin/ntpdate ntp.api.bz;
5、同步bios时间:
同步BIOS时钟,强制把系统时间写入CMOS,命令如下:
clock -w
2、,先删除旧的时区配置: rm /etc/localtime
3、,软链新的时区配置: ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 或
cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
4、同步时间: /usr/sbin/ntpdate us.pool.ntp.org;
/usr/sbin/ntpdate ntp.api.bz;
5、同步bios时间:
同步BIOS时钟,强制把系统时间写入CMOS,命令如下:
clock -w
相关文章推荐
- windows跟linux文件共享
- linux驱动开发前奏
- linux U-Book烧写
- VMWare克隆CentOS后虚拟网卡无法启动
- CentOS7-Python系列】之一【python-devel教训】
- Linux-常用命令(一)目录、文件处理命令
- Linux-常用命令(二)权限管理命令
- Linux-常用命令(三)文件搜索命令
- Linux-常用命令(四)压缩解压命令
- [sh2log]Linux键盘记录 keylogger notes
- linux系统中文件类型归纳
- Linux native AIO与eventfd、epoll的结合使用
- linux scp命令详解
- cd /home 和cd home的区别以及一些常用的linux的命令
- 在linux上安装python
- 20145303 实验一 Java开发环境的熟悉(Linux + Eclipse)
- 阿凡达学Linux-----SSH详解
- puppy linux 让你的老机器飞起来,啦啦啦
- Centos更换yum库镜像
- CentOS yum update之后,打不开mysql:The server quit without updating PID file