I'm trying to start the service but it isn't starting... It says:
[....] Starting PostgreSQL 9.6 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2016-10-25 15:24:26 BDT [4118-1] LOG: could not create IPv6 socket: Permission denied 2016-10-25 15:24:26 BDT [4118-2] LOG: could not create IPv4 socket: Permission denied 2016-10-25 15:24:26 BDT [4118-3] WARNING: could not create listen socket for "localhost" 2016-10-25 15:24:26 BDT [4118-4] FATAL: could not create any TCP/IP sockets 2016-10-25 15:24:26 BDT [4118-5] LOG: da[FAILe system is shut down ... failed! failed!
The log file:
2016-10-25 15:25:41 BDT [4330-1] LOG: could not create IPv6 socket: Permission denied
2016-10-25 15:25:41 BDT [4330-2] LOG: could not create IPv4 socket: Permission denied
2016-10-25 15:25:41 BDT [4330-3] WARNING: could not create listen socket for "localhost"
2016-10-25 15:25:41 BDT [4330-4] FATAL: could not create any TCP/IP sockets
2016-10-25 15:25:41 BDT [4330-5] LOG: database system is shut down
What should I do?
sudo netstat -tulpn
andsudo lsof -i
to see what the port and service situation is indeed?