ブログ記事へ。 http://tmotooka.hatenablog.jp/entry/2016/11/06/121819
- AWS EC2 t2.nano (512MB RAM) 2台(Apache検証用 と NGINX検証用)
- Amazon Linux 2016.09
- Apache の場合
sudo yum install php70
で PHP 7.0.11 と Apache 2.4.23 をインストールsudo service httpd start
で Apache 起動
- NGINX の場合
sudo yum install php70
で PHP 7.0.11 と Apache 2.4.23 をインストールsudo yum install php70-fpm
で PHP-FPM をインストールsudo yum install nginx
で NGINX 1.10.1 をインストールsudo service php-fpm start
で PHP-FPM 起動sudo service nginx start
で NGINX 起動
リクエストは curl
で投げた。
再起動方法 | wait_with_sleeping.php |
wait_consuming_cpu_resource.php |
wait_on_background.php |
---|---|---|---|
sudo service httpd restart |
死ぬ | 死ぬ | 死ぬ |
sudo service httpd reload |
死ぬ | 死ぬ | 死ぬ |
sudo service httpd graceful |
sleepが中断される | きちんと待ってくれる | 死なない |
sudo service nginx restart |
死ぬ | 死ぬ | 死なない |
sudo service nginx reload |
きちんと待ってくれる | きちんと待ってくれる | 死なない |