在centos上安裝codis出錯
阿新 • • 發佈:2018-12-17
安裝時問題:
首先安裝codis時,
1,我從windows上clone程式碼,傳送到centos上,但是發現檔案格式改變了,出錯
2,打包下載,上傳到centos上,錯誤
最後當我在centos上clone程式碼時,連線就出錯:
fatal: unable to access 'https://github.com/CodisLabs/codis.git/': SSL connect error
http failed
這樣的原因是因為git版本過低,需要更新git工具。
git工具更新:
># yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc ># yum install gcc perl-ExtUtils-MakeMaker ># yum remove git ># wget https://github.com/git/git/archive/v2.2.1.tar.gz ># tar zxvf v2.2.1.tar.gz ># cd git-2.2.1 ># make configure ># ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv ># make all doc ># make install install-doc install-html ># echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc ># source /etc/bashrc ># git --version >git version 2.2.1
在git更新時錯誤:
/bin/sh: line 1: xmlto: command not found
解決方法:
yum install xmlto
之後在進行下載就可以了