欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg

本篇文章為大家展示了RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg,內(nèi)容簡明扼要并且容易理解,絕對能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。

創(chuàng)新互聯(lián)公司專注于昌圖網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供昌圖營銷型網(wǎng)站建設(shè),昌圖網(wǎng)站制作、昌圖網(wǎng)頁設(shè)計(jì)、昌圖網(wǎng)站官網(wǎng)定制、小程序開發(fā)服務(wù),打造昌圖網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供昌圖網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。

1、RHEL6.5的python版本:

[root@DMS supervisor]# python

Python 2.6.6 (r266:84292, Sep  4 2013, 07:46:00) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2

2、安裝supervisor-3.3.1-py2.6.egg時(shí)報(bào)錯(cuò):提示

Installed /usr/lib/python2.6/site-packages/supervisor-3.3.1-py2.6.egg

Processing dependencies for supervisor==3.3.1

Searching for meld3>=0.6.5

Reading https://pypi.python.org/simple/meld3/

Download error on https://pypi.python.org/simple/meld3/: [Errno -2] Name or service not known -- Some packages may not be found!

Couldn't find index page for 'meld3' (maybe misspelled?)

Scanning index of all packages (this may take a while)

Reading https://pypi.python.org/simple/

Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!

No local packages or working download links found for meld3>=0.6.5

error: Could not find suitable distribution for Requirement.parse('meld3>=0.6.5')

3、從 https://pypi.python.org/simple/meld3下載meld3-0.6.7.tar.gz,解壓python setup.py install安裝。

4、下載安裝setuptools-36.0.1.zip

5、下載安裝supervisor-3.3.1.tar.gz

6、配置文件:

    1)創(chuàng)建/etc/supervisor/conf.d文件夾

    2)supervisord.conf放置于/etc/supervisor/下,其中

        [include]

        files = /etc/supervisor/conf.d/*.conf

    3)所以將待監(jiān)控進(jìn)程以.conf結(jié)尾的配置文件放置在/etc/supervisor/conf.d/目錄下。

7、supervisord.conf中

        [supervisorctl]

        serverurl = http://localhost:9001

        username = root

        password = 123456

        prompt = mysupervisor

用戶名密碼設(shè)置不對的話,執(zhí)行supervisorctl update報(bào)錯(cuò):“Error:Server requires authentication”
8、/etc/supervisor/conf.d/目錄下的配置文件例如adcc.conf[program:sendVer2Com1]

    command = sudo xterm -e python sendVer2Com1.py ttyS1  

//對于字符終端程序,要想啟動(dòng)獨(dú)立的xterm顯示程序運(yùn)行內(nèi)容,需要使用“ xterm -e”

    numprocs = 1 

    process_name=%(program_name)s-%(process_num)s

    user = adcc

    environment= HOME=/home/adcc

//設(shè)置程序運(yùn)行時(shí)需要的環(huán)境變量,如這里:家目錄

    autorestart=true

    redirect_stderr = true

    stopasgroup=true

    killasgroup=true

    directory = /home/adcc/monitor

    stdout_logfile = /etc/supervisor/%(program_name)s.log

    directory = /home/adcc/monitor/bin/

//設(shè)置運(yùn)行進(jìn)程所在的目錄,這樣該進(jìn)程使用相對路徑找配置文件不會(huì)找不到。如:../resource/xxx.ini

上述內(nèi)容就是RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。

網(wǎng)頁標(biāo)題:RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg
本文地址:http://www.chinadenli.net/article12/jigodc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)動(dòng)態(tài)網(wǎng)站建站公司企業(yè)網(wǎng)站制作響應(yīng)式網(wǎng)站網(wǎng)站改版

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

營銷型網(wǎng)站建設(shè)