zoukankan      html  css  js  c++  java
  • nginx源码编译安装

     安装编译所需的包:

    [root@xaiofan ~]# yum install -y gcc gcc-c++ autoconf automake

    安装nginx使用某些功能需要的包:

    [root@xaiofan ~]# yum install -y zlib zlib-devel openssl openssl-devel pcre-devel

    创建用户:

    [root@xaiofan ~]# useradd -u 8000 -s /sbin/nologin nginx

    安装:

    [root@xaiofan ~]# cd /soft/
    [root@xaiofan soft]# ls
    nginx-1.8.0.tar.gz
    [root@xaiofan soft]# tar xf nginx-1.8.0.tar.gz
    [root@xaiofan soft]# cd nginx-1.8.0
    [root@xaiofan nginx-1.8.0]# ./configure --prefix=/usr/local/nginx --with-http_dav_module --with-http_stub_status_module --with-http_addition_module --with-http_sub_module --with-http_flv_module --with-http_mp4_module --with-http_ssl_module

    [root@xaiofan nginx-1.8.0]# make&&make install

    启动nginx:

  • 相关阅读:
    MySQL、Redis 和 MongoDB 的优缺点
    解决数据库高并发
    数据库事务
    Mysql 数据库存储的原理?
    CSRF
    MVC模型和MVT模型
    AJAX
    正则表达式-re模块
    ddt-数据驱动测试
    python-时间格式化
  • 原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/5935729.html
Copyright © 2011-2022 走看看