Ubuntu1804编译安装LNMP
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的更多相关文章
- centos下编译安装lnmp
centos下编译安装lnmp 本文以centos为背景在其中编译安装nginx搭建lnmp环境. 编译安装nginx时,需要事先安装 开发包组"Development Tools" ...
- 在树莓派1B上编译安装lnmp服务器
最近一周给部门内部搭建考试系统,选择使用PHPEMS.这是个开源的系统,唯一缺点是PHP的版本比较低,只能使用5.2或5.3.而我的树莓派系统更新后使用apt-get安装得到的PHP版本为5.4.由于 ...
- CentOS编译安装LNMP环境
这里是教大家如何在centos下利用源码编译安装LNMP环境. 工具/原料 centos服务器一台 自用电脑一台 准备篇 配置好IP.DNS .网关,确保使用远程连接工具能够连接服务器 配置防火墙,开 ...
- Centos 6.8编译安装LNMP环境
Centos 6.8编译安装LNMP环境 参考资料: http://www.jb51.net/article/107429.htm https://phperzh.com/articles/1360 ...
- 阿里云centos6.5实践编译安装LNMP架构web环境
LNMP 代表的就是:Linux系统下Nginx+MySQL+PHP这种网站服务器架构. 本次测试需求: **实践centos6.5编译安装 LNMP生产环境 架构 web生产环境 使用 ngx_pa ...
- SaltStack之编译安装LNMP环境
使用saltstack编译安装LNMP环境 一,系统版本查看 二,安装salt-master和salt-minion 安装配置过程参考SaltStack概述及安装 三,修改配置文件 /etc/salt ...
- WordPress安装篇(5):源码编译安装LNMP并部署WordPress
与YUM方式安装相比,源码编译安装方式更灵活,安装过程中能自定义功能和参数,特别是在批量部署服务器又要求软件版本及配置一致时,源码编译安装的优势很明显.本文介绍如何通过源码编译方式安装Nginx1.1 ...
- Linux下编译安装Lnmp
1.安装nginx 下载链接http://nginx.org/en/download.html (1)下载,解压 wget http://nginx.org/download/nginx-1.15.8 ...
- 源码编译安装lnmp环境(nginx-1.14.2 + mysql-5.6.43 + php-5.6.30 )------踩了无数坑,重装了十几次服务器才会的,不容易啊!
和LAMP不同的是,LNMP中的N指的是Nginx(类似于Apache的一种web服务软件),并且php是作为一个独立服务存在的,这个服务叫做php-fpm,Nginx直接处理静态请求,动态请求会转发 ...
随机推荐
- python_30_购物车复习
prodcut_list=[ ('Iphone', 5800), ('Mac Pro', 9800), ('Bike', 800), ('Watch', 10600), ('Coffee', 31), ...
- vs code vim
很多初学者启动vim后,不知道怎么输入字符:按了半天字母,结果屏幕还是空的. vim和记事本或WORD不一样,不是一打开后就可以输入文字,此时它处于正常模式. vim一共有4个模式: 正常模式 (No ...
- java基础编程——树的子结构
题目描述 输入两棵二叉树A,B,判断B是不是A的子结构.(ps:我们约定空树不是任意一个树的子结构) 题目代码 /** * 输入两棵二叉树A,B,判断B是不是A的子结构.(ps:我们约定空树不是任意一 ...
- mysql 获取系统时间的下一天 年-月-日 时:分:秒
DAY) as date
- Sass和gulp的简单了解
一.sass less css预处理器 sass里面有2种语法 第一种语法是sass 后缀名必须是sass 第二种语法是scss 后缀名必须是scss ...
- MySQL - FIND_IN_SET 函数使用方法
SELECT * FROM xxxTableName x WHERE FIND_IN_SET(x.id, '1,2,3,4,5,6,7,8'); 如上查询,意为:xxxTableName 表中 x ...
- 项目10.2-企业级自动化运维工具---puppet详解
1.认识puppet 1.1 引入 puppet是什么,咱们先不用专业的名词解释它,咱们先描述一些工作场景,看明白这些工作场景,自然会知道puppet是什么. (1)场景一: 管理员想要在100台服务 ...
- WPF实现QQ群文件列表动画(二)
上篇(WPF实现QQ群文件列表动画(一))介绍了WPF实现QQ群文件列表动画的大致思路,结合我之前讲过的WPF里ItemsControl的分组实现,实现起来问题不大,以下是效果图: 其实就是个List ...
- P3398 仓鼠找sugar(树链剖分)
P3398 仓鼠找sugar 题目描述 小仓鼠的和他的基(mei)友(zi)sugar住在地下洞穴中,每个节点的编号为1~n.地下洞穴是一个树形结构.这一天小仓鼠打算从从他的卧室(a)到餐厅(b),而 ...
- laravel5.2总结--序列化
序列化 构建Json格式的API接口时,经常需要转换 '模型' 和 '关联关系' 为数组或者JSON. 1>转换模型为数组: $user = App\User::with('roles')- ...