如果无法识别我的路径,我如何才能正确 运行 psql 服务器?

How can I run the psql server properly if my path is not recognized?

我正在尝试通过 windows 命令行 运行 PSQL 服务器,指令是:

postgres -d /usr/local/pgsql/data

问题是我的bin文件在program files目录下,所以当我使用这个路径时:

postgres -D C:\Program Files\PostgreSQL\bin

我收到此错误:

postgres : argument invalide : « Files\PostgreSQL\bin »

有人知道我如何 运行 psql 服务器吗?

感谢您的帮助。

在路径两边加上双引号