Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ホントに速い? nginx + php-fpm

ホントに速い? nginx + php-fpm

第61回PHP勉強会で発表した資料です。

Yusuke Ando

July 31, 2012
Tweet

More Decks by Yusuke Ando

Other Decks in Programming

Transcript

  1. OHJOY QIQGQN:VTVLF"OEP !ZBOEP ը૾ͳͲ͕ଟ͍৔߹ OHJOY͸লϝϞϦ BQBDIF NPE@QIQ BQBDIF NPE@QIQ BQBDIF

    NPE@QIQ BQBDIF NPE@QIQ BQBDIF NPE@QIQ OHJOY QIQGQN OHJOY OHJOY OHJOY OHJOY
  2. OHJOY QIQGQN:VTVLF"OEP !ZBOEP FUDOHJOYDPOGEEFGBVMUDPOG location ~ \.php$ { root html;

    fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; include fastcgi_params; } # cp -f /usr/local/etc/php-fpm.conf.default /usr/local/ etc/php-fpm.conf # cp -f sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm # chmod 755 /etc/init.d/php-fpm # mkdir /var/log/php-fpm # chown -R nginx:nginx /var/log/php-fpm