Bonjour à tous ,
j'ai télécharger et installer postgreSQL 13 sur mon MacOS BigSur et tout est ok:
Repertoire d'installation /Library/PostgreSQL/13 qui contient notamment les répertoires
data, bin, ...
N'ayant pas toujours besoins de postgreSQL, qui est toujours en exécution, je décide de l'arrêter et c'est la que les problèmes commencent:
La commande ps auxwww | grep postgres donne
Alors je lance la commande pg_ctl -D /Library/PostgreSQL/13/data stop -mi et cela me donne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 postgres 943 0.0 0.0 4363932 1856 ?? S Wed09PM 0:01.27 /usr/libexec/trustd --agent postgres 940 0.0 0.0 4364620 1404 ?? S Wed09PM 0:00.46 /usr/libexec/secd postgres 939 0.0 0.0 4366824 688 ?? S Wed09PM 0:00.21 /usr/libexec/lsd postgres 938 0.0 0.0 4367080 1148 ?? S Wed09PM 0:00.23 /usr/libexec/pkd postgres 937 0.0 0.0 4330076 8 ?? S Wed09PM 0:00.02 /usr/sbin/cfprefsd agent postgres 936 0.0 0.0 4368972 3080 ?? SN Wed09PM 0:07.71 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdbulkimport -s mdworker-bundle -c MDSImporterBundleFinder -m com.apple.metadata.mdbulkimport postgres 767 0.0 0.0 4301908 380 ?? S Wed09PM 0:04.39 /usr/sbin/distnoted agent postgres 302 0.0 0.0 4488404 404 ?? Ss Wed09PM 0:00.08 postgres: logical replication launcher postgres 301 0.0 0.0 4342584 560 ?? Ss Wed09PM 0:26.20 postgres: stats collector postgres 300 0.0 0.0 4488404 956 ?? Ss Wed09PM 0:04.97 postgres: autovacuum launcher postgres 299 0.0 0.0 4488212 124 ?? Ss Wed09PM 0:01.27 postgres: walwriter postgres 298 0.0 0.0 4488212 204 ?? Ss Wed09PM 0:01.35 postgres: background writer postgres 297 0.0 0.0 4488212 144 ?? Ss Wed09PM 0:00.07 postgres: checkpointer postgres 295 0.0 0.0 4342584 68 ?? Ss Wed09PM 0:00.01 postgres: logger postgres 109 0.0 0.0 4488504 608 ?? Ss Wed09PM 0:05.12 /Library/PostgreSQL/13/bin/postmaster -D/Library/PostgreSQL/13/data xbemous 90244 0.0 0.0 4259008 328 s001 R+ 10:22PM 0:00.00 grep postgres
Puis
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 pg_ctl: could not open PID file "/Library/PostgreSQL/13/data/postmaster.pid": Permission denied
...@matrix ~ % pg_ctl -D /Library/PostgreSQL/13/data stop -m fast donne
Et avec sudo:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 pg_ctl: could not open PID file "/Library/PostgreSQL/13/data/postmaster.pid": Permission deniedFranchement je ne sais plus quoi faire.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 sudo pg_ctl -D /Library/PostgreSQL/13/data stop -mi Password: pg_ctl: cannot be run as root Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process.
Besoins d'aide. Merci d'avance.
Partager