php服务器队列执行,lnmp php添加队列服务器的配置
upgrade_php.sh
找到Upgrade_PHP_72()的方法
Echo_Blue "[+] Installing ${php_version}"
Tarj_Cd php-${php_version}.tar.bz2 php-${php_version}
if [ "${Stack}" = "lnmp" ]; then
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/conf.d --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization ${with_curl} --enable-mbregex --enable-mbstring --enable-intl --enable-pcntl --enable-ftp --with-gd ${with_openssl} --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --with-libzip --enable-soap --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-gettext ${with_fileinfo} --enable-opcache --with-xsl ${PHP_Modules_Options}
else
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/conf.d --with-apxs2=/usr/local/apache/bin/apxs --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization ${with_curl} --enable-mbregex --enable-mbstring --enable-intl --enable-pcntl --enable-ftp --with-gd ${with_openssl} --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --with-libzip --enable-soap --with-gettext ${with_fileinfo} --enable-opcache --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-xsl ${PHP_Modules_Options}
fi
中添加這幾行 shell
--enable-opcache --enable-sysvmsg --enable-sysvsem --enable-sysvshm
升級(jí)成php7.2就可以了
總結(jié)
以上是生活随笔為你收集整理的php服务器队列执行,lnmp php添加队列服务器的配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nginx php 配置 windows
- 下一篇: php解析url编码,php对URL传参