Set startup to start php-fpm service/php-fpm startup service script under Centos7

If your server installed centos 7 or up version system and use yum order installed nginx and php-fpm but forgot set autostart.Now I will tell you how to set.

Add boot
systemctl enable php-fpm.service

Operation command
Start up
systemctl start php-fpm.service
Stop
systemctl stop php-fpm.service
Reboot
systemctl restart php-fpm.service
Delete boot
systemctl disable php-fpm.service

You can omit .service like order systemctl disable php-fpm.service you can use this style systemctl disable php-fpm needn’t .service.

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.