zoukankan      html  css  js  c++  java
  • CentOS搭建LNMP环境

    1. 安装开发工具包:
      yum groupinstall -y "Development Tools*"
      

        50多个,安装了好久……

    2. 下载Nginx:
      http://nginx.org/en/download.html
      Development version #开发版本,有不稳定因素
      stable version #稳定版本 
      Legacy versions #一些老版本
      
      wget http://nginx.org/download/nginx-1.6.2.tar.gz
      tar -xvf nginx-1.6.2.tar.gz 
      cd nginx-1.6.2#进入解压目录
      ./configure#运行configure进行编译
      #编译出现如下错误:./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the ……
      #解决办法
      yum -y install pcre-devel openssl openssl-devel
      然后再进入nginx目录编译
      make 
    3. 安装Nginx:
      make install#进行安装
    4. 运行Nginx服务器:
      #Nginx默认目录在 /usr/local/nginx/
      cd  /usr/local/nginx/sbin
      ./nginx#运行Nginx服务器
      

        

  • 相关阅读:
    稀疏自编码器和矢量化编程
    使用支持向量机训练mnist数据
    采用libsvm进行mnist训练
    支持向量机
    月下“毛景树”
    最小费用最大流模板
    最大流模板
    选学霸
    线段树 2
    线段树 1
  • 原文地址:https://www.cnblogs.com/evilxr/p/3917681.html
Copyright © 2011-2022 走看看