I used ‘sudo apt-get autoremove postgres’ to uninstall the postgresql database on my local server. and I used ‘sudo netstat -anpt’ to find the the postgres is still there and is running? Why? Anybody to correct my understanding?
I used ‘sudo apt-get autoremove postgres’ to uninstall the postgresql database on my local
Share
It’s because a running process is in memory so it’s independent of what’s happening on the disk. It only matters if the running process needs to load something that’s been removed. All you need to do is find the process id (
ps -aux) thenkill -9 <pid>.