This article mainly introduces in Linux will php-fpm configuration into service, has a certain reference value, now share to everyone, have the need of friends can refer to
After you install PHP
1, set php-fpm.conf, will; pid = run/php-fpm.pid Front semicolon removed
2. Copy the init.d.php-fpm from the extracted php folder to/etc/init.d/php-fpm
CP SAPI/FPM/INIT.D.PHP-FPM/ETC/INIT.D/PHP-FPM
3. Copy the init.d.php-fpm from the extracted php folder to/etc/init.d/php-fpm
4. Modify the php-fpm file
Will
php_fpm_bin= @sbindir @/php-fpmphp_fpm_conf= @sysconfdir @/php-fpm.confphp_fpm_pid= @localstatedir @/run/php-fpm.pid
Change into
php_fpm_bin=/usr/local/php/sbin/php-fpmphp_fpm_conf=/usr/local/php/etc/php-fpm.confphp_fpm_pid=/usr/local/php/ Var/run/php-fpm.pid
5. Implementation
chmod +x/etc/init.d/php-fpmchkconfig--add php-fpmchkconfig php-fpm on
After that, you can use the command service PHP-FPM Stop command directly.