如何操作以启动php-fpm服务脚本?
- 内容介绍
- 文章标签
- 相关推荐
本文共计784个文字,预计阅读时间需要4分钟。
这个是我自己使用的,没有问题,有三个path需要自行修改。
首先创建自启动文件:sudo nano /etc/init.d/php-fpm
内容如下:#!/bin/shchkconfig: 2345 90 20description: The PHP FastCGI Process Managerprocessname: php-fpmconfig: /etc/php-fpm.conf
Source function library.. /etc/rc.d/init.d/functions
Source networking configuration.. /etc/sysconfig/network
Check that networking is upnetstat -r > /dev/null 2>&1 || exit 0
Start the daemon with configuration fileexec /usr/local/php/sbin/php-fpm -y /usr/local/php/etc/php-fpm.conf
这个我自己在用,没问题,有三个path需要自己酌情修改。
本文共计784个文字,预计阅读时间需要4分钟。
这个是我自己使用的,没有问题,有三个path需要自行修改。
首先创建自启动文件:sudo nano /etc/init.d/php-fpm
内容如下:#!/bin/shchkconfig: 2345 90 20description: The PHP FastCGI Process Managerprocessname: php-fpmconfig: /etc/php-fpm.conf
Source function library.. /etc/rc.d/init.d/functions
Source networking configuration.. /etc/sysconfig/network
Check that networking is upnetstat -r > /dev/null 2>&1 || exit 0
Start the daemon with configuration fileexec /usr/local/php/sbin/php-fpm -y /usr/local/php/etc/php-fpm.conf
这个我自己在用,没问题,有三个path需要自己酌情修改。

