PHP-fpm-74: line 82: kill: (475636**) - No such process
今天刚刚编译环境 装完就报错 php7.4无法启动 无法重启 一直处于关闭状态
环境是BT宝塔面板
我首先去百度谷歌搜索相关教程
当我执行 sudo lnmp php-fpm restart会出现如下错误
Starting php-fpm /usr/local/php/sbin/php-fpm: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory failed
而libmcrypt.so.4是存在的,在usr/local/lib里,网上说的解决办法是在/etc/ld.so.conf中加入/usr/local/lib這一行,
然后我打开ld.so.conf这个文件,里面已经加载了。
==========================
然后我试着kill php-fpm
然后再重启
sudo lnmp php-fpm kill
sudo /etc/init.d/php-fpm start
然后php-fpm就启动成功了,再访问根目录的php文件就可以访问到了
可是 本着强迫症晚期的要求 我不允许这么做 而且也没做
我是卸载后重装的 目前已解决
BT宝塔有两种安装方式 一种是急速安装 一种是编译安装
除了mysql数据库 建议用编译安装方式 其他都可以极速
如果出现错误 可以切换安装模式 建议时间充裕全部编译完整安装
如果出错可以切换极速方式 祝你成功
php-fpm-74: line 82: kill: (475636**)-No such process
I just compiled the environment today and reported an error after I installed it. php7.4 could not be started and could not be restarted. It has been closed.
The environment is a BT pagoda panel
I first go to Baidu Google to search for related tutorials
When I execute sudo lnmp php-fpm restart, the following error will appear
Starting php-fpm /usr/local/php/sbin/php-fpm: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory failed
And libmcrypt.so.4 exists. In usr/local/lib, the solution mentioned on the Internet is to add the line /usr/local/lib in /etc/ld.so.conf.
Then I opened the ld.so.conf file, which has been loaded.
==========================
Then I tried to kill php-fpm
Then restart
sudo lnmp php-fpm kill
sudo /etc/init.d/php-fpm start
Then php-fpm is started successfully, and then you can access the php file in the root directory
But according to the requirements of the late stage of obsessive-compulsive disorder, I didn’t allow this and I didn’t do it
I uninstalled and then reinstalled. It has been resolved.
There are two ways to install BT Pagoda, one is rapid installation, the other is compilation and installation
In addition to the mysql database, it is recommended to use the compilation and installation method. Others can be extremely fast
If there is an error, you can switch the installation mode. It is recommended that there is sufficient time to compile and complete the installation.
If you make a mistake, you can switch to the speed mode, I wish you success