parallels desktop 装linux 时间的问题的解决

首先

查看一下

你的系统和OSX 差了几个小时

我安的是ubuntu linux

差了一个小时

也就是说我OSX时间是            14:20

那么我的虚拟机UTC时间就是   15:20

 

进入Linux 终端

 tzselect

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

 1) Africa

 2) Americas

 3) Antarctica

 4) Arctic Ocean

 5) Asia

 6) Atlantic Ocean

 7) Australia

 8) Europe

 9) Indian Ocean

10) Pacific Ocean

11) none - I want to specify the time zone using the Posix TZ format.

#? GST+1

Please enter a number in range.

#? 11

Please enter the desired value of the TZ environment variable.

For example, GST-10 is a zone named GST that is 10 hours ahead (east) of UTC.

GST+1

 

The following information has been given:

 

TZ='GST+1'

 

Therefore TZ='GST+1' will be used.

Local time is now: Tue Oct 11 15:07:56 GST 2011.

Universal Time is now: Tue Oct 11 16:07:56 UTC 2011.

Is the above information OK?

1) Yes

2) No

#? 1

 

You can make this change permanent for yourself by appending the line

TZ='GST+1'; export TZ

to the file '.profile' in your home directory; then log out and log in again.

 

Here is that TZ value again, this time on standard output so that you

can use the /usr/bin/tzselect command in shell scripts:

GST+1


sudo vi /etc/profile

在最后一行加入 
export TZ="GST+1"
保存 重新启动
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值