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直接处理静态请求,动态请求会转发 ...
随机推荐
- js 对象字面量
对象字面量的输出方式以及定义好处 1.对象字面量的输出方式有两种:传统的'.' 例如:box.name 以及数组方式,只不过用数组方式输出时,方括号里面要用引号括起来 例如:box['name'] v ...
- python_38_try-except异常处理语句及raise的使用
# i=10 # print(30/(i-10)) # #程序将会出现以下报错信息 # # Traceback (most recent call last): # # File "C:/U ...
- 漫谈 Clustering (番外篇): Vector Quantization
在接下去说其他的聚类算法之前,让我们先插进来说一说一个有点跑题的东西:Vector Quantization.这项技术广泛地用在信号处理以及数据压缩等领域.事实上,在 JPEG 和 MPEG-4 等多 ...
- kindeditor 上传图片失败问题总结
1.近段时间一直在处理kindeditor上传图片失败的问题,前期一直以为是前端的问题,利用谷歌控制台,打断点,修改方法,一直都找不到解决方案,直到查看服务器配置,才发现: WEB 1号服务器 /da ...
- Oracle Undo 和 Redo
1. REDO(重做信息) Redo log file(重做日志文件),是数据库的事务日志. Oracle维护着两类重做日志文件:在线(online)重做日志文件和归档(archived)重做日志文件 ...
- BZOJ2118: 墨墨的等式(最短路 数论)
题意 墨墨突然对等式很感兴趣,他正在研究a1x1+a2y2+…+anxn=B存在非负整数解的条件,他要求你编写一个程序,给定N.{an}.以及B的取值范围,求出有多少B可以使等式存在非负整数解. So ...
- C++ 学习笔记 (六) 继承- 子类与父类有同名函数,变量
学习了类的继承,今天说一下当父类与子类中有同名函数和变量时那么程序将怎么执行.首先明确当基类和子类有同名函数或者变量时,子类依然从父类继承. 举例说明: 例程说明: 父类和子类有同名的成员 data: ...
- python字典按照k,v来排序
按照 k 排序 按照 v 排序
- 使用shell脚本添加用户
该文演示如何使用shell脚本完成添加用户,首先进行一个判断,如果用户存在,提示该用户已经存在,否则进行添加新的用户. 示例代码如下: #!/bin/bash grep_user() { R=`gre ...
- Java的内存回收
一.java引用的种类 1.对象在内存中的状态 可达状态:当一个对象被创建后,有一个以上的引用变量指向它. 可恢复状态: 不可达状态:当对象的所有关联被切断,且系统调用所有对象的finalize方法依 ...