postgresql 삭제

Published by onesixx on

http://dbrang.tistory.com/737
https://www.lesstif.com/pages/viewpage.action?pageId=27984899

1. Service 중지

sudo systemctl stop postgresql-9.5

2. Data 폴더 삭제

rm -rf /var/lib/pgsql

자동 시작 해제

chkconfig postgresql-9.5 off

    ※ 수동 설정 시 dbrang.tistory.com/841 내용에서 삭제.

— init 파일 삭제

rm -f /etc/init.d/postgresql-9.5

잡다한 폴더 삭제

sudo find / -name '9.5' 2>/dev/null

sudo rm -rf /usr/share/postgresql 
sudo rm -rf /etc/init.d/postgresql

3. User 삭제

sudo userdel postgres

보통  postgres그룹도 함께 삭제됨

4. Package 삭제

sudo apt remove "postgresql*"
sudo apt --purge remove "postgresql*"
sudo apt autoremove
Categories: Postgresql

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x