欧美日韩国产一区,亚洲一区视频,色综合久久久久,私密按摩师舌头伸进去了,99re6这里只有精品,夜夜性日日交xxx性hd

手動安裝supervisor進程守護

  • • 發表于 4年前
  • • 作者 尐吖頭噯
  • • 7329 人瀏覽
  • • 0 條評論
  • • 最后編輯時間 4年前
  • • 來自 [技 術]

原創聲明:本文為作者原創,未經允許不得轉載,經授權轉載需注明作者和出處

最近安裝CRMEB多商戶的時候,需要用到supervisor進程守護,官方只有寶塔安裝,自己手動安裝記錄一下。
點擊 多商戶源碼 了解,賬號 demo 密碼 crmeb.com,
更多其他項目點擊:了解更多
在這里插入圖片描述
正文開始:

  1. 安裝supervisor

    1.1.安裝python的setuptools庫

    yum install python-setuptools

    1.2.通過setuptools中的 easy_install 安裝supervisor

    easy_install supervisor

  2. 創建配置文件(兩種方法都可以)

    2.1. vi /etc/supervisor.conf

    2.2. 命令 echo_supervisord_conf > /etc/supervisor.conf

  3. 修改配置文件
    3.1. 在主配置文件最后增加

     [include]
     files = /www/server/supervisor/profile/*.ini
    

    3.2. 在/www/server/supervisor/profile/路徑下創建子配置文件并添加信息(守護進程)
    3.3. 創建swoole守護 vim merchant_swoole.ini

         ;監控程序名字
         [program:merchant-swoole]
         process_name=%(program_name)s_%(process_num)02d
    
         ;要用 supervisor 管理的程序指令
         command=php /data/www/crmeb_merchant/think swoole restart
    
         ;是否自動啟動
         autostart=true
    
         ;是否自動重啟動
         autorestart=true
         numprocs=8
    
         ;是否重定向錯誤
         redirect_stderr=true
    
         ;重定向到指定路徑的日志文件
         stdout_logfile=/data/www/supervisor.log
    

    3.4. 創建隊列守護 vim merchant_swoole.ini

         ;監控程序名字
         [program:merchant-queue]
         process_name=%(program_name)s_%(process_num)02d
    
         ;要用 supervisor 管理的程序指令
         command=php /data/www/crmeb_merchant/think queue:work  --tries=3
    
         ;是否自動啟動
         autostart=true
    
         ;是否自動重啟動
         autorestart=true
         numprocs=8
    
         ;是否重定向錯誤
         redirect_stderr=true
    
         ;重定向到指定路徑的日志文件
         stdout_logfile=/data/www/supervisor.log
    
  4. 查看是否啟動守護進程 ps -ef | grep think
    501 84001 83800   0  9:40上午 ttys002    0:00.70 php /Users/inuo/Code/Work/crmeb_merchant/think queue:work --tries
    501 84197 84004   0 10:04上午 ttys003    0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox think
    501 84165 84122   0 10:04上午 ttys004    0:00.12 php /Users/inuo/Code/Work/crmeb_merchant/think swoole restart
    501 84166 84165   0 10:04上午 ttys004    0:00.01 php /Users/inuo/Code/Work/crmeb_merchant/think swoole restart
    

這里就可以看到,已經啟動了。

分享到:
0條評論
Ctrl+Enter
作者

尐吖頭噯

尐吖頭噯

APP:0 帖子:4 回復:0 積分:22

已加入社區[2065]天

選擇一種姿態,活到無可替代

作者詳情》
Top