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直接处理静态请求,动态请求会转发 ...
随机推荐
- php之基础深入---类与对象篇
1.类的自动加载: spl_autoload_register()函数可以注册任意数量的自动加载器,当使用尚未被定义的类(class)和接口(interface)时自动去加载,这样可以避免includ ...
- JSON.parse()与JSON.stringify()
JSON.parse() 将字符串转成JSON 举个例子 var str = '{"name":"cn","age":"2&quo ...
- 用TextKit实现表情混排
Textkit是iOS7新推出的类库,其实是在之前推出的CoreText上的封装,有了这个TextKit,以后不用再拿着CoreText来做累活了,根据苹果的说法,他们开发了两年多才完成,而且他们 ...
- python_52_函数返回值2
def test1(x,y): print(x,y) test1(1,2)#位置参数调用,按顺序来,与形参一一对应 test1(y=1,x=2)#输出为2 1,不是1 2.关键字参数调用按关键字,不按 ...
- ASP.NET各种技巧
1.动态添加文件框 前台页面关键部分: <script type="text/javascript"> //添加一个选项 function AddFileCtrol() ...
- js实现指定日期增加指定月份
首先,大致思路为: 1. 先将字符串格式的时间类型转化为Date类型 2. 再将Date类型的时间增加指定月份 3. 最后将Date类型的时间在转化为字符串类型 1. 先将字符串格式的时间类型转化为 ...
- Java基础——动态代理
1.什么是动态代理? 简单的来说,就是本来让我自己做的事,请给别人来做,这个请的人就是代理对象 那么动态代理就是在程序运行过程中产生这个代理对象,而程序运行中产生的对象就是用反射的来生成一个代理. 举 ...
- EL和JSTL表达式学习记录
EL.JSTL表达式EL:1.EL使用目的:代替jsp页面中java脚本编写 2.EL作用:(1)从域中取出数据(最重要)(2)EL的内置对象(11个)(3)EL可以执行表达式运算 JSTL(JSP标 ...
- vue.js 独立引用css文件图片路径错误
vue的环境是用vue-cli,写在vue文件的图片引用build之后的路径都没什么问题 但是有的时候我们会有一些公共的css文件单独的放在assets目录下 如下图所示 这里当build后发现写在c ...
- 20.VUE学习之-变异方法push的留言版实例讲解
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...