Centos7安装nginx

  1. wget http://nginx.org/download/nginx-1.7.4.tar.gz 获取nginx的源码包
  2. 安装pcre、pcre-devel、openssl、openssl-devel、gcc-c++
  3. make、sudo make install(否则权限不够)
  4. 启动nginx,/usr/local/nginx/sbin/nginx

你可能感兴趣的:(nginx,安装,centos)