在OS X上,我无法找到使用命令行重启postgresql以应用pg_hba.conf中的更改。我尝试了来自网页和文档的各种命令。如何正确地执行操作?
编辑:尝试查找路径的响应如下:
TheKotik 73454 0.0 0.0 2619360 804 ?? S 7:20PM 0:01.57 /Applications/Postgres.app/Contents/Versions/9.6/bin/postgres -D /Users/TheKotik/Library/Application Support/Postgres/var-9.6 -p 5432
postgresql
公式。 - Renat Gatinbrew services list
获取正确的服务名称,然后使用brew services restart <service name>
命令来重启服务。例如:brew services restart postgresql@12
。 - Mahendran Mookkiah