oracle修改时区无效,Linux 7 修改时区不生效
查看當(dāng)前時(shí)區(qū)
[root@tidb01?~]#?date
Sat?Jun?27?13:58:27?EDT?2020
[root@tidb01?~]#?date?-R
Sat,?27?Jun?2020?13:58:36?-0400
修改時(shí)區(qū)
方法一:
[root@tidb01?~]#?ln?-s?/usr/share/zoneinfo/Asia/Shanghai?/etc/localtime
[root@tidb01?~]#?ls?-l?/etc/localtime
lrwxrwxrwx?1?root?root?35?Jun?28?02:08?/etc/localtime?->?../usr/share/zoneinfo/Asia/Shanghai
方法二:
[root@tidb01?~]#?timedatectl?set-timezone?Asia/Shanghai
方法三:
[root@tidb01?~]#?cat?/etc/profile
[root@tidb01?~]#?cat?.bash_profile
[root@tidb01?~]#?cat?.bash_profile
TZ='Asia/Shanghai';?export?TZ
方法四:
[root@tidb01?~]#?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.
......
查詢時(shí)區(qū)并沒(méi)有修改成功
[root@tidb01?~]#?date
Sat?Jun?27?13:58:50?EDT?2020
嘗試將其他東8區(qū)時(shí)區(qū)操作系統(tǒng)上的Shanghai文件拷貝過(guò)來(lái)
[root@tidb02?~]#?cp?/usr/share/zoneinfo/Asia/Shanghai?.
[root@tidb02?~]#?scp?Shanghai?192.168.30.101:/root
時(shí)區(qū)修改成功
[root@tidb01?~]#?date
Sat?Jun?27?14:23:04?CST?2020
[root@tidb01?~]#?date?-R
Sat,?27?Jun?2020?14:23:13?+0800
歡迎關(guān)注我的微信公眾號(hào)"IT小Chen",共同學(xué)習(xí),共同成長(zhǎng)!!
總結(jié)
以上是生活随笔為你收集整理的oracle修改时区无效,Linux 7 修改时区不生效的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
 
                            
                        - 上一篇: oracle表格颜色,如何在oracle
- 下一篇: 织梦wap.php绑定域名,dedecm
