how to change postgresql listening port in windows?

后端 未结 1 659
天涯浪人
天涯浪人 2020-12-24 05:56

How do i change the default listening port 5432 of postgresql to another number?

Another question,

What steps do i have do to allow remote r/w access to the

相关标签:
1条回答
  • 2020-12-24 06:24

    Just change the setting in the file postgresql.conf (can be found in the data directory):

    port = 5433             # (change requires restart)
    

    Remote access can be given by changing pg_hba.conf, just add the ip-address. You also have to edit postgresql.conf:

    listen_addresses = '*'
    
    0 讨论(0)
提交回复
热议问题