zoukankan      html  css  js  c++  java
  • Debian 7设备nginx周围环境、编译并安装和启动

    /*********************************************************************
     * Author  : Samson
     * Date    : 03/16/2015
     * Test platform:
     *              Debian 3.2.65-1+deb7u2
     *              GNU bash, 4.2.37(1)-release  
     * *******************************************************************/

    Debian 7编译nginx前的准备工作:

    apt-get install -y gcc make vim
    apt-get install  libpcre+*
    apt-get install -y grep zlib1g*
    apt-get install -y libssl1.0.0
    apt-get install -y libssl-dev

    编译nginx:
    ufo@ufo:~/$ tar zxvf nginx-1.6.2.tar.gz
    ufo@ufo:~/$ cd nginx-1.6.2/
    ufo@ufo:~/nginx-1.6.2$ ./configure
    ufo@ufo:~/nginx-1.6.2$ make
    ufo@ufo:~/nginx-1.6.2$ make install

    运行nginx 程序:
    ufo@ufo:~/nginx-1.6.2$ sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    ufo@ufo:~/nginx-1.6.2$ ps aux | grep nginx
    root      41764  0.0  0.0  28240   768 ?        Ss   11:57   0:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    nobody    41765  0.0  0.1  28668  1412 ?        S    11:57   0:00 nginx: worker process                                          
    ufo       41767  0.0  0.0   8064   872 pts/1    S+   11:58   0:00 grep nginx





    版权声明:本文博主原创文章,博客,未经同意不得转载。

  • 相关阅读:
    平稳随机过程通过线性系统
    频谱分析的作用
    数字图像处理中的4邻接,8邻接与m邻接
    网络存储实验基础
    灰度变换
    MATLAB数字图像处理基础
    用MATLAB对信号做频谱分析
    关于 oracle10g、oracle client和plsql devement 三者之间的关系
    技术栈呢
    Linux编程
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4875880.html
Copyright © 2011-2022 走看看