尝试在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
答案 0 :(得分:0)
通过编辑SET时区' UTC'修正了它在SELECT jaar,
country_name,
omzet,
omzet / LAG(omzet, 1) OVER(PARTITION BY country_name ORDER BY jaar) AS increase_percent
FROM OmzetStijgingDalingPerLand
答案 1 :(得分:0)
如果您正在运行多个postgres实例,也会发生这种情况。当我通过自制软件安装docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts
之后又卸载并安装了更新版本的postgres时,便发生了这种情况。我没意识到的是,postgres@9.4
仍在后台运行
进行验证。打开一个终端并输入:
postgres@9.4
如果找到了多个postgres实例。在相应的pid上发出ps axw | grep postgres
命令。即kill