tar zxvf oniguruma-6.9.4.tar.gz
./autogen.sh
./configure --prefix=/usr --libdir=/lib64
make -j4
make install
或
yum install -y oniguruma (待测试)
tar zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure --prefix=/usr/local/libmcrypt
make -j4
make install
tar zxvf php-7.4.16.tar.gz
cd php-7.4.16
./configure --prefix=/usr/local/php --with-config-file-path=/etc --enable-fpm
make -j4
make install
cp php.ini-production /etc/php.ini
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf
cp /usr/local/php-7.4.16/sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
chmod 777 /etc/init.d/php-fpm
chkconfig php-fpm on
service php-fpm start
tar zxvf swoole-4.6.6.tgz
cd swoole-4.6.6
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make -j4
make install
vi /etc/php.ini
extension=swoole.so
swoole.use_shortname = off
service php-fpm restart
php -m | grep swoole
php --ini
标签:fpm,备忘,etc,usr,--,php,local From: https://www.cnblogs.com/kgdxpr/p/16847027.html