Home  >  Article  >  Backend Development  >  How to start, manage, operate and maintain the php-cgi service

How to start, manage, operate and maintain the php-cgi service

小云云
小云云Original
2018-03-05 13:08:058279browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn