4.11.tar.xz
Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad
Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10302076 (9.8M) [application/octet-stream]
Saving to: ‘php-7.4.11.tar.xz’
100%[============================================================================================>] 10,302,076 2.26MB/s in 4.6s
2023-03-23 15:57:02 (2.16 MB/s) - ‘php-7.4.11.tar.xz’ saved [10302076/10302076]
[root@rs1 src]# tar xf php-7.4.11.tar.xz
[root@rs1 src]# cd php-7.4.11/
#编译安装 [root@rs1 php-7.4.11]# ./configure --prefix=/usr/local/php74 --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-openssl --with-zlib --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-mbstring --enable-xml --enable-sockets --enable-fpm --enable-maintainer-zts --disable-fileinfo
+--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+
Thank you for using PHP.
[root@rs1 php-7.4.11]# make -j 8 && make install
[root@rs1 php-7.4.11]# cp /usr/local/src/php-7.4.11/php.ini-production /etc/php.ini [root@rs1 php-7.4.11]# cd /usr/local/php74/etc/ [root@rs1 etc]# cp php-fpm.conf.default php-fpm.conf [root@rs1 etc]# pwd /usr/local/php74/etc [root@rs1 etc]# cd php-fpm.d/ [root@rs1 php-fpm.d]# cp www.conf.default www.conf [root@rs1 php-fpm.d]# vim www.conf
user = nginx
group = nginx
打开
listen.allowed_clients = 127.0.0.1
pm.status_path = /status
[root@rs1 php-fpm.d]# /usr/local/php74/sbin/php-fpm -t [23-Mar-2023 16:07:09] NOTICE: configuration file /usr/local/php74/etc/php-fpm.conf test is successful
[root@rs1 php-fpm.d]# /usr/local/php74/sbin/php-fpm [root@rs1 php-fpm.d]# ss -ntl State Recv-Q Send-Q Local Address:Port Peer Address:Port &n |