ITPub博客

首页 > Linux操作系统 > Linux操作系统 > how to change os timezone parameter

how to change os timezone parameter

原创 Linux操作系统 作者:fenglixiang 时间:2010-04-28 13:40:59 0 删除 编辑

 

转载:

NAME
      set_parms - set system initial identity parameters: hostname,
      date/time, root password, and networking

 SYNOPSIS
      set_parms initial
      set_parms hostname
      set_parms timezone
      set_parms date_time
      set_parms ip_address
      set_parms addl_netwrk
      set_parms locale
     
     
timezone       Select a timezone based on your country of location.
                       Also allows you to set a user-supplied timezone.  The   system must be rebooted for any change to take effect.
                    
                    

labdbs[/]#set_parms timezone
_______________________________________________________________________________

The following procedure enables you to set the time zone.
Select your location from the following list:

  1) North America or Hawaii

  2) Central America

  3) South America

  4) Europe

  5) Africa

  6) Asia

  7) Australia, New Zealand

  8) Russia / CIS
_______________________________________________________________________________


Enter the number for your location (1-7) then press [Enter] 6
_______________________________________________________________________________

Select your time zone from the following list:

  1) Saudi Arabia, Syria               |  7) Phillipines, Hong Kong, Eastern China, Taiwan
                                       |
  2) India                             |  8) Japan
                                       |
  3) Pakistan                          |  9) Korea
                                       |
  4) Thailand                          | 10) Unlisted time zone
                                       |
  5) Singapore                         | 11) Previous menu
                                       |
  6) Pacific Standard Time, Malaysia, Singapore |
_______________________________________________________________________________

Enter the number for your time zone (1 - 11), then press [Enter] 7
_______________________________________________________________________________

You have selected:

   Phillipines, Hong Kong, Eastern China, Taiwan (EAT-8).
_______________________________________________________________________________

Is this correct?

Press [y] for yes or [n] for no, then press [Enter] y

check 2 files and reboot os(shutdown -ry 0):
labdbs[/]#more /etc/TIMEZONE
TZ=EAT-8
export TZ
labdbs[/etc]#more /etc/default/tz
EAT-8
labdbs[/etc]#shutdown -ry 0

http://space.itpub.net/9252210/viewspace-661545

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9524377/viewspace-661549/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 日记
请登录后发表评论 登录
全部评论

注册时间:2009-02-19

  • 博文量
    47
  • 访问量
    92827