基于 Centos 8.0,包括系统、存储组件、应用服务等环境。
执行更新,安装必要的包
yum update
yum install python3-devel
yum install python3-psycopg2
yum install supervisor
时区设置
timedatectl set-local-rtc 0
timedatectl set-timezone UTC
yum install nginx
配置及静态文件目录:
/etc/nginx/conf.d/*.conf
/usr/share/nginx/html/
yum install postgresql-server
yum install postgresql*
postgresql-setup --initdb
systemctl enable postgresql.service
systemctl start postgresql.service
配置及重要配置 /var/lib/pgsql/data/*.conf 、 postgresql.conf
timezone = 'UTC'
client_encoding = 'UTF8'
log_min_duration_statement = 5
log_duration = off
log_statement = 'mod'
CREATE DATABASE dinorss OWNER postgres;
host all all 127.0.0.1/32 trust
重要配置 redis.conf
daemonize yes
loglevel warning
logfile "/home/app/logs/redis/sys.log"
maxmemory 2000000000
maxmemory-policy noeviction
pip3 install django
pip3 install certbot
pip3 install gevent
pip3 install gunicorn
更多依赖参考 requirements.txt
Copyright © 2015-2022 BY-NC-ND 4.0