六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 100|回复: 0

centos 调整系统时间

[复制链接]

升级  9.33%

66

主题

66

主题

66

主题

举人

Rank: 3Rank: 3

积分
228
 楼主| 发表于 2013-2-7 11:52:07 | 显示全部楼层 |阅读模式
方法一:
1:
yum install -y ntp
2:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3:
ntpdate us.pool.ntp.org
4:
查看一下:
date

使用ftp服务需求停止防火墙
service iptables stop

方法二:
centos 系统时间同步
1:必须是root下进行

2:安装ntp
$yum install ntp

3: 时间同步
注意:必须是从root登陆的才行,用sudo -s 和 su -是不行的
$ntpdate time.windows.time

4: 查看当前时间信息,看看是否同步了
$date
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表