ubuntu部署postgreSQL数据库
生活随笔
收集整理的這篇文章主要介紹了
ubuntu部署postgreSQL数据库
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
選擇最簡單方式,用root身份。
apt-get update apt-get install postgresql postgresql-client默認(rèn)創(chuàng)建一個數(shù)據(jù)庫超級用戶 postgres,密碼為空。
su postgres進入該用戶下,開啟數(shù)據(jù)庫服務(wù):
/etc/init.d/postgresql start # 開啟 /etc/init.d/postgresql stop # 關(guān)閉 /etc/init.d/postgresql restart # 重啟進入psql命令:
修改密碼:
psql -U postgres alter user postgres with password 'postgres';?
總結(jié)
以上是生活随笔為你收集整理的ubuntu部署postgreSQL数据库的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下载交通图片数据集CitySc
- 下一篇: 基于python和postgreSQL存