Skip to main content
  1. Posts/

Supervisor Description

121 words·1 min
command
Table of Contents

Supervisor管理
#

在linux服务器上部署了node项目,使用supervisor进行管理

要使更新的配置得以应用,需要重新启动supervisor服务。具体操作如下:

二、更新新的配置到supervisord

配置文件: /etc/supervisord.conf
supervisorctl update

三、重新启动配置中的所有程序

supervisorctl reload

四、启动某个进程(program_name=你配置中写的程序名称)

supervisorctl start program_name

五、查看正在守候的进程

supervisorctl

六、停止某一进程 (program_name=你配置中写的程序名称)

supervisorctl stop program_name

七、重启某一进程 (program_name=你配置中写的程序名称)

supervisorctl restart program_name

Supervisor 配置
#

;[program:vocalprint]
;directory=/home/uploadvoice														; directory to cwd to before exec (def no cwd)
;command=/home/uploadvoice/vocalprint  									; the program (relative uses PATH, can take args)
;autostart=true																						; start at supervisord start (default: true)    
;startsecs=10																						; # of secs prog must stay up to be running (def. 1)
;autorestart=unexpected																	; when to restart if exited after running (def: unexpected)
;startretries=3																					; max # of serial start failures when starting (default 3)
;redirect_stderr=true																		; redirect proc stderr to stdout (default false) 
;stdout_logfile=/mnt/data/supervisor/vocalprint.log		; stdout log path, NONE for none; default AUTO

;[include]
;files = relative/directory/*.ini

Related

Install Rust
477 words·3 mins
Rust
Macos # https://www.rust-lang.org/tools/install Centos 7 # Note: Before installing Rust, make sure that the system has installed C and C++ compilers, as well as other necessary dependencies.
Rust 宏使用方法以及属性说明
468 words·3 mins
Rust
#[derive(Debug)] 是一个 Rust 内置的属性,用于为结构体或枚举类型自动生成 Debug trait 的实现。
Rust 生命周期参数及Trait的说明
496 words·3 mins
Rust
use std::fmt; // 结构体实现了 Display trait, 和实现 Debug trait.
数据结构&控制结构实现原理
564 words·3 mins
Golang
Map 扩容条件与操作原理 # 负载因子 > 6.
How Networks work 笔记
119 words·1 min
Book Note
《How Networks work》 # 第一章 浏览器生成消息 # 浏览器的第一步工作就是对URL进行解析