首页 > 编程知识 正文

电脑桌面管理工具,淘宝店铺管理工具

时间:2023-05-05 22:37:22 阅读:274392 作者:4814

一、supervisor 配置 说明:如果只是使用 supervisor 自带的 web,仅如下配置就可以 vim /etc/supervisor/supervisord.conf [inet_http_server] ; inet (TCP) server disabled by defaultport=192.168.5.149:9001 ; ip_address:port specifier, *:port for all ifaceusername=user ; default is no username (open server)password=123 ; default is no password (open server) 二、cesi 地址 GitHub 地址: https://github.com/Gamegos/cesi 三、centos7 下面的安装和配置 cd /usr/localmkdir cesicd cesi/wget https://github.com/gamegos/cesi/releases/download/v2.6.8/cesi-extended.tar.gz -O cesi.tar.gztar -xvf cesi.tar.gzworkon testdemo # 进入 python 的虚拟环境pip install -r requirements.txtnpm install -g n # 升级 node 到最新版本 ,前提 yum -y install npm bzip2n latestcurl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repoyum -y install yarncd ./cesi/ui/yarn installyarn buildcd -cp ./defaults/cesi.conf.toml /etc/cesi.conf.toml # cesi 的配置文件cp ./defaults/cesi.service /lib/systemd/system/cesi.service # cesi 服务vim /lib/systemd/system/cesi.servicesystemctl daemon-reloadsystemctl start cesi.service /lib/systemd/system/cesi.service [Unit]Description=cesi[Service]Environment=ExecStart=/data/virtualenvs/testdemo/优秀的画板/python /usr/local/cesi/cesi/run.py --config-file /etc/cesi.conf.tomlExecReload=/优秀的画板/kill -HUP $MAINPIDKillSignal=TERMUser=rootWorkingDirectory=/usr/local/cesiRestart=on-failure[Install]WantedBy=multi-user.target 四、cesi 配置

nodes 中填写的 信息要跟 supervisor 中配置填写的信息保持一致
vim /etc/cesi.conf.toml

[[nodes]]name = "111111111111111111111111"environment = ""username = "user"password = "123"host = "192.168.5.149"port = "9001"

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。