How'd you do it?
This section should also tell us any relevant information about the
environment; for example, if an exploit that used to work is failing,
tell us the victim operating system and service versions.
What should happen?
What happens instead?
You might also want to check the last ~1k lines of
/opt/metasploit/apps/pro/engine/config/logs/framework.log or
~/.msf4/logs/framework.log for relevant stack traces
Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).
What OS are you running Metasploit on?

这样连接可以,
但是

改完这个不生效
@rockmelodies: You should create database.yml in the .msf4 folder of your home directory (~/.msf4/database.yml)
@rockmelodies:你应该在主目录的.msf4文件夹中创建database.yml
~/.msf4/database.yml
就按照上面的要求配置了出现了这个问题
这是我的配置
是不是我的配置有问题
就按照上面的要求配置了出现了这个问题

这是我的配置

是不是我的配置有问题
Let me translate these words for people who could help.
Sorry, this friend maybe not familiar with the OpenSource community, he is an end-user maybe...
就按照上面的要求配置了出现了这个问题
I followed the rules above to configure my Metasploit, but an error occurs

这是我的配置
this is my config file:

是不是我的配置有问题
Is there anyone who could tell me whether my config file is wrong? and thank you guys sincerely!
You need to replace development with production
用production替换development
development -> production
e.g
production:
adapter: postgresql
database: msf
username: msf
password: lololol
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5
thinks! 非常感谢!问题解决了
Thank you very much. The problem has been solved
Most helpful comment
You need to replace
developmentwithproduction用production替换development
development -> production
e.g