歡迎您光臨本站 註冊首頁

centos6.2下func客戶端安裝筆記

←手機掃碼閱讀     火星人 @ 2014-03-08 , reply:0

(腳本還未測試運行,僅為手動安裝過程的總結)


因由:centos6.2運行原centos5的func安裝腳本出錯,原centos5搭配的func版本為0.25 1.service funcd start報funcd dead but pid file exist 2.service funcd start無報錯,但無進程,埠也沒起來 懷疑 1.python版本:centos6.2自帶python2.6.6,原centos5的func安裝腳本又安裝了python2.5.1 直接yum -y install func/certmaster 報英文:當前python為2.6,支持版本為2.4 後來查相關資料,與python版本無關

2.找另一台測試機,直接安裝func/certmaster0.28版
pyOpenSSL無法python setup.py install安裝 改為直接yum -y install pyOpenSSL-0.10 安裝成功,啟動不出錯 問題解決 線上伺服器直接安裝0.28func/certmaster,問題解決 會是func版本問題嗎? 安裝腳本ins_func_centos6.sh #!/bin/sh #a scripts to install func 0.28 in CentOS 6.2 #zhangmig@gmail.com #2012-03-31


if [ -d "/home/install/func" ];then echo "func had been install in this server" fi
mkdir -p /home/install/func cd /home/install/func _pwd=`pwd` _url="http://soft_download_url"
#Install gdbm/gdbm-devel ins_status=`rpm -qa|grep gdbm|wc -l` if [ $ins_status -lt "2" ];then yum -y install gdbm gdbm-devel fi #檢查gdbm包,未檢查到2個包就安裝,這個判斷感覺不成熟
#Install pyOpenSSL yum -y install pyOpenSSL-0.10


#Install func wget $_url/func_centos6/certmaster-0.28.tar.gz tar zxvf certmaster-0.28.tar.gz cd certmaster-0.28 /usr/bin/python setup.py install
cd $_pwd wget $_url/func_centos6/func-0.28.tar.gz tar zxvf func-0.28.tar.gz cd func-0.28 /usr/bin/python setup.py install
#Custom configure file sed -i 's/'`hostname`'//g' /etc/hosts cd /etc/certmaster wget -N $_url/func/certmaster.conf wget -N $_url/func/minion.conf
cd /etc/func sed -i -e '/^listen_port/{ s/51234/109/; }' minion.conf

#自定義func監聽埠為109
sed -i "s/^minion_name/#minion_name/g" minion.conf echo "minion_name = `hostname`" >> minion.conf
/sbin/chkconfig --level 345 funcd on /sbin/chkconfig --level 345 certmaster on /sbin/service funcd start /sbin/service certmaster start
echo "========================" echo "====install complete====" echo "========================"


[火星人 ] centos6.2下func客戶端安裝筆記已經有521次圍觀

http://coctec.com/docs/linux/show-post-46399.html