安装时问题:
首先安装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
之后在进行下载就可以了