I'm using Arch. For me worked: I ran (inside postgres shell): initdb -D '/var/lib/postgres/data' The data folder was full with several files and then I restarted the server: #systemctl restart postgresql.service Then I checked: #systemctl status postgresql.service Everything was fine, now I proceeded to run in the postgres shell: psql And bingo!!! Thanks for the video!!!
@@HackerStation Starting PostgreSQL 13 database server: mainError: /usr/lib/postgresql/13/bin/pg_ctl /usr/lib/postgresql/13/bin/pg_ctl start -D /var/lib/postgresql/13/main -l /var/log/postgresql/postgresql-13-main.log -s -o -c config_file="/etc/postgresql/13/main/postgresql.conf" exited with status 1: 2021-10-30 17:43:32.027 UTC [405] FATAL: could not create shared memory segment: Function not implemented 2021-10-30 17:43:32.027 UTC [405] DETAIL: Failed system call was shmget(key=2443665, size=40, 03600). 2021-10-30 17:43:32.027 UTC [405] LOG: database system is shut down pg_ctl: could not start server Examine the log output. ... failed! failed!
I'm using Arch. For me worked:
I ran (inside postgres shell):
initdb -D '/var/lib/postgres/data'
The data folder was full with several files and then I restarted the server:
#systemctl restart postgresql.service
Then I checked:
#systemctl status postgresql.service
Everything was fine, now I proceeded to run in the postgres shell:
psql
And bingo!!!
Thanks for the video!!!
mann..... a big thanks... it solve my problem... im trying this to solve from yesterday... and then i found u.. :)
centos 7. Not worked !
@@HackerStation still error like your title
@@HackerStation Starting PostgreSQL 13 database server: mainError: /usr/lib/postgresql/13/bin/pg_ctl /usr/lib/postgresql/13/bin/pg_ctl start -D /var/lib/postgresql/13/main -l /var/log/postgresql/postgresql-13-main.log -s -o -c config_file="/etc/postgresql/13/main/postgresql.conf" exited with status 1: 2021-10-30 17:43:32.027 UTC [405] FATAL: could not create shared memory segment: Function not implemented 2021-10-30 17:43:32.027 UTC [405] DETAIL: Failed system call was shmget(key=2443665, size=40, 03600). 2021-10-30 17:43:32.027 UTC [405] LOG: database system is shut down pg_ctl: could not start server Examine the log output. ... failed!
failed!
asking for password for postgres
it worked
dude, ty u so much!!!