本文以centos系统为例。
PHP的一般默认安装目录是:/usr/local/php/
我们使用php-fpm来重新加载配置文件(比如php.ini):
/usr/local/php/sbin/php-fpm reload
Note: /usr/local/php/sbin/php-fpm has other parameters, including: start | stop | exit | restart | reload | log rotation.
Use PHP-FPM to control the FastCGI process of PHP-CGI/usr/local/PHP/sbin/PHP-FPM {start | stop | quit | restart | reload | logrotate} -start the fastcgi process of server-side programming language (abbreviation of professional hypertext preprocessor)-stop and forcibly terminate the fastcgi process of server-side programming language (abbreviation of professional hypertext preprocessor)-resign and smoothly terminate the server-side programming language (Pro Fastcgi process restart of fessional Hypertext Preprocessor Restart fastcgi process of server-side programming language (abbreviation of Professional Hypertext Preprocessor)-Reload and smoothly load php.ini-logrotate of server-side programming language (abbreviation of Professional Hypertext Preprocessor) Re-enable log files.
提示:很多时候(老版本,没有PHP-FPM),直接重启http服务器就行了,比如重启apache,IIS,nginx!