如何永久设置Postgres 9.4的时区 [英] How to set timezone for Postgres 9.4 permanently

查看:185
本文介绍了如何永久设置Postgres 9.4的时区的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行Postgres 9.4。每次更改它后,它都会在重启后恢复为默认GMT。

I'm running Postgres 9.4. Every time I change it it's returning to default GMT after I reboot,

> $ psql -c 'show timezone'   

TimeZone

>  US/Central

postgres.conf中是否要添加参数选项?

Is there a parameter option to be added in postgres.conf?

推荐答案

您可以将时区参数设置为 pgsql / data / postgresql .conf 文件:

You can set timezone param into pgsql/data/postgresql.conf file:

timezone = 'US/Central'

,然后重新启动postgresql服务器。

and then restart postgresql sever.

这篇关于如何永久设置Postgres 9.4的时区的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆