Nginx+Apache+PHP 服务安装
一. 安装 Nginx
yum install -y nginx
systemctl enable nginx
systemctl start nginx
systemctl stop nginx
systemctl restart nginxclient_max_body_size 2M二. 安装 Apache
yum install -y httpd
systemctl enable httpd
systemctl start httpd
systemctl stop httpd
systemctl restart httpd<IfModule mod_fcgid.c>
MaxRequestLen 10485760 # 10M = 10 * 1024 * 1024
LimitRequestBody 10485760
</IfModule>三. 安装 PHP
1. 修改启动权限
2. 与 Nginx 集成
3. 多个 php-fpm 主进程
最后更新于