Home >Backend Development >PHP Tutorial >How to start, manage, operate and maintain the php-cgi service
This article mainly shares with you the methods of starting, managing, and operating the php-cgi service. I hope it can help you.
Environment: unbuntu+5.3.2
There are 4 ways to start php-cgi
1. php-cgi -b 3344 Direct startup method
2. Start with spawn-cgi
3. Start management cgi with php-fpm
4. Find the php-cgi startup script under linux online
spawn-cgi startup method : sudo spawn-fcgi -a 127.0.0.1 -p 3344 -F 10 -f /usr/bin/php-cgi -P /var/run/spawn-cgi.pid
sudo spawn- fcgi -a 127.0.0.1 -p 3344 -u www-data -g www-data -f /usr/bin/php5-cgi -C 10
Related recommendations:
Compare the differences between CGI, FastCGI, PHP-CGI and PHP-FPM
nginx - How to configure multiple php-cgi process pools
cgi php-cgi, PHP underlying principle
The above is the detailed content of How to start, manage, operate and maintain the php-cgi service. For more information, please follow other related articles on the PHP Chinese website!