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

小云云
Release: 2023-03-20 18:46:01
Original
8159 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!