安装nginx1.8

今天试了在SUSE 12.0 系统上安装 nginx 1.8,记录下以备他用

  1. 到nginx官网下载1.8版本  http://nginx.org
  2. 编译的时候会出现两次错

./configure --prefix=/opt/nginx      (安装在/opt/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.

./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.

3.根据错误需要安装PCRE  和 zlib  以及 zlib-devel ,上网下载这三个包,其中zlib  和zlib-devel是RPM包(见附件),直接安装即可, PCRE是源码包,解压后重编译时带上PCRE源码地址即可,如

./configure --prefix=/opt/nginx --with-pcre=/nfsshare/pcre-8.36

4.正常编译后最后会提示

  nginx path prefix: "/opt/nginx"
  nginx binary file: "/opt/nginx/sbin/nginx"
  nginx configuration prefix: "/opt/nginx/conf"
  nginx configuration file: "/opt/nginx/conf/nginx.conf"
  nginx pid file: "/opt/nginx/logs/nginx.pid"
  nginx error log file: "/opt/nginx/logs/error.log"
  nginx http access log file: "/opt/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"

5.接下就来是 make     make install   安装完成

6.总结 nginx安装比较简单,但缺少的 PCRE  和 zlib  以及 zlib-devel 在SUSE Enterprise上不好安装,不像CentOS  yum 即可

时间: 2024-07-30 10:15:52

安装nginx1.8的相关文章

centos 6.9 编译安装 Nginx1.12.1

centos 6.9 使用yum 安装 Nginx1.12.1 Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器.Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,第一个公开版本0.1.0发布于2004年10月4日. 其将源代码以类BSD许可证的形式发布,因它的稳定性.丰富的功能集.示例配置文件和低系统资源的消耗而闻名.2011年6月1日,nginx 1.0.4发布. Ng

二、Ubuntu下编译安装Nginx1.8.0

    在Ubuntu下搭建LNMP环境.编译安装mysql,nginx,php.最后在LNMP前提下安装composer,并且安装laravel框架.首先,第二步开始编译安装Nginx1.8.0 1.先进入"/usr/local/src"文件夹中,接着键入 "sudo wget http://nginx.org/download/nginx-1.8.0.tar.gz"回车,等待下载完毕.下载完毕后,执行"sudo tar zxvf nginx-1.8.0

CentOS 7.1编译安装Nginx1.8.1+MySQL5.6.19+PHP5.5.14

废话少说,直接部署 一.配置防火墙,开启80端口.3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 rm '/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.se

Linux安装Nginx1.7.4、php5.5.15和配置

Nginx是一个轻量级的高性能Web服务器.反向代理服务器.邮件(IMAP/POP3/SMTP)服务器,是Igor Sysoev为俄罗斯访问量第二的Rambler.ru站点开发,第一个公开版本0.1.0发布于2004年10月4日,以类BSD许可证的形式发布.Nginx选择epoll and kqueue 作为开发模型并使用C编写,在系统资源和CPU使用率上比Apache有着较大的优势.同时安装非常简单,配置文件简洁(支持perl语法),启动容易,几乎可以做到7*24小时不间断运行,即时运行数月也

CentOS6.3编译安装Nginx1.4.7 + MySQL5.5.25a + PHP5.3.28

[准备工作] #在编译安装lnmp之前,首先先卸载已存在的rpm包. rpm -e httpd rpm -e mysql rpm -e php yum -y remove httpd yum -y remove mysql-server mysql yum -y remove php yum -y remove php-mysql #禁用SeLinux,Selinux可能会致使编译安装失败,我们先禁用它. #sed -i 's/SELINUX=enforcing/SELINUX=disabled

一、Centos6.7编译安装Nginx1.81

声明:本系列教程由马哥教育提供指导: Centos6.7编译安装Nginx1.81 +mysql-5.5.33 + php-5.5 1.nginx简介: Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行.由俄罗斯的程序设计师Igor Sysoev所开发,供俄国大型的入口网站及搜索引擎Rambler(俄文:Рамблер)使用.其特点是占有内存少,并发能力强,事实上nginx的并发能力确实在同类型的网页服务器中表

CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

转载自http://www.osyunwei.com/archives/7891.html 准备篇: CentOS 7.0系统安装配置图解教程 http://www.osyunwei.com/archives/7829.html 一.配置防火墙,开启80端口.3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙. 1.关闭firewall: systemctl stop firewalld.service #停止firewall systemc

基于CentOS6.5环境之下的LNMP之编译安装Nginx1.8.0 stable(稳定版)

LNMP之编译安装Nginx1.8.0 stable(稳定版) 1.yum安装nginx所欲要的生存环境,也就是库文件 yum -y install make gcc gcc-c++ glibc glibc-devel automake autoconf libtool make 2.给nginx添加系统用户 useradd -s /sbin/nologin -M -r nginx 3.解压安装nginx1.8.0 tar xf nginx-1.8.0.tar.gz  cd nginx-1.8.

Linux下安装Nginx1.9.3-0303(本人亲手实践)

Linux下安装Nginx1.9.3 Linux操作系统 Oel 5.8 64bit 最新版Nginx: 1.9.3 最近同事让我帮忙搞 ngix,两天时间 安装.配置搞定了.继续 Nginx 1.9.3 发布下载,高性能 Web 服务器 1.下载Nginx1.9.3 下载地址: http://nginx.org/download/nginx-1.9.3.tar.gz 2.安装依赖的库 检查以下软件包是否安装 [[email protected] ~]# rpm -qa gcc gcc-4.1.

ubuntu 12.04下编译安装nginx-1.9.3

1,下载nginx-1.9.3.tar.gz 两种方式: (1).ubuntu 下终端中(ctrl+alt+t) 运行命令: wget http://nginx.org/download/nginx-1.9.3.tar.gz .能够进入到根文件夹的Downloads文件夹下运行该命令.这样就能够直接下载该文件夹下 (2).windows或ubuntu浏览器中下载,地址为 http://nginx.org/en/download.html. 本人是下载到根文件夹 ~/Downloads中的 2,安