Home >Backend Development >PHP Tutorial >How to start the php-cgi service
Environment: unbuntu 14.04
There are 4 ways to start php-cgi
1. php-cgi -b 3344 direct startup method
2. Start with spawn-cgi
3. php-fpm starts management cgi
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
The above introduces how to start the php-cgi service, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.