LNMP 配置说明(一)

来源:互联网 发布:js修改input边框颜色 编辑:程序博客网 时间:2024/06/14 09:48

centos 下的 nginx 安装与配置

  1. 下载最新版nginx nginx 1.12.0
  2. 依赖安装 yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel openssl openssl-devel
  3. 解压缩 tar -xf nginx-1.12.0.tar.gz
  4. ln -s nginx-1.12.0.tar.gz nginx
  5. cd nginx
  6. ./configure --prefix=/lnmp/nginx --with-http_ssl_module
  7. make
  8. make install

    <—————configure参数说明——————>

–prefix=path nginx安装路径
–sbin-path=path 启动程序路径
–pid-path=path pid路径
–error-log-path=path
–http-log-path=path acess.log
–user=name 用户
–group=name 用户组
–without-http_rewrite_module
–without-http_proxy_module
–without-http_gzip_module
–with-http_ssl_module

原创粉丝点击