php-fpmの基本操作コマンド

1.ディレクトリ
/usr/local/php/sbin/php-fpm
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini

2.php-fpmの起動パラメータ
#php-fpm設定のテスト
/usr/local/php/sbin/php-fpm -t
/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf -t

#php-fpmが起動
/usr/local/php/sbin/php-fpm
/usr/local/php/sbin/php-fpm -c /usr/local/php/etc/php.ini -y /usr/local/php/etc/php-fpm.conf

#php-fpmが停止
kill -INT `cat /usr/local/php/var/run/php-fpm.pid`

#php-fpmが再起動
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`

PHP

Posted by arkgame