Press "Enter" to skip to content

Zabbix升级php(从php-7.1.10升级到php-7.1.15)

从php-7.1.10升级到php-7.1.15
下载最新版php
wget http://cn2.php.net/distributions/php-7.1.15.tar.gz
tar -zxvf php-7.1.15.tar.gz
cd php-7.1.15
查看历史编译参数(php -i|grep configure),具体内容如下:
Configure Command => './configure' '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-bz2' '--with-curl' '--enable-ftp' '--enable-sockets' '--disable-ipv6' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-freetype-dir=/usr/local' '--enable-gd-native-ttf' '--with-iconv-dir=/usr/local' '--enable-mbstring' '--enable-calendar' '--with-gettext' '--with-libxml-dir=/usr/local' '--with-zlib' '--with-pdo-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--enable-dom' '--enable-xml' '--enable-fpm' '--with-libdir=lib64' '--enable-bcmath'
按照历史编译参数编译:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-bz2 --with-curl --enable-ftp --enable-sockets --disable-ipv6 --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/local --enable-gd-native-ttf --with-iconv-dir=/usr/local --enable-mbstring --enable-calendar --with-gettext --with-libxml-dir=/usr/local --with-zlib --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd --enable-dom --enable-xml --enable-fpm --with-libdir=lib64 --enable-bcmath
make
make install
kill -USR2 $php-fpm_pid //重启php-fpm
php -v //查看php版本是否为7.1.15
最后查看zabbix运行情况

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注