您好,登錄后才能下訂單哦!
本篇文章為大家展示了RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過(guò)這篇文章的詳細(xì)介紹希望你能有所收獲。
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è)置不對(duì)的話,執(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
//對(duì)于字符終端程序,要想啟動(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)程使用相對(duì)路徑找配置文件不會(huì)找不到。如:../resource/xxx.ini
上述內(nèi)容就是RHEL6.5怎樣安裝supervisor-3.3.1-py2.6.egg,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注億速云行業(yè)資訊頻道。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。