安装php-fpm

WBOY
Release: 2016-06-06 20:37:17
Original
1079 people have browsed it

之前我用yum安装,安装的php是低版本的,没有php-fpm,然后我用yum给卸载了,重新按照以下的方法安装的。

<code>wget http://cn2.php.net/distributions/php-5.4.38.tar.gz
tar zvxf php-5.4.38.tar.gz
cd php-5.4.38
./configure --prefix=/usr/local/php  --enable-fpm --with-mcrypt \
--enable-mbstring --disable-pdo --with-curl --disable-debug  --disable-rpath \
--enable-inline-optimization --with-bz2  --with-zlib --enable-sockets \
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \
--with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \
--with-gd --with-jpeg-dir
</code>
Copy after login
Copy after login

我安装php,按照以上的命令安装,但是装完了,没有php-fpm,而且php -v显示的php版本是

<code>PHP 5.1.6 (cli) (built: Nov  6 2014 12:25:33) 
</code>
Copy after login
Copy after login

真是见了鬼啊。(我的yum没有php-fpm的repo源,search不到,所以我采用编译安装的方法)

回复内容:

之前我用yum安装,安装的php是低版本的,没有php-fpm,然后我用yum给卸载了,重新按照以下的方法安装的。

<code>wget http://cn2.php.net/distributions/php-5.4.38.tar.gz
tar zvxf php-5.4.38.tar.gz
cd php-5.4.38
./configure --prefix=/usr/local/php  --enable-fpm --with-mcrypt \
--enable-mbstring --disable-pdo --with-curl --disable-debug  --disable-rpath \
--enable-inline-optimization --with-bz2  --with-zlib --enable-sockets \
--enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex \
--with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli \
--with-gd --with-jpeg-dir
</code>
Copy after login
Copy after login

我安装php,按照以上的命令安装,但是装完了,没有php-fpm,而且php -v显示的php版本是

<code>PHP 5.1.6 (cli) (built: Nov  6 2014 12:25:33) 
</code>
Copy after login
Copy after login

真是见了鬼啊。(我的yum没有php-fpm的repo源,search不到,所以我采用编译安装的方法)

用rpm -qa|grep php查找然后用rpm -e全部卸载重装了,然后就ok了!

php没有卸载干净,如果想看你新安装的PHP的版本要执行:/usr/local/php/bin/php -v
而php-fpm文件在/usr/local/php/sbin/php-fpm

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template