OpenStack之安装kvm+编译安装libvirt+解决遇到的问题

http://libvirt.org/sources/ 下载libvirt进行编译安装

1.简单编译安装libvirt

[email protected]:/tool#tar -xf libvirt-1.3.4.tar.gz

[email protected]:/tool# cd libvirt-1.3.4

[email protected]:/tool/libvirt-1.3.4#

Ubuntu缺省情况下,没有提供C/C++的编译环境,所以还需手动安装如下包
[email protected]:/tool/libvirt-1.3.4#apt-get install build-essential

[email protected]:/tool/libvirt-1.3.4#apt-get install libpciaccess-dev libyajl-dev libxml2 libxml2-dev gnutls-bin libgnutls-dev

因为libvirt中包含有支持python 的库

[email protected]:/tool/libvirt-1.3.4#apt-get install libdevmapper  libdevmapper-dev python-dev libnl-dev pkg-config

编译安装libvirt-1.3.4,这样在执行./configure时就不会报错了

[email protected]:/tool/libvirt-1.3.4#./configure --prefix=/usr --localstatedir=/var  --sysconfdir=/etc

..............

..............

onfig.status: creating po/Makefile

configure:

configure: Configuration summary

configure: =====================

configure:

configure: Drivers

configure:

configure:       Xen: no

configure:      QEMU: yes

configure:       UML: yes

configure:    OpenVZ: yes

configure:    VMware: yes

configure:      VBox: yes

configure:    XenAPI: no

configure:  xenlight: no

configure:       LXC: yes

configure:      PHYP: no

configure:       ESX: no

configure:   Hyper-V: no

configure:        vz: no

configure:     Bhyve: no

configure:      Test: yes

configure:    Remote: yes

configure:   Network: yes

configure:  Libvirtd: yes

configure: Interface: yes

configure:   macvtap: yes

configure:  virtport: yes

configure:

configure: Storage Drivers

configure:

configure:      Dir: yes

configure:       FS: yes

configure:    NetFS: yes

configure:      LVM: yes

configure:    iSCSI: no

configure:     SCSI: yes

configure:    mpath: yes

configure:     Disk: no

configure:      RBD: no

configure: Sheepdog: no

configure:  Gluster: no

configure:      ZFS: no

configure:

configure: Security Drivers

configure:

configure:  SELinux: yes (/selinux)

configure: AppArmor: no (install profiles: no)

configure:

configure: Driver Loadable Modules

configure:

configure:   dlopen:  -ldl

configure:

configure: Libraries

configure:

configure:   apparmor: no

configure:       attr: no

configure:      audit: no

configure:      avahi: no

configure:      blkid: no

configure:      capng: no

configure:       curl: no

configure:       dbus: no

configure:       fuse: no

configure:  glusterfs: no

configure:        hal: no

configure:      netcf: no

configure:    numactl: no

configure:  openwsman: no

configure:  pciaccess: yes (CFLAGS=‘ ‘ LIBS=‘-lpciaccess  ‘)

configure:   readline: no

configure:    sanlock: no

configure:       sasl: no

configure:    selinux: yes (CFLAGS=‘‘ LIBS=‘-lselinux‘)

configure:       ssh2: no

configure: systemd_daemon: no

configure:       udev: yes (CFLAGS=‘ ‘ LIBS=‘-ludev  ‘)

configure: wireshark_dissector: no

configure:        nss: yes

configure:       yajl: yes (CFLAGS=‘‘ LIBS=‘-lyajl‘)

configure:   libxml: -I/usr/include/libxml2   -lxml2

configure:   dlopen: -ldl

configure: openwsman: no

configure:   gnutls: -I/usr/include/p11-kit-1   -DGCRYPT_NO_DEPRECATED -lgnutls   -lgcrypt

configure: firewalld: no

configure:   polkit: no

configure:      xen: no

configure:   xenapi: no

configure: xenlight: no

configure:     pcap: no

configure:       nl:   -lnl

configure:    mscom: no

configure:      xdr:

configure:      rbd: no

configure: pm-utils: yes

configure:

configure: Test suite

configure:

configure:          Coverage: no

configure:         Alloc OOM: no

configure:

configure: Miscellaneous

configure:

configure:              Debug: yes

configure:        Use -Werror: no

configure:      Warning Flags:  -W -Waddress -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmain -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-type -Wsequence-point -Wshadow -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-missing-field-initializers -Wno-sign-compare -Wjump-misses-init -Wno-format-nonliteral -Wframe-larger-than=4096 -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -fstack-protector-all

configure:             DTrace: no

configure:              numad: no

configure:        XML Catalog: /etc/xml/catalog

configure:        Init script: check

configure:  Char device locks: /var/lock

configure:     Default Editor: vi

configure:       Loader/NVRAM:

configure:   virt-login-shell: yes

configure: virt-host-validate: yes

configure:

configure: Developer Tools

configure:

configure: Wireshark dissector: no

configure:

configure: Privileges

configure:

configure:       QEMU: root:root

configure:

[email protected]:make &&make install

[email protected]:/tool/libvirt-1.3.4# virsh list
p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘: No such file or directory

发现报错:p11-kit:无效的配置文件名将来会被忽略:/ etc / pkcs11 / modules / gnome-keyring-module,及libvirtd没有启动

[email protected]:/tool/libvirt-1.3.4# ps -aux |grep "libvirtd"
Warning: bad ps syntax, perhaps a bogus ‘-‘? See http://procps.sf.net/faq.html
root     129786  0.0  0.0   9432   940 pts/2    S+   10:30   0:00 grep --color=auto libvirtd

[email protected]:/tool/libvirt-1.3.4# libvirtd -d
p11-kit: invalid config filename, will be ignored in the future: /etc/pkcs11/modules/gnome-keyring-module

[email protected]:/tool/libvirt-1.3.4# rm -rf  /etc/pkcs11/modules/gnome-keyring-module

[email protected]:/tool/libvirt-1.3.4# ps -aux |grep "libvirtd"
root     129792  1.6  0.3 307788  6948 ?        Sl   10:30   0:00 libvirtd -d
root     129911  0.0  0.0   9432   940 pts/2    S+   10:31   0:00 grep --color=auto libvirtd

[email protected]:/tool/libvirt-1.3.4# virsh list
 Id    Name                           State
----------------------------------------------------

这样则显示libvirt安装成功

2.下面的是根据openstack结合kvm进行编译安装libvirt的环境,需要的模块比较多也比较完善,但有的可以根据需求去掉。

[email protected]:/home/zxl#vim /etc/apt/sources.list

deb http://mirrors.sohu.com/ubuntu/ precise main restricted
 deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted
 deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted
 deb http://mirrors.sohu.com/ubuntu/ precise universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise universe
 deb http://mirrors.sohu.com/ubuntu/ precise-updates universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe
 deb http://mirrors.sohu.com/ubuntu/ precise multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse
 deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted
 deb http://mirrors.sohu.com/ubuntu/ precise-security universe
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe
 deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse
 deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse
 deb http://extras.ubuntu.com/ubuntu precise main
 deb-src http://extras.ubuntu.com/ubuntu precise main

[email protected]:/home/zxl# apt-get update

[email protected]:/home/zxl# apt-get install qemu-kvm ubuntu-vm-builder bridge-utils

[email protected]:/home/zxl# modprobe kvm

[email protected]:/home/zxl# modprobe kvm-intel

[email protected]:/home/zxl# modprobe kvm-amd

检测kvm是否正常运行

[email protected]:/home/zxl# kvm-ok

INFO: /dev/kvm exists

KVM acceleration can be used

则kvm安装成功,下面编译安装libvirt

[email protected]:/tool# tar -xf libvirt-1.3.4.tar.gz

[email protected]:/tool# cd libvirt-1.3.4

[email protected]:/tool/libvirt-1.3.4# apt-get install build-essential python-dev libxml2-dev libxslt-dev tgt lvm2 python-lxml unzip python-mysqldb mysql-client memcached openssl expect iputils-arping python-xattr python-lxml kvm gawk iptables ebtables sqlite3 sudo kvm vlan curl socat python-libxml2 iscsitarget iscsitarget-dkms open-iscsi build-essential libxml2 libxml2-dev make fakeroot dkms openvswitch-switch openvswitch-datapath-dkms libxslt1.1 libxslt1-dev vlan gnutls-bin libgnutls-dev cdbs debhelper libncurses5-dev libreadline-dev libavahi-client-dev libparted0-dev libdevmapper-dev libudev-dev libpciaccess-dev libcap-ng-dev libnl-3-dev libapparmor-dev python-all-dev libxen-dev policykit-1 libyajl-dev libpcap0.8-dev libnuma-dev radvd libxml2-utils libnl-route-3-200 libnl-route-3-dev libnuma1 numactl libnuma-dbg libnuma-dev dh-buildinfo expect ebtables iptables iputils-ping iputils-arping sudo dnsmasq-base dnsmasq-utils

[email protected]:/tool/libvirt-1.3.4# ./configure --prefix=/usr --localstatedir=/var  --sysconfdir=/etc

看见下面的内容则说明环境准备好了

config.status: creating po/Makefile

configure:

configure: Configuration summary

configure: =====================

configure:

configure: Drivers

configure:

configure:       Xen: yes

configure:      QEMU: yes

configure:       UML: yes

configure:    OpenVZ: yes

configure:    VMware: yes

configure:      VBox: yes

configure:    XenAPI: no

configure:  xenlight: no

configure:       LXC: yes

configure:      PHYP: no

configure:       ESX: no

configure:   Hyper-V: no

configure:        vz: no

configure:     Bhyve: no

configure:      Test: yes

configure:    Remote: yes

configure:   Network: yes

configure:  Libvirtd: yes

configure: Interface: yes

configure:   macvtap: yes

configure:  virtport: yes

configure:

configure: Storage Drivers

configure:

configure:      Dir: yes

configure:       FS: yes

configure:    NetFS: yes

configure:      LVM: yes

configure:    iSCSI: yes

configure:     SCSI: yes

configure:    mpath: yes

configure:     Disk: yes

configure:      RBD: no

configure: Sheepdog: no

configure:  Gluster: no

configure:      ZFS: no

configure:

configure: Security Drivers

configure:

configure:  SELinux: yes (/selinux)

configure: AppArmor: yes (install profiles: no)

configure:

configure: Driver Loadable Modules

configure:

configure:   dlopen:  -ldl

configure:

configure: Libraries

configure:

configure:   apparmor: yes (CFLAGS=‘‘ LIBS=‘-lapparmor‘)

configure:       attr: no

configure:      audit: no

configure:      avahi: yes (CFLAGS=‘-D_REENTRANT  ‘ LIBS=‘-lavahi-common -lavahi-client  ‘)

configure:      blkid: yes (CFLAGS=‘-I/usr/include/blkid -I/usr/include/uuid  ‘ LIBS=‘-lblkid  ‘)

configure:      capng: yes (CFLAGS=‘‘ LIBS=‘-lcap-ng‘)

configure:       curl: no

configure:       dbus: yes (CFLAGS=‘-I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include  ‘ LIBS=‘-ldbus-1 -lpthread -lrt  ‘)

configure:       fuse: no

configure:  glusterfs: no

configure:        hal: no

configure:      netcf: no

configure:    numactl: yes (CFLAGS=‘‘ LIBS=‘-lnuma‘)

configure:  openwsman: no

configure:  pciaccess: yes (CFLAGS=‘ ‘ LIBS=‘-lpciaccess  ‘)

configure:   readline: yes (CFLAGS=‘‘ LIBS=‘-lreadline‘)

configure:    sanlock: no

configure:       sasl: no

configure:    selinux: yes (CFLAGS=‘‘ LIBS=‘-lselinux‘)

configure:       ssh2: no

configure: systemd_daemon: no

configure:       udev: yes (CFLAGS=‘ ‘ LIBS=‘-ludev -lrt  ‘)

configure: wireshark_dissector: no

configure:        nss: yes

configure:       yajl: yes (CFLAGS=‘‘ LIBS=‘-lyajl‘)

configure:   libxml: -I/usr/include/libxml2   -lxml2

configure:   dlopen: -ldl

configure: openwsman: no

configure:   gnutls: -I/usr/include/p11-kit-1   -DGCRYPT_NO_DEPRECATED -lgnutls   -lgcrypt

configure: firewalld: yes

configure:   polkit: /usr/bin/pkcheck (version 1)

configure:      xen:   -lxenstore

configure:   xenapi: no

configure: xenlight: no

configure:     pcap: -I/usr/include -L/usr/lib/x86_64-linux-gnu  -lpcap

configure:       nl: -I/usr/include/libnl3   -I/usr/include/libnl3   -lnl-3   -lnl-route-3 -lnl-3

configure:    mscom: no

configure:      xdr:

configure:      rbd: no

configure: pm-utils: yes

configure:

configure: Test suite

configure:

configure:          Coverage: no

configure:         Alloc OOM: no

configure:

configure: Miscellaneous

configure:

configure:              Debug: yes

configure:        Use -Werror: no

configure:      Warning Flags:  -W -Waddress -Wall -Wattributes -Wbad-function-cast -Wbuiltin-macro-redefined -Wcast-align -Wchar-subscripts -Wclobbered -Wcomment -Wcomments -Wcoverage-mismatch -Wcpp -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wdouble-promotion -Wempty-body -Wendif-labels -Wextra -Wformat-contains-nul -Wformat-extra-args -Wformat-security -Wformat-y2k -Wformat-zero-length -Wignored-qualifiers -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wint-to-pointer-cast -Winvalid-pch -Wjump-misses-init -Wlogical-op -Wmain -Wmissing-braces -Wmissing-declarations -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-parameter-type -Wmissing-prototypes -Wmultichar -Wnested-externs -Wnonnull -Wold-style-declaration -Wold-style-definition -Woverflow -Woverride-init -Wpacked-bitfield-compat -Wparentheses -Wpointer-arith -Wpointer-sign -Wpointer-to-int-cast -Wpragmas -Wreturn-type -Wsequence-point -Wshadow -Wstrict-aliasing -Wstrict-prototypes -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wsuggest-attribute=pure -Wswitch -Wsync-nand -Wtrampolines -Wtrigraphs -Wtype-limits -Wuninitialized -Wunknown-pragmas -Wunused -Wunused-but-set-parameter -Wunused-but-set-variable -Wunused-function -Wunused-label -Wunused-parameter -Wunused-result -Wunused-value -Wunused-variable -Wvariadic-macros -Wvolatile-register-var -Wwrite-strings -Wnormalized=nfc -Wno-missing-field-initializers -Wno-sign-compare -Wjump-misses-init -Wno-format-nonliteral -Wframe-larger-than=4096 -fexceptions -fasynchronous-unwind-tables -fipa-pure-const -Wno-suggest-attribute=pure -Wno-suggest-attribute=const -fstack-protector-all

configure:             DTrace: no

configure:              numad: no

configure:        XML Catalog: /etc/xml/catalog

configure:        Init script: check

configure:  Char device locks: /var/lock

configure:     Default Editor: vi

configure:       Loader/NVRAM:

configure:   virt-login-shell: yes

configure: virt-host-validate: yes

configure:

configure: Developer Tools

configure:

configure: Wireshark dissector: no

configure:

configure: Privileges

configure:

configure:       QEMU: root:root

configure:

这样就同时安装了许多以后可能需要的模块,且没有报错

[email protected]:/tool/libvirt-1.3.4# make &&make install

libvirt安装完毕,看能不能正常运行

[email protected]:/tool/libvirt-1.3.4# virsh list

。。。。。。。一直卡住不动。

[email protected]:/tool/libvirt-1.3.4# ps -aux |grep "libvirtd"

Warning: bad ps syntax, perhaps a bogus ‘-‘? See http://procps.sf.net/faq.html

root       9762  0.0  0.2 264836  5496 ?        Sl   12:02   0:00 /usr/sbin/libvirtd -d

root      81512  0.0  0.0   9396   932 pts/4    S+   12:20   0:00 grep --color=auto libvirtd

关闭后,再重启!!!!!!

[email protected]:/tool/libvirt-1.3.4# /etc/init.d/libvirt-bin stop

Rather than invoking init scripts through /etc/init.d, use the service(8)

utility, e.g. service libvirt-bin stop

Since the script you are attempting to invoke has been converted to an

Upstart job, you may also use the stop(8) utility, e.g. stop libvirt-bin

libvirt-bin stop/waiting

[email protected]:/tool/libvirt-1.3.4# libvirtd -d

[email protected]:/tool/libvirt-1.3.4# ps -aux |grep "libvirtd"

Warning: bad ps syntax, perhaps a bogus ‘-‘? See http://procps.sf.net/faq.html

root      81542  5.6  0.3 315720  7380 ?        Sl   12:20   0:00 libvirtd -d

root      81658  0.0  0.0   9396   936 pts/4    S+   12:21   0:00 grep --color=auto libvirtd

[email protected]:/tool/libvirt-1.3.4#

[email protected]:/tool/libvirt-1.3.4# virsh list

Id    Name                           State

----------------------------------------------------

[email protected]:/tool/libvirt-1.3.4# virsh list

Id    Name                           State

----------------------------------------------------

OK这样就完美编译libvirt成功!

3.管理界面

[email protected]:/tool/libvirt-1.3.4# apt-get install qemu virt-manager

[email protected]:/home/zxl# virt-manager

可能会报错,No DBUS daemon Running,则采用下面的进程启动dbus进程

[email protected]:/home/zxl# eval `dbus-launch --auto-syntax`

[email protected]:/home/zxl# virt-manager

则表明安装成功(但用Xsell远程连接好像不能打开,没有反应)

时间: 2024-12-28 23:52:00

OpenStack之安装kvm+编译安装libvirt+解决遇到的问题的相关文章

kvm编译安装及常见问题解决

一.KVM的编译安装 1.安装基本系统和开发工具 1.1 编译内核 mkdir /root/kvm cd /root/kvm wget http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.5.tar.gz tar -zvxf linux-3.5.tar.gz -C /usr/src cd /usr/src/linux-2.6.34.4 make menuconfig vi .config 增加 CONFIG_SYSFS_DEPRECATED_V

回答运维新手对YUM安装和编译安装的区别

    工作之余不乏一些幽默和调侃! 擅长网络的同事小李对Linux服务这方面一直不怎么了解.今天编译安装nginx时看到很多configure参数后头疼的问我,这yum安装和编译安装有啥区别啊?! 个人看法总结如下: 安装方式不同: yum安装:是将yum源中的rpm包下载到本地,安装这个rpm包(安装完自动删除rpm包,可配置安装完之后不删除). 源码安装:下载源码包,需要进行配置.编译和安装,配置的过程可以进行参数设定. 优缺点: yum安装优点:安装方便,快捷,能够解决包依赖的问题. y

Flarum 安装问题 编译安装 fileinfo.so

大部分人上传 会遇到文件没有权限这一问题 ,这个好解决 下边是服务器 php.ini 扩展 fileinfo 由于php 版本是7.1.8 最新的 又是用的一键环境安装 所以 没有安装这个扩展 1.去官网下载源码包 http://php.net/get/php-7.1.8.tar.gz/from/a/mirror 2.解压 tar -xzvf php-7.1.8.tar.gz cd php-7.1.8/ext/fileinfo /usr/local/php/bin/phpize ./config

ubuntu上安装mysql 编译安装

为什么要折腾?首先说明的是ubuntu上安装mysql等软件是非常容易简单的,其简单的程度盖过windows上的安装,一句sudo apt-get install就可以搞定.如果想用最简便的方法安装mysql,那么本文不适合你;如果你喜欢“折腾”,有兴趣了解这一条sudo apt-get install帮你做了什么,有兴趣了解internal linux的细节并想尝试自己编译软件,那么你是本文的目标读者,希望你能从这篇文章中获得收获. 编译安装的几大步骤: 编译前的准备工作 初识CMAKE——配

CentOS 6安装KVM后安装虚拟机报错

安装KVM在配置完桥接网卡后,安装虚拟机报错. 附有CentOS 6安装KVM文档,和安装过程截图,可否有人能看出其中问题所在,小女子不胜感激.

galera安装之编译安装xtrabackup 2.2.11

----1.编译安装percona-xtrabackup yum -y install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool ncurses-devel ncurses5-devel zlib-devel libgcrypt-devel crypt* libgcrypt* python-sphinx openssl imake libxml2-devel expat-devel ncur

Ubuntu安装 Alisql编译安装步骤:

github地址: https://github.com/alibaba/AliSQL 一.直接git下载保存到本地: git clone https://github.com/alibaba/AliSQL.git 二.安装依赖 apt-get install gcc build-essential cmake autoconf libncurses5-dev perl bison 说明: centos里面 build-essental换成 gcc-c++, libncurses5-dev换成n

DRBD简介 安装、编译报错解决 DRBD的配置、初始化及同步

主机环境 redhat6.5 64位 实验环境 服务端1 ip 172.25.25.111 主机名:server1.example.com   drbd     服务端2 ip172.25.25.112   主机名:server2.example.com    drbd 安装包 drbd-8.4.3.tar.gz 防火墙状态:关闭   1.Debd的简介 1.基本信息:Distributed Replicated Block Device(DRBD)是一个用软件实现的.无共享的.服务器之间镜像块

完美安装centos7编译安装php5.6.40(亲测成功!)

安装此php版本前必须先安装另两篇Apche和myql安装环境,因为路径都是按照这两篇为基础的https://blog.51cto.com/popli3/2357295https://blog.51cto.com/popli3/2357211 安装PHP 安装yum环境(aliyun的yum环境) [root@minion-1 ~]#yum -y install bzip2-devel libmcrypt-devel libxml2-devel libjpeg-devel libpng-deve