nginx

下载

  1. yum install nginx //1.使用yum安装
  2. service nginx start //2.启动nginx

配置

使用nginx -t查看配置文件。
image.png

  1. cat /etc/nginx/nginx.conf; //查看nginx配置文件

Webbech压力测试

下载

  1. wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz //1.下载
  2. tar xvf webbench-1.5.tar.gz //2.解压
  3. cd webbench-1.5
  4. make && make install //3.编译

如果出现cannot create regular file ‘/usr/local/man/man1’: No such file or directory
image.png
解决:mkdir /usr/local/man && mkdir /usr/local/man/man1