跳至内容
菜单
此问题已终结
1 回复
6383 查看

Hi, Im triying to install and configure postgresql in my local server, but when I try to log with user postgres I get the following: sudo su - postgres Unknown id: -

I've read that this problem ca be fixed with this command: sudo apt-get install postgresql libpq-dev

...but I'm still getting thee error

What am I missing? Please help me

Thanks

形象
丢弃

Do you have postgresql installed?

What do you get when you type: ps -C postgres ?

编写者

This is what I get: PID TTY TIME CMD 4752 ? 00:00:02 postgres 4754 ? 00:00:05 postgres 4755 ? 00:00:04 postgres 4756 ? 00:00:04 postgres 4757 ? 00:00:00 postgres

最佳答案

Try to completely remove postgres with:

sudo apt-get --purge autoremove postgresql*

Reinstall postgres.

形象
丢弃
编写者

Thanks for the answer, unfortunately the error persits.

Find a way to completely uninstall postgresql (and deleting all his related folders), and reinstall it.

相关帖文 回复 查看 活动
0
2月 25
1654
2
1月 25
8332
2
1月 24
10138
7
1月 24
49144
0
3月 23
2174