Linux strace安装及使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sfmcatl/article/details/80780198
安装:
yum -y install strace

使用:

参考:https://www.jb51.net/article/103087.htm

解决phpinfo()中Loaded Configuration File(none)的问题。

 命令:

strace /usr/local/php7/sbin/php-fpm -i 2>1.log

查看在日志里搜索 php.ini ,就知道程序去哪里查找了。








猜你喜欢

转载自blog.csdn.net/sfmcatl/article/details/80780198