termux 安装supervisor

这篇博客介绍了如何在Termux环境下安装和配置Supervisor,包括安装Python,使用pip安装Supervisor,创建配置文件,启动Supervisor服务,以及添加和管理进程如nginx、php-fpm和mariadb。

安卓开发环境2 for phper

安装说明

使用python工具,管理环境启动,以免每次单独启动

安装ptyhon

pip install supervisor
安装步骤
1.mkdir …/etc/supervisor.d/
2.vim …/etc/supervisord.conf
参考配置

;[unix_http_server]
;file=/data/data/com.termux/files/usr/var/run/supervisor.sock ; the path to the socket file
;chmod=0700 ; socket file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; default is no username (open server)
;password=123 ; default is no password (open server)

[inet_http_server] ; inet (TCP) server disabled by default
port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
;username=user ; default is no username (open server)
;password=123 ; default is no password (open server)

[supervisord]
logfile=/usr/local/var/log/supervisord.log ; main log file; default $CWD/supervisord.log
logfile_maxbytes=50MB ; max main logfile bytes b

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值