安装redis
# 安装 redis
yum install redis
# 启动 redis
systemctl start redis
# 加入开机启动
chkconfig redis on
安装 postgresql
sudo yum install -y postgresql-server
# 初始化
postgresql-setup initdb
# 修改配置
vi /var/lib/pgsql/data/pg_hba.conf
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# 启动
systemctl start postgresql
# 创建 账号sentry 密码 sentry 数据库 sentry
[root@localhost ~]# sudo su - postgres
-bash-4.2$ psql
psql (9.2.24)
输入 "help" 来获取帮助信息.
postgres=# create user sentry with password 'sentry';
CREATE ROLE
postgres=# CREATE DATABASE sentry OWNER sentry;
CREATE DATABASE
postgres=# GRANT ALL PRIVILEGES ON DATABASE sentry to sentry;
GRANT
postgres=# \q
-bash-4.2$ exit
#重启
systemctl restart postgresql
安装sqlite3
# 系统没有 sqllite 的可以执行这个操作
wget https://www.sqlite.org/2019/sqlite-autoconf-3270200.tar.gz