trssc 发表于 2018-11-16 07:04:12

nginx配置相关

  yum install gcc gcc-c++
  安装pcre zlib
  安装nginx
  ./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/soft/pcre-8.33 --with-zlib=/soft/zlib-1.2.8
  make
  make install
  启动及重启
  启动:nginx
  重启:kill -HUP `cat /usr/local/nginx/logs/nginx.pid`       `:英文状态下tab上面的键

  或者 /usr/nginx/sbin/nginx -s>  测试配置文件:nginx -t
  添加nginx用户
  useradd -M -s /sbin/nologin nginx

页: [1]
查看完整版本: nginx配置相关