当前位置:首页 > HIFI > 正文内容

Linux进程管理工具Supervisor使用

tomosak1年前 (2024-03-16)HIFI836

安装

sudo apt install supervisor


进入supervisor配置目录

 cd /etc/supervisor

nano supervisor.conf


添加以下行,开启web管理

[inet_http_server]
port=10.1.11.209:80
username=admin
password=1111

添加程序管理组

 cd /etc/supervisor/conf.d

例如:

nano hifi.conf

添加以下内容

[group:HIFI]
programs=naa,squeezelite
stopasgroup=true

[program:naa]
command=/usr/sbin/networkaudiod
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/networkaudio/naaout.log
stderr_logfile=/opt/networkaudio/naaerr.log
loglvel=info

[program:squeezelite]
command=/usr/bin/squeezelite
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/squeezelite/squeezeliteout.log
stderr_logfile=/opt/squeezelite/squeezeliteerr.log
loglvel=info

保存,运行以下命令更新

supervisorctl update

没有报错基本可以通过10.1.11.209访问web页面了


注意需要把相应程序的自动启动服务关闭

systemctl disable networkaudiod.service

systemctl disable squeezelite.service

扫描二维码推送至手机访问。

版权声明:本文由Androidnews发布,如需转载请注明出处。

本文链接:https://www.androidnews.top/?id=51

分享给朋友:

“Linux进程管理工具Supervisor使用” 的相关文章

Audiophile Linux安装

If you are for example going to use “/dev/sda” disk to create partition for AP-Linux, execute this commands:# fdisk /dev/sda or# cfdisk /dev/sda#...

老陈谈QA390

当别的优秀播放器都卖到3万、4万的价格时,QA390定了一个可能是市面上性价比最高的价格8699,或许还能把“可能”去掉。8699元,还不到某些品牌一条旗舰耳塞的价格,但它且可以把这些耳塞推出一片新天地, 上能推好很多大耳机。为什么QA390要定这么低的价格呢?要从乾龙盛公司的研发说起了, 大家都知...

月光宝盒TVBox解析地址

TVBox类解析地址:单播:https://raw.liucn.cc/box/m.json多播:https://jihulab.com/duomv/apps/-/raw/main/duo.json...

构建自己的moOde播放器

构建自己的moOde播放器

本文档解释了如何moOde-player从源代码构建包。1. Pre conditionsAssumed you performing the build from a running Raspberry Pi OS bullseye.You should have both the moode m...

构建自己的moode-player包

构建自己的moode-player包

1. IntroductionThis repository contains scripts to build the packages containing the software components used in moOde audio player.1.1. Origin and bu...

ARM系列Linux开发板安装moOde、LMS、RoonBridge、NAA变成HIFI播放器

ARM系列Linux开发板安装moOde、LMS、RoonBridge、NAA变成HIFI播放器推荐固件包下载网站:https://github.com/ophub/https://files.kos.org.cn/https://www.armbian.com/修改系统源nano /etc/apt...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。