宁波企业网站制作要多少钱,创建自己的网站要钱吗,wordpress 媒体库多选,电影资源网站建设Background CeSi 是 Supervisor 官方推荐的集中化管理 Supervisor 实例的 Web UI#xff0c;该工具是用 Python 编写#xff0c;基于 Flask Web 框架 。Superviosr 自带的 Web UI 不支持跨机器管理Supervisor 进程#xff0c;功能比较简单#xff0c;通过 CeSi 可以集中管理…Background CeSi 是 Supervisor 官方推荐的集中化管理 Supervisor 实例的 Web UI该工具是用 Python 编写基于 Flask Web 框架 。Superviosr 自带的 Web UI 不支持跨机器管理Supervisor 进程功能比较简单通过 CeSi 可以集中管理各个服务器节点的进程在 Web 界面就可以轻松管理各个服务的启动、关闭、重启等方便使用。当前部署环境CentOS7.9、Python3.7.8 1、部署环境
itemversionCentos7.9Python3.7.8Flask2.2.5Flask-SQLAlchemy2.5.1psycopg2-binary2.8.5PyMySQL0.9.3SQLAlchemy1.4.48CeSi2.7.1
Supervisor官方文档地址http://supervisord.org/plugins.html#dashboards-and-tools-for-multiple-supervisor-instances Cesi git地址https://github.com/gamegos/cesi
最终效果
2、安装依赖
yum install -y git wget epel-release npm bzip2
curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
yum install -y yarn3、部署CeSi
cd /opt/
wget https://github.com/gamegos/cesi/releases/download/v2.7.1/cesi-extended.tar.gz
cd cesi/
pip3 install -r requirements.txt
cd /opt/cesi/ui/
yarn install
yarn build4、配置CeSi
创建日志目录
mkdir -p /opt/cesi/logs//etc/cesi.conf.toml
# This is the CeSIs own configuration.
[cesi]
# Database Uri
database sqlite:///users.db # Relative path
# Etc
#database sqlite:opt/cesi/ version /users.db # Absolute path
#database postgres://user:passwordlocalhost:5432/database_name
#database mysqlpymysql://user:passwordlocalhost:3306/database_name
activity_log /opt/cesi/logs/activity.log # File path for CeSI logs
admin_username admin # Username of admin user
admin_password admin # Password of admin user# This is the definition section for new supervisord node.
# [[nodes]]
# name api # (String) Unique name for supervisord node.
# environment # (String) The environment name provides logical grouping of supervisord nodes. It can be used as filtering option in the UI.
# username # (String) Username of the XML-RPC interface of supervisord Set nothing if no username is configured
# password # (String) Password of the XML-RPC interface of supervisord. Set nothing if no username is configured
# host 127.0.0.1 # (String) Host of the XML-RPC interface of supervisord
# port 9001 # (String) Port of the XML-RPC interface of supervisord# Default supervisord nodes
[[nodes]]
name elephant
environment dev
username admin
password admin
host elephant
port 9001[[nodes]]
name test
environment test
username admin
password admin
host test
port 9001[[nodes]]
name app
environment prod
username admin
password admin
host app
port 9001[[nodes]]
name app01
environment prod
username admin
password admin
host app01
port 9001/etc/systemd/system/cesi.service
[Unit]
Descriptioncesi[Service]
Environment
ExecStart/usr/bin/python3 /opt/cesi/cesi/run.py --config-file /etc/cesi.conf.toml
ExecReload/bin/kill -HUP $MAINPID
KillSignalTERM
Userroot
WorkingDirectory/opt/cesiRestarton-failure[Install]
WantedBymulti-user.target配置系统管理
systemctl daemon-reload
systemctl enable cesi5、启动CeSi
systemctl start cesi
# 启动正常查看信息无报错有报错根据报错信息排查解决
systemctl status cesi6、访问CeSi 浏览器访问 http://IP:5000默认用户名/密码admin/admin注意默认用户名密码不要改改了进不去我在这里踩坑了