第一步:阿里云官网–服务器管理–安全组,放行端口 9001,同时,宝塔后台 安全,也对 9001端口放行
第二步:宝塔面板,软件商店,安装插件“Supervisor管理器 1.3”
第三步:宝塔面板中,打开“Supervisor管理器 1.3”,配置文件中去掉端口的屏蔽,如果不知道怎么改和配置,直接下载
本文的附件。
第四步:你的芸众网站根目录appbackendmodulessupervisordservicesSupervisor.php,修改为本文附件的内容,你
可以下载后直接覆盖,如果你想细看,究竟修改过那里,你可以打开你自己的和这个修过的,进行对比。
第五步:用SSH 连接你的服务器,这一步非常关键:执行命令:supervisorctl reload
说明一下:supervisorctl reload 意思是:重载配置,supervisorctl 意思是查看进程,supervisorctl stop 意思是停止
第六步:回到你的网站后台,系统—队列服务,看看是不是已经启动,服务器设置中,设置为127.0.0.1 前面不加 http,
刷新后,可能又会变成带 http的,不管他了,原因不详,只要正常就行,注意了“开启多列队分类”不要开启,不要开启。
如果,发现还是没有启动成功,重复上面 第五步!
; Sample supervisor config file. ; ; For more information on the config file, please see: ; http://supervisord.org/configuration.html ; ; Notes: ; - Shell expansion ("~" or "$HOME") is not supported. Environment ; variables can be expanded using this syntax: "%(ENV_HOME)s". ; - Quotes around values are not supported, except in the case of ; the environment= options as shown below. ; - Comments must have a leading space: "a=b ;comment" not "a=b;comment". ; - Command will be truncated if it looks like a config file comment, e.g. ; "command=bash -c 'foo ; bar'" will truncate to "command=bash -c 'foo ". ; ; Warning: ; Paths throughout this example file use /tmp because it is available on most ; systems. You will likely need to change these to locations more appropriate ; for your system. Some systems periodically delete older files in /tmp. ; Notably, if the socket file defined in the [unix_http_server] section below ; is deleted, supervisorctl will be unable to connect to supervisord. [unix_http_server] file=/var/run/supervisor.sock ;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) ; Security Warning: ; The inet HTTP server is not enabled by default. The inet HTTP server is ; enabled by uncommenting the [inet_http_server] section below. The inet ; HTTP server is intended for use within a trusted environment only. It ; should only be bound to localhost or only accessible from within an ; isolated, trusted network. The inet HTTP server does not support any ; form of encryption. The inet HTTP server does not use authentication ; by default (see the username= and password= options to add authentication). ; Never expose the inet HTTP server to the public internet. [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=/var/log/supervisor.log logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB logfile_backups=10 ; # of main logfile backups; 0 means none, default 10 loglevel=info ; log level; default info; others: debug,warn,trace pidfile=/var/run/supervisor.pid nodaemon=false ; start in foreground if true; default false silent=false ; no logs to stdout if true; default false minfds=1024 ; min. avail startup file descriptors; default 1024 minprocs=200 ; min. avail process descriptors;default 200 ;umask=022 ; process file creation umask; default 022 ;user=supervisord ; setuid to this UNIX account at startup; recommended if root ;identifier=supervisor ; supervisord identifier, default is 'supervisor' ;directory=/tmp ; default is not to cd during start ;nocleanup=true ; don't clean up tempfiles at start; default false ;childlogdir=/tmp ; 'AUTO' child log dir, default $TEMP ;environment=KEY="value" ; key value pairs to add to environment ;strip_ansi=false ; strip ansi escape codes in logs; def. false ; The rpcinterface:supervisor section must remain in the config file for ; RPC (supervisorctl/web interface) to work. Additional interfaces may be ; added by defining them in separate [rpcinterface:x] sections. [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface ; The supervisorctl section configures how supervisorctl will connect to ; supervisord. configure it match the settings in either the unix_http_server ; or inet_http_server section. [supervisorctl] serverurl=unix:///var/run/supervisor.sock ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket ;username=chris ; should be same as in [*_http_server] if set ;password=123 ; should be same as in [*_http_server] if set ;prompt=mysupervisor ; cmd line prompt (default "supervisor") ;history_file=~/.sc_history ; use readline history if available ; The sample program section below shows all possible program subsection values. ; Create one or more 'real' program: sections to be able to control them under ; supervisor. ;[program:theprogramname] ;command=/bin/cat ; the program (relative uses PATH, can take args) ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) ;numprocs=1 ; number of processes copies to start (def 1) ;directory=/tmp ; directory to cwd to before exec (def no cwd) ;umask=022 ; umask for process (default None) ;priority=999 ; the relative start priority (default 999) ;autostart=true ; start at supervisord start (default: true) ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) ;startretries=3 ; max # of serial start failures when starting (default 3) ;autorestart=unexpected ; when to restart if exited after running (def: unexpected) ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) ;stopsignal=QUIT ; signal used to kill process (default TERM) ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) ;stopasgroup=false ; send stop signal to the UNIX process group (default false) ;killasgroup=false ; SIGKILL the UNIX process group (def false) ;user=chrism ; setuid to this UNIX account to run the program ;redirect_stderr=true ; redirect proc stderr to stdout (default false) ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) ;stdout_events_enabled=false ; emit events on stdout writes (default false) ;stdout_syslog=false ; send stdout to syslog with process name (default false) ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) ;stderr_events_enabled=false ; emit events on stderr writes (default false) ;stderr_syslog=false ; send stderr to syslog with process name (default false) ;environment=A="1",B="2" ; process environment additions (def no adds) ;serverurl=AUTO ; override serverurl computation (childutils) ; The sample eventlistener section below shows all possible eventlistener ; subsection values. Create one or more 'real' eventlistener: sections to be ; able to handle event notifications sent by supervisord. ;[eventlistener:theeventlistenername] ;command=/bin/eventlistener ; the program (relative uses PATH, can take args) ;process_name=%(program_name)s ; process_name expr (default %(program_name)s) ;numprocs=1 ; number of processes copies to start (def 1) ;events=EVENT ; event notif. types to subscribe to (req'd) ;buffer_size=10 ; event buffer queue size (default 10) ;directory=/tmp ; directory to cwd to before exec (def no cwd) ;umask=022 ; umask for process (default None) ;priority=-1 ; the relative start priority (default -1) ;autostart=true ; start at supervisord start (default: true) ;startsecs=1 ; # of secs prog must stay up to be running (def. 1) ;startretries=3 ; max # of serial start failures when starting (default 3) ;autorestart=unexpected ; autorestart if exited after running (def: unexpected) ;exitcodes=0 ; 'expected' exit codes used with autorestart (default 0) ;stopsignal=QUIT ; signal used to kill process (default TERM) ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10) ;stopasgroup=false ; send stop signal to the UNIX process group (default false) ;killasgroup=false ; SIGKILL the UNIX process group (def false) ;user=chrism ; setuid to this UNIX account to run the program ;redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) ;stdout_events_enabled=false ; emit events on stdout writes (default false) ;stdout_syslog=false ; send stdout to syslog with process name (default false) ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10) ;stderr_events_enabled=false ; emit events on stderr writes (default false) ;stderr_syslog=false ; send stderr to syslog with process name (default false) ;environment=A="1",B="2" ; process environment additions ;serverurl=AUTO ; override serverurl computation (childutils) ; The sample group section below shows all possible group values. Create one ; or more 'real' group: sections to create "heterogeneous" process groups. ;[group:thegroupname] ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions ;priority=999 ; the relative start priority (default 999) ; The [include] section can just contain the "files" setting. This ; setting can list multiple files (separated by whitespace or ; newlines). It can also contain wildcards. The filenames are ; interpreted as relative to this file. Included files *cannot* ; include files themselves. [include] files = /www/server/panel/plugin/supervisor/profile/*.ini
也可以直接下载 配置好了的“Supervisor管理器-配置文件”
Supervisor管理器-配置文件
波比源码 » 教程素材 芸众商城独立版队列服务配置说明 打开“Supervisor管理器 1.3”,配置文件中去掉端口的屏蔽,如果不知道怎么改和配置,直接下载 本文的附件。
order levofloxacin 250mg pills levofloxacin pills
order generic dutasteride celebrex 200mg generic buy ondansetron 4mg sale
aldactone 25mg pills valacyclovir sale order diflucan 200mg for sale
buy ampicillin 500mg online erythromycin tablet erythromycin online order
sildenafil 50mg cheap fildena sale robaxin 500mg pills
suhagra 100mg oral order sildenafil 100mg online estrace us
lamotrigine 50mg canada lamotrigine us tretinoin cheap
buy indocin generic purchase lamisil generic trimox 250mg price
buy arimidex 1 mg for sale biaxin tablet buy viagra sale
acheter 10mg tadalafil en ligne cialis 10mg generique sildenafil 100mg comprimГ©
prednisone 5mg price viagra 100mg order viagra online
isotretinoin 10mg cheap order accutane 40mg online stromectol for sale
buy ramipril generic buy temovate pill oral astelin
hytrin 5mg without prescription azulfidine online sulfasalazine price
order fosamax 70mg pill brand pepcid 40mg purchase pepcid for sale
buy generic benicar olmesartan 20mg cheap buy diamox for sale
tacrolimus 1mg generic purchase tacrolimus sale ursodiol online order
order zyban for sale seroquel 100mg usa buy quetiapine for sale
order molnupiravir 200 mg online cheap molnupiravir buy online prevacid 15mg pill
order zoloft 50mg for sale Cost viagra sildenafil for men over 50
imuran over the counter viagra canada sildenafil 100mg pills for men
tadalafil usa phenazopyridine 200 mg sale order symmetrel 100mg without prescription
brand revia buy femara 2.5mg online order aripiprazole generic
dapsone 100mg drug buy generic dapsone perindopril 4mg uk
buy fluvoxamine without prescription buy cymbalta 20mg online cheap buy glucotrol 10mg sale
accutane 20mg uk buy isotretinoin 20mg online prednisone 10mg cost
buy piracetam buy viagra online cheap viagra 50mg pills
cialis 5mg pills cost cialis 40mg viagra mail order usa
buy furosemide 100mg sale plaquenil online purchase plaquenil online cheap
itraconazole medication buy generic tindamax buy tindamax 300mg
order glycomet tadalafil 5mg drug purchase cialis
buy olanzapine 10mg pills order generic valsartan 80mg order diovan 160mg generic
amlodipine 5mg pills sildenafil online cialis walmart
buy omeprazole 10mg generic best online casinos that payout play online casino real money
buy metoprolol 50mg generic buy vardenafil 20mg online cheap vardenafil brand
levitra online order lyrica generic methylprednisolone brand name
cialis online order buy cialis 5mg pill order viagra 50mg online
buy aristocort sale clarinex medication buy clarinex 5mg generic
order orlistat 60mg online cheap acyclovir oral order acyclovir online cheap
buy generic allopurinol 300mg rosuvastatin online buy zetia online buy
order methotrexate 2.5mg pills methotrexate 10mg usa purchase reglan pill
buy cozaar 50mg generic oral topamax 200mg topamax 100mg canada
order colchicine 0.5mg real money online blackjack real online blackjack
zantac medication mobic pills order generic celecoxib 200mg
oral tamsulosin 0.4mg cheap spironolactone buy aldactone online cheap
tadalafil pill guaranteed cialis overnight delivery usa ciprofloxacin 1000mg generic
buy zocor 10mg without prescription order zocor sale order finasteride 1mg without prescription
metronidazole order online oral flagyl 200mg trimethoprim without prescription
buy cephalexin 125mg online cheap buy cephalexin online cheap purchase erythromycin generic
order ceftin 250mg generic buy careprost generic methocarbamol 500mg oral
viagra sildenafil 150mg sildenafil mail order lamictal 50mg usa
zithromax 500mg over the counter order neurontin online cheap buy neurontin 100mg generic
play roulette online real money real casino slots order modafinil 200mg without prescription
order lasix online cheap buy lasix 100mg sale hydroxychloroquine 200mg pill