galera 源碼安裝,galera源碼

來源:互聯網
上載者:User

galera 源碼安裝,galera源碼

---1.安裝galera依賴的主件#echo "192.168.1.25 db00 db00.mysql.com" >>/etc/hostsyum -y install cmake  gcc gcc-c++  autoconf automake zlib*  libxml* \ncurses ncurses-devel libtool  libtool-ltdl-devel* make  bison bison-devel  \openssl-devel libevent-devel \libaio libaio-devel pam-devel boost boost-devel valgrind-devel \libnl-devel popt-devel popt-static bzr----安裝依賴軟體包yum -y install pcre-devel*  boost-devel   check-devel  boost-* nmap-* \nc-* openssl*----安裝scons# python --versionPython 2.6.6rm -rf /soft/ && mkdir /soft/ && cd /softwget http://cznic.dl.sourceforge.net/project/scons/scons/2.3.5/scons-2.3.5.tar.gztar zxvf scons-2.3.5.tar.gz cd scons-2.3.5python2.6  setup.py install ----安裝新版python# whereis pythonpython: /usr/bin/python2.6-config /usr/bin/python2.6 /usr/lib/python2.6 /usr/lib64/python2.6 /usr/include/python2.6 /usr/share/man/man1/python.1.gzrm -rf /usr/bin/pythonvi /usr/bin/yum將#!/usr/bin/python修改為#!/usr/bin/python2.6rm -rf /soft/ && mkdir /soft/ && cd /softtar xvzf Python-2.7.10.tgzcd Python-2.7.10 ./configure  make  -j4 make install  #將新版python設定為預設rm -rf /usr/bin/pythonln -s /usr/local/bin/python2.7 /usr/bin/pythonpython --version結果確認:Python 2.7.10---2.安裝galerarm -rf /soft/ && mkdir /soft/ && cd /softtar xvzf galera-3-25.3.10.tar.gzcd galera-3-25.3.10scons或./scripts/build.sh正確結果顯示:scons: done building targets.cp garb/garbd /data/mysql/bincp libgalera_smm.so /data/mysql/lib/plugin/cp  /soft/galera-3-25.3.10/scripts/mysql/mysql-galera /usr/local  

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.