• 需要安装的软件包:
apt-get install postgresql postgresql-client-9.1 postgresql-common postgresql-9.1 postgresql-client-common
  • 启动数据库服务:
service postgresql start

root@kali:~# su postgres
postgres@kali:/root$ psql
psql (9.1.11)
Type "help" for help. postgres=# # 删除用户:
drop user msf3 ; # 创建用户:
CREATE USER msf3 WITH PASSWORD 'msf3' ; # 创建数据库
CREATE DATABASE msf3 OWNER msf3 ; # 权限分配:
GRANT ALL PRIVILEGES ON DATABASE msf3 to msf3 ;
05-11 22:15