2018-06-05 21:25:55

Ubuntu

Linux GP 4.15.--generic #-Ubuntu SMP Wed May  :: UTC  x86_64 x86_64 x86_64 GNU/Linux

下载最新Linxu

//官网 nginx.org最新稳定版
wget -c http://nginx.org/download/nginx-1.14.0.tar.gz
//解压并进入
tar -zxvf nginx-1.14..tar.gz
cd nginx-1.14./
//尝试生成配置
./configure --prefix=/usr/local/nginx
//checking for OS
// + Linux 4.15.0-22-generic x86_64
//checking for C compiler ... not found
//./configure: error: C compiler cc is not found
sudo apt-get install build-essential
//再次configure
./configure --prefix=/usr/local/nginx
//./configure: error: the HTTP rewrite module requires the PCRE library.
//You can either disable the module by using --without-http_rewrite_module
//option, or install the PCRE library into the system, or build the PCRE library
//statically from the source with nginx by using --with-pcre=<path> option.
//nginx 路由重写需要prce库
sudo apt-get install libpcre3 libpcre3-dev
//再次configure
./configure --prefix=/usr/local/nginx
//./configure: error: the HTTP gzip module requires the zlib library.
//You can either disable the module by using --without-http_gzip_module
//option, or install the zlib library into the system, or build the zlib library
//statically from the source with nginx by using --with-zlib=<path> option.
./configure --prefix=/usr/local/nginx --without-http_gzip_module
//Configuration summary
// + using system PCRE library
// + OpenSSL library is not used
// + zlib library is not used // nginx path prefix: "/usr/local/nginx"
// nginx binary file: "/usr/local/nginx/sbin/nginx"
// nginx modules path: "/usr/local/nginx/modules"
// nginx configuration prefix: "/usr/local/nginx/conf"
// nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
// nginx pid file: "/usr/local/nginx/logs/nginx.pid"
// nginx error log file: "/usr/local/nginx/logs/error.log"
// nginx http access log file: "/usr/local/nginx/logs/access.log"
// nginx http client request body temporary files: "client_body_temp"
// nginx http proxy temporary files: "proxy_temp"
// nginx http fastcgi temporary files: "fastcgi_temp"
// nginx http uwsgi temporary files: "uwsgi_temp"
// nginx http scgi temporary files: "scgi_temp" //可以生成配置但是有的常用库没有安
sudo apt-get install openssl

sudo apt-get install zlib1g-dev

./configure  --prefix=/usr/local/nginx --without-http_gzip_module
sudo make
sudo make install

nginx 安装结束

安装PHP

Ubuntu1804编译安装LNMP的更多相关文章

  1. centos下编译安装lnmp

    centos下编译安装lnmp 本文以centos为背景在其中编译安装nginx搭建lnmp环境. 编译安装nginx时,需要事先安装 开发包组"Development Tools" ...

  2. 在树莓派1B上编译安装lnmp服务器

    最近一周给部门内部搭建考试系统,选择使用PHPEMS.这是个开源的系统,唯一缺点是PHP的版本比较低,只能使用5.2或5.3.而我的树莓派系统更新后使用apt-get安装得到的PHP版本为5.4.由于 ...

  3. CentOS编译安装LNMP环境

    这里是教大家如何在centos下利用源码编译安装LNMP环境. 工具/原料 centos服务器一台 自用电脑一台 准备篇 配置好IP.DNS .网关,确保使用远程连接工具能够连接服务器 配置防火墙,开 ...

  4. Centos 6.8编译安装LNMP环境

    Centos 6.8编译安装LNMP环境 参考资料: http://www.jb51.net/article/107429.htm https://phperzh.com/articles/1360 ...

  5. 阿里云centos6.5实践编译安装LNMP架构web环境

    LNMP 代表的就是:Linux系统下Nginx+MySQL+PHP这种网站服务器架构. 本次测试需求: **实践centos6.5编译安装 LNMP生产环境 架构 web生产环境 使用 ngx_pa ...

  6. SaltStack之编译安装LNMP环境

    使用saltstack编译安装LNMP环境 一,系统版本查看 二,安装salt-master和salt-minion 安装配置过程参考SaltStack概述及安装 三,修改配置文件 /etc/salt ...

  7. WordPress安装篇(5):源码编译安装LNMP并部署WordPress

    与YUM方式安装相比,源码编译安装方式更灵活,安装过程中能自定义功能和参数,特别是在批量部署服务器又要求软件版本及配置一致时,源码编译安装的优势很明显.本文介绍如何通过源码编译方式安装Nginx1.1 ...

  8. Linux下编译安装Lnmp

    1.安装nginx 下载链接http://nginx.org/en/download.html (1)下载,解压 wget http://nginx.org/download/nginx-1.15.8 ...

  9. 源码编译安装lnmp环境(nginx-1.14.2 + mysql-5.6.43 + php-5.6.30 )------踩了无数坑,重装了十几次服务器才会的,不容易啊!

    和LAMP不同的是,LNMP中的N指的是Nginx(类似于Apache的一种web服务软件),并且php是作为一个独立服务存在的,这个服务叫做php-fpm,Nginx直接处理静态请求,动态请求会转发 ...

随机推荐

  1. geoWithin查询 多边形查询

    $geoWithin查询 形状的表示 .$box:矩形,使用 {$box:[[<x1>,<y1>],[<x2>,<y2>]]}表示 都是坐标,第一个坐标 ...

  2. 2018.5.18 AndroidStudio创建项目出错

    Android Studio 出现 Gradle's dependency cache may be corrupt 错误分析 Error:Failed to open zip file. Gradl ...

  3. javascript同步和异步的区别与实现方式

    javascript语言是单线程机制.所谓单线程就是按次序执行,执行完一个任务再执行下一个. 对于浏览器来说,也就是无法在渲染页面的同时执行代码. 单线程机制的优点在于实现起来较为简单,运行环境相对简 ...

  4. 数组 -----JavaScript

    本文摘要:http://www.liaoxuefeng.com/ JavaScript的Array可以包含任意数据类型,并通过索引来访问每个元素.(数据里面可以有多个不同类型的元素组成) 要取得Arr ...

  5. 海量数据GPS定位数据库表设计

    在开发工业系统的数据采集功能相关的系统时,由于数据都是定时上传的,如每20秒上传一次的时间序列数据,这些数据在经过处理和计算后,变成了与时间轴有关的历史数据(与股票数据相似,如下图的车辆行驶过程中的油 ...

  6. js display, visible 区别

    注意: display:none和visible:hidden都能把网页上某个元素隐藏起来,在视觉效果上没有区别,但是在一些DOM操作中两者有区别: display:none ---不为被隐藏的对象保 ...

  7. Linux更改文件权限(二)

    更改文件权限(二)============================== (参考于千锋教育教学笔记) 命令umask [root@aminglinux ~]# umask 0022 [root@ ...

  8. ospf多区域实例配置

    需求:是pc1,pc2,pc3直接可以相互通信,ip分别pc1:192.168.1.2 pc2:192.168.3.2 pc3:192.168.5.2 LSW1配置: 首先划分vlan,vlan中配置 ...

  9. Python学习笔记(五)之Python操作Redis、mysql、mongodb数据库

    操作数据库 一.数据库 数据库类型主要有关系型数据库和菲关系型数据库. 数据库:用来存储和管理数的仓库,数据库是通过依据“数据结构”将数据格式化,以记录->表->库的关系存储.因此数据查询 ...

  10. python学习——StringIO和BytesIO

    StringIO 很多时候,数据读写不一定是文件,也可以在内存中读写. StringIO顾名思义就是在内存中读写str. 要把str写入StringIO,我们需要先创建一个StringIO,然后,像文 ...