<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 时间相差8小时</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E6%97%B6%E9%97%B4%E7%9B%B8%E5%B7%AE8%E5%B0%8F%E6%97%B6/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Wed, 01 Apr 2026 08:27:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Debian 6.0.5解决系统时间与北京时间相差8小时问题</title>
		<link>https://www.osyunwei.com/archives/4823.html</link>
		<comments>https://www.osyunwei.com/archives/4823.html#comments</comments>
		<pubDate>Mon, 16 Jul 2012 06:04:43 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian 时间]]></category>
		<category><![CDATA[时间相差8小时]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=4823</guid>
		<description><![CDATA[说明： Debian英文版本在默认安装下，系统使用的是UTC时间（世界标准时间），与北京时间相差8小时（北京时间比UTC时间快8小时）,下面调整设置系统时间为北京时间 1、修改时区 nano /etc/timezone #编辑文件，修改里面的内容为Asia/Shanghai Asia/Shanghai Ctrl+o #保存 Ctrl+x #退出 2、修改本地时间 ln -s /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime #添加软链接，把本地时间设置为Asia/Shanghai 3、禁止系统使用UTC时间 系统运维 www.osyunwei.com 温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 nano /etc/default/rcS  #修改UTC的值为no UTC=no Ctrl+o #保存 Ctrl+x #退出 4.设置当前时间 date -s 07/16/2012  #设置当前日期为2012年7月16日 date -s 14:05  #设置当前时间为14:05分 hwclock --systohc #使BIOS硬件时间与本地系统时间同步 至此，Debian 6.0.5解决系统时间与北京时间相差8小时问题完成 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/4823.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » Debian 6.0.5解决系统时间与北京时间相差8小时问题<p><a rel="bookmark" href="https://www.osyunwei.com/archives/4823.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/4823.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS系统时间与现在时间相差8小时解决方法</title>
		<link>https://www.osyunwei.com/archives/528.html</link>
		<comments>https://www.osyunwei.com/archives/528.html#comments</comments>
		<pubDate>Fri, 28 Oct 2011 02:16:11 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS系统时间]]></category>
		<category><![CDATA[时间相差8小时]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=528</guid>
		<description><![CDATA[很多网友在安装完CentOS系统后发现时间与现在时间相差8小时，这是由于我们在安装系统的时选择的时区是上海，而CentOS默认bios时间是utc时间，所以时间相差了8小时。这个时候的bios的时间和系统的时间是不一致的，一个代表 utc 时间，一个代表cst（＋8时区），即上海时间。 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 下面是同步时间的解决方法： 1、vi /etc/sysconfig/clock   #编辑文件 ZONE="Asia/Shanghai" UTC=false                          #设置为false，硬件时钟不于utc时间一致 ARC=false 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 2、ln -sf /usr/share/zoneinfo/Asia/Shanghai    /etc/localtime    #linux的时区设置为上海 3、ntpdate asia.pool.ntp.org    #对准时间，需要先安装ntp服务器 yum install ntp 4、/sbin/hwclock --systohc   #设置硬件时间和系统时间一致并校准 至此，linux系统时间和计算机硬件时间都是cst时间了，并且为上海时区。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/528.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » CentOS系统时间与现在时间相差8小时解决方法<p><a rel="bookmark" href="https://www.osyunwei.com/archives/528.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/528.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
