在非英文版Windows系统上安装Metasploit会出现此类错误:

---------------------------
Error
---------------------------
There has been an error.
Error running D:\T00ls\metasploit/postgresql/bin/psql.exe -U postgres -p 7337 -h localhost -c "ALTER USER postgres PASSWORD '****'" : psql: could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 7337?
could not connect to server: Connection refused (0x0000274D/10061)
    Is the server running on host "localhost" and accepting
    TCP/IP connections on port 7337?
The application will exit now.
---------------------------
确定  
---------------------------

原因:PostgreSQL的缺省locale与SQL_ASCII语句不兼容。 可以"控制面板->区域和语言->格式->英语(美国)":

image

然后执行metasploit-latest-windows-installer.exe。 安装结束后再改回"中文(简体,中国)"。

源链接

Hacking more

...