php源码安装

php源码安装下载php的rpm包并解压在解压之后的目录中,查看是否有configure,如果有此文件,使用./configure-makemakeinstall方式进行源码安装[root@server1~]#yuminstall-ybzip2[root@server1~]#tarjxfphp-7.4.12.tar.bz2[root@server1~]#ls[root@server1~]#cdphp-7.4.12/[root@server1php-7.4.12]#

大家好,欢迎来到IT知识分享网。

php源码安装

下载php的rpm包并解压
在解压之后的目录中,查看是否有configure,如果有此文件,使用./configure—>make—->make install方式进行源码安装

[root@server1 ~]# yum install -y bzip2
[root@server1 ~]# tar jxf php-7.4.12.tar.bz2
[root@server1 ~]# ls
[root@server1 ~]# cd php-7.4.12/
[root@server1 php-7.4.12]# ls
[root@server1 php-7.4.12]# ./configure | less
[root@server1 php-7.4.12]# ./configure –prefix=/usr/local/php –with-config-file-path=/usr/local/php/etc –enable-fpm –with-fpm-user=nginx –with-fpm-group=nginx  –with-curl –with-iconv –with-mhash –with-zlib –with-openssl –enable-mysqlnd –with-mysqli –with-pdo-mysql –disable-debug –enable-sockets –enable-soap –enable-inline-optimization –enable-xml –enable-ftp –enable-gd –enable-exif –enable-mbstring  –enable-bcmath –with-fpm-systemd
[root@server1 php-7.4.12]# yum install -y systemd-devel libxml2-devel sqlite-devel libcurl-devel libpng-devel
[root@server1 ~]# yum install -y oniguruma-6.8.2-1.el7.x86_64.rpm
[root@server1 ~]# yum install -y oniguruma-devel-6.8.2-1.el7.x86_64.rpm
 
[root@server1 php-7.4.12]# ./configure –prefix=/usr/local/php –with-config-file-path=/usr/local/php/etc –enable-fpm –with-fpm-user=nginx –with-fpm-group=nginx  –with-curl –with-iconv –with-mhash –with-zlib –with-openssl –enable-mysqlnd –with-mysqli –with-pdo-mysql –disable-debug –enable-sockets –enable-soap –enable-inline-optimization –enable-xml –enable-ftp –enable-gd –enable-exif –enable-mbstring  –enable-bcmath –with-fpm-systemd
[root@server1 php-7.4.12]# make

php源码安装

php源码安装 php源码安装

memcache-4.0.5.2.tgz  ##解压 

php源码安装

php源码安装

对memcache进行源码编译
make
make install
cd /usr/local/php/etc/
vim php.ini
systemctl reload php-fpm.service
php -m | grep memcache php源码安装

php源码安装

 安装成功

php源码安装

 

 

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文来自网络,若有侵权,请联系删除,如若转载,请注明出处:https://yundeesoft.com/21005.html

(0)
上一篇 2024-01-27 14:00
下一篇 2024-02-01 19:15

相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注微信