centos 7 Metasploit安装及配置数据库 postgresql 10(For Metasploit)

centos 7 Metasploit安装及配置数据库 postgresql 10(For Metasploit) 安装 Metasploit 执行下面命令 curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ chmod 755 msfinstall && \ ./msfinstall 完成之后自动打开msf窗口 输入 msf > db_status 显示数据库未连接。 ############################################################################### 安装配置数据库 创建用户 [root@localhost ~]#useradd postgres 配置你的yum存储库 [root@localhost ~]# vim /etc/yum.repos.d/CentOS-Base.repo [base] 和[updates] 区段之间添加: exclude=postgresql* 安装pg的rpm文件 [root@localhost ~]# yum localinstall https://download.postgresql.org/pub/repos/yum/testing/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm 安装pg数据库 [root@localhost ~]# yum list postgresql* [root@localhost ~]# yum install postgresql10-server.x86_64 [root@localhost ~]# mkdir postgres /var/lib/pgsql/10/data 初始化数据库 [root@localhost ~]# /usr/pgsql-10/bin/postgresql10-s...