报错内容
Connecting to soft.lnmp.com (soft.lnmp.com)|43.159.69.110|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-11-19 10:40:42 ERROR 404: Not Found. Uncompress swoole-5.1.1.tgz... tar (child): swoole-5.1.1.tgz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now cd swoole-5.1.1... include/main.sh: line 783: cd: swoole-5.1.1: No such file or directory Cannot find config.m4. Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module include/php_swoole.sh: line 22: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. /mnt/H1/lnmp2.1/src Restarting php-fpm...... Gracefully shutting down php-fpm . done Starting php-fpm [19-Nov-2024 10:40:43] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'swoole.so' (tried: /usr/local/php/lib/php/extensions/no-debug-non-zts-20230831/swoole.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20230831/swoole.so: cannot open shared object file: No such file or directory), /usr/local/php/lib/php/extensions/no-debug-non-zts-20230831/swoole.so.so (/usr/local/php/lib/php/extensions/no-debug-non-zts-20230831/swoole.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 done PHP Swoole install failed!
解决办法
看情况是找不到 安装包. 那么我们自己上传就好了.
下载地址
http://pecl.php.net/package/swoole
找到对应的版本 下载下来 ,上传到 LNMP的SRC目录