當我執行 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文件就可以訪問到了
