Evaluate the throughput method for the network on a virtual machine as a Web server: Nginx + Apache benchmark + nload
The first step is to build an Nginx server on the Amazon Linux eligible free set of versions
1. Installing Nginx
Yum Install Nginx
2. Open port 80
In the security group, select Edit Inbound rules to add HTTP and 80 ports. Access by Browser:/HTTP , confirm that Nginx is working properly.
Second step, observe the load condition with nload
1. Installing nload
(1) Since Yum nload will fail and must be installed from source code, please download the installation development tool first: Yum Groupinstall "Development tools".
(2) Installation of nload dependent package: Yum-y Install ncurses*
(3) Download Nload:wget http://www.roland-riegel.de/nload/nload-0.7.4.tar.gz
Unzip, compile, install:
Tar zxvf nload-0.7.4.tar.gz
./configure
Make && make install
2. Add/usr/local/bin to Path variable, start nload
Step three, install Apache Benchmark (AB)
AB is a self-bringing tool for Apache server, so just install Apache server.
Perform AB test commands on multiple client machines: ab-c 5000-n 100000-r /http/
"-C 5000", 5,000 concurrent requests at a time
"-N 100000", total 100,000 requests
The current load condition of the Web server can be seen from the nload run: outgoing:avg:18.49mbit/s
The above describes the evaluation of the Network load of AWS EC2 as a Web server, including aspects of the content, you want to be interested in PHP tutorial friends helpful.