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服务器
      

        

  • 相关阅读:
    语言只是个工具
    最近学到的一点东西
    iBeacon开发
    马上着手开发Mac应用程序
    Text Kit入门
    Text Kit进阶
    Web Notification
    Objective-C异步编程
    Clang Language Extensions
    黑客与画家
  • 原文地址:https://www.cnblogs.com/evilxr/p/3917681.html
Copyright © 2011-2022 走看看