[英]Postgres error "invalid value for parameter "TimeZone": "UTC""
[英]Failed to connect to the database: PG::InvalidParameterValue: ERROR: invalid value for parameter “TimeZone”: “UTC” : SET time zone 'UTC'
試圖在Arch Linux中運行metasploit即時消息
[root@archserver ~]# msfconsole
[-] Failed to connect to the database:
PG::InvalidParameterValue: ERROR: invalid value for parameter
"TimeZone": "UTC" : SET time zone 'UTC'
完成Postgres配置並創建數據庫
我的database.yml是
production:
adapter: postgresql
database: msf
username: root
password: root
host: localhost
port: 5432
pool: 5
timeout: 5
通過在/opt/metasploit/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/postgresql_adapter.rb
編輯SET時區'UTC'進行了/opt/metasploit/vendor/bundle/ruby/2.4.0/gems/activerecord-4.2.10/lib/active_record/connection_adapters/postgresql_adapter.rb
如果您有多個postgres實例正在運行,也會發生這種情況。 當我通過自制軟件安裝postgres@9.4
,然后又卸載並安裝了更新版本的postgres時,便發生了這種情況。 我沒意識到的是, postgres@9.4
仍在后台運行
核實。 打開一個終端並輸入:
ps axw | grep postgres
如果找到多個postgres實例。 在相應的pid上發出kill
命令。 即kill 234
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.