- 依賴包安裝
這一步實際上已經在:LNMP環境搭建(二):Nginx上完成了
[root@localhost ~]# yum -y install gcc
[root@localhost ~]# yum -y install gcc++
[root@localhost ~]# yum -y install gcc-c++
[root@localhost ~]# yum -y install wget
[root@localhost ~]# yum -y install make
[root@localhost ~]# yum -y install libxml2
[root@localhost ~]# yum -y install libxml2-devel
[root@localhost ~]# yum -y install openssl
[root@localhost ~]# yum -y install openssl-devel
[root@localhost ~]# yum -y install curl-devel
[root@localhost ~]# yum -y install libjpeg-devel
[root@localhost ~]# yum -y install libpng-devel
[root@localhost ~]# yum -y install freetype-devel
[root@localhost ~]# yum -y install bison
[root@localhost ~]# yum -y install autoconf
[root@localhost ~]# yum -y install automake
[root@localhost ~]# yum -y install libtool
[root@localhost ~]# yum -y install cmake
[root@localhost ~]# yum -y install zlib
[root@localhost ~]# yum -y install zlib-devel
[root@localhost ~]# yum -y install pcre-devel
[root@localhost ~]# wget http://php.net/distributions/php-7.2.12.tar.gz
[root@localhost ~]# tar -zxvf php-7.2.12.tar.gz
- 在解壓的目錄下配置、編譯安裝
[root@localhost ~]# make && make install