标签:文件 war pad 安装 没有 自己 ram ica file
yum install supervisor -y更多安装方法详见官方手册:http://www.supervisord.org/installing.html
$ CWD / supervisord.conf $ CWD的/ etc / supervisord.conf /etc/supervisord.conf /etc/supervisor/supervisord.conf
[unix_http_server] file = /tmp/supervisor.sock # 修改sock文件用户和属组,默认0700 chmod = 0777 # 修改sock文件用户和属组,默认为启动supervisord的用户和组 chown = sup:sup # web页面验证所需的用户名。 username = admin password = 123 # 开启在web界面配置管理 [inet_http_server] # web界面的访问地址与端口。 port = 10.0.0.12:9001 # 监听本机所有网卡地址 # port = *:9001 # port = :9001 # 默认不需要用户名 user = admin # 默认不需要密码,密码为明文保存在配置文件中 password = 123 # supervisor服务参数配置 [supervisord] # 日志文件路径,默认/var/log/supervisor/supervisord.log logfile = /var/log/supervisord.log # 日志切割大小,默认50M logfile_maxbytes = 1KB # 切割的日志保留份数,默认10 logfile_backups = 3 # 日志级别,默认info。critical, error, warn, info, debug, trace, blather loglevel = debug # pid文件,默认/run/supervisord.pid pidfile = /var/run/sup/sup.log # 是否后台开启,默认false,true为前台开启 nodaemon = false # 当supervisord守护进程时,切换到此目录。 directory = /app # 程序部分 # 必须包含一个或多个程序部分,以便supervisord知道应该启动和控制哪些程序。标题值是复合值。program ":" program_name [program:redis-6661] # 该程序启动时将运行的命令。可以是绝对路径 command = /app/redis/bin/redis-cli /app/redis/conf/redis-6661.conf # 程序名称 process_name = redis-6661 # 是否自动启动,默认是 autostart = true autorestart = true # 与autorestart同用,如果进程没在root用户停止或意外,其余状态重启program exitcodes = 0,2更多参数详见官网手册:http://www.supervisord.org/configuration.html
[root@redis conf]# ll total 336 -rw-r--r--. 1 root root 46723 Apr 25 20:23 redis -rw-r--r--. 1 root root 46725 Apr 25 21:01 redis-6661.conf -rw-r--r--. 1 root root 46725 Apr 25 21:01 redis-6662.conf -rw-r--r--. 1 root root 46725 Apr 25 21:01 redis-6663.conf -rw-r--r--. 1 root root 46725 Apr 25 21:01 redis-6664.conf -rw-r--r--. 1 root root 46725 Apr 25 21:01 redis-6665.conf -rw-r--r--. 1 root root 46725 Apr 25 21:02 redis-6666.conf
[inet_http_server] port=:19001 username=admin password=1 [supervisorctl] ;serverurl=unix:///tmp/supervisor.sock serverurl=127.0.0.1:19001 username=super password=1 ;prompt=mysupervisor ;history_file=~/.sc_hist [program:redis-6661] directory=/app/redis command=/app/redis/bin/redis-server redis-6661.conf autostart=true autorestart=unexpected exitcodes=0,2 [program:redis-6662] directory=/app/redis command=/app/redis/bin/redis-server redis-6662.conf autostart=true autorestart=unexpected exitcodes=0,2 [program:redis-6663] directory=/app/redis command=/app/redis/bin/redis-server redis-6663.conf autostart=true autorestart=unexpected exitcodes=0,2 [program:redis-6664] directory=/app/redis command=/app/redis/bin/redis-server redis-6664.conf autostart=true autorestart=unexpected exitcodes=0,2 [program:redis-6665] directory=/app/redis command=/app/redis/bin/redis-server redis-6665.conf autostart=true autorestart=unexpected exitcodes=0,2 [program:redis-66646 directory=/app/redis command=/app/redis/bin/redis-server redis-6666.conf autostart=true autorestart=unexpected exitcodes=0,2
标签:文件 war pad 安装 没有 自己 ram ica file
原文地址:https://www.cnblogs.com/LC161616/p/8947382.html