我正在使用 amazon linux2 并尝试安装php7.4.9 的扩展。运行后pcntl
没有包,因此我手动复制文件并创建文件。pcntl
yum search pcntl
pcntl.so
/usr/lib64/php/modules
/etc/php.d/20-pcntl.ini,
但是我得到了错误PHP Warning: Module 'pcntl' already loaded in Unknown on line 0
# php -r "print_r(get_loaded_extensions());"
Array
(
[0] => Core
[1] => date
[2] => libxml
[3] => openssl
[4] => pcre
[5] => zlib
[6] => filter
[7] => hash
[8] => pcntl
[9] => readline
[10] => Reflection
[11] => SPL
[12] => session
[13] => standard
[14] => bcmath
[15] => bz2
[16] => calendar
[17] => ctype
[18] => curl
[19] => dom
[20] => mbstring
[21] => fileinfo
[22] => ftp
[23] => gd
[24] => gettext
[25] => iconv
[26] => intl
[27] => json
[28] => exif
[29] => mysqlnd
[30] => PDO
[31] => Phar
[32] => posix
[33] => shmop
[34] => SimpleXML
[35] => sockets
[36] => sqlite3
[37] => sysvmsg
[38] => sysvsem
[39] => sysvshm
[40] => tokenizer
[41] => xml
[42] => xmlwriter
[43] => xsl
[44] => zip
[45] => mysqli
[46] => pdo_mysql
[47] => pdo_sqlite
[48] => xmlreader
)
所以我无法使用函数pcntl_async_signals
。我的配置哪里错了?