- 浏览: 52923 次
- 性别:
文章分类
最新评论
1、本人第一次安装nginx;
nginx下载路径http://nginx.org/en/download.html
版本: nginx-1.12.2 pgp
步骤:
a、解压nginx-1.12.2.tar.gz
b、进入nginx-1.12.2目录
发现PCRE 不可用,好吧,遇到这种错误,想到的是没有安装。顺便检查一下是否安装呗。
尼玛的,居然存在,那就是版本不对咯,卸载的了。继续吧兄弟:
卸载完了开始安装pcre了。
这个就把pcre-devel解决了。OK。接下啦继续nginx步骤了。下面
运气不错,make操作正常
nginx下载路径http://nginx.org/en/download.html
版本: nginx-1.12.2 pgp
步骤:
a、解压nginx-1.12.2.tar.gz
tar -zxvf nginx-1.12.2.tar.gz
b、进入nginx-1.12.2目录
[root@jshy190 crxy]# cd nginx-1.12.2 [root@jshy190 nginx-1.12.2]# ls auto CHANGES CHANGES.ru conf configure contrib html LICENSE Makefile man objs README src [root@jshy190 nginx-1.12.2]# ./configure checking for OS + Linux 2.6.32-431.el6.x86_64 x86_64 checking for C compiler ... found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) checking for gcc -pipe switch ... found checking for -Wl,-E switch ... found checking for gcc builtin atomic operations ... found checking for C99 variadic macros ... found checking for gcc variadic macros ... found checking for gcc builtin 64 bit byteswap ... found checking for unistd.h ... found checking for inttypes.h ... found checking for limits.h ... found checking for sys/filio.h ... not found checking for sys/param.h ... found checking for sys/mount.h ... found checking for sys/statvfs.h ... found checking for crypt.h ... found checking for Linux specific features checking for epoll ... found checking for EPOLLRDHUP ... found checking for EPOLLEXCLUSIVE ... not found checking for O_PATH ... not found checking for sendfile() ... found checking for sendfile64() ... found checking for sys/prctl.h ... found checking for prctl(PR_SET_DUMPABLE) ... found checking for sched_setaffinity() ... found checking for crypt_r() ... found checking for sys/vfs.h ... found checking for nobody group ... found checking for poll() ... found checking for /dev/poll ... not found checking for kqueue ... not found checking for crypt() ... not found checking for crypt() in libcrypt ... found checking for F_READAHEAD ... not found checking for posix_fadvise() ... found checking for O_DIRECT ... found checking for F_NOCACHE ... not found checking for directio() ... not found checking for statfs() ... found checking for statvfs() ... found checking for dlopen() ... not found checking for dlopen() in libdl ... found checking for sched_yield() ... found checking for SO_SETFIB ... not found checking for SO_REUSEPORT ... found checking for SO_ACCEPTFILTER ... not found checking for SO_BINDANY ... not found checking for IP_BIND_ADDRESS_NO_PORT ... not found checking for IP_TRANSPARENT ... found checking for IP_BINDANY ... not found checking for IP_RECVDSTADDR ... not found checking for IP_PKTINFO ... found checking for IPV6_RECVPKTINFO ... found checking for TCP_DEFER_ACCEPT ... found checking for TCP_KEEPIDLE ... found checking for TCP_FASTOPEN ... not found checking for TCP_INFO ... found checking for accept4() ... found checking for eventfd() ... found checking for int size ... 4 bytes checking for long size ... 8 bytes checking for long long size ... 8 bytes checking for void * size ... 8 bytes checking for uint32_t ... found checking for uint64_t ... found checking for sig_atomic_t ... found checking for sig_atomic_t size ... 4 bytes checking for socklen_t ... found checking for in_addr_t ... found checking for in_port_t ... found checking for rlim_t ... found checking for uintptr_t ... uintptr_t found checking for system byte ordering ... little endian checking for size_t size ... 8 bytes checking for off_t size ... 8 bytes checking for time_t size ... 8 bytes checking for AF_INET6 ... found checking for setproctitle() ... not found checking for pread() ... found checking for pwrite() ... found checking for pwritev() ... found checking for sys_nerr ... found checking for localtime_r() ... found checking for posix_memalign() ... found checking for memalign() ... found checking for mmap(MAP_ANON|MAP_SHARED) ... found checking for mmap("/dev/zero", MAP_SHARED) ... found checking for System V shared memory ... found checking for POSIX semaphores ... not found checking for POSIX semaphores in libpthread ... found checking for struct msghdr.msg_control ... found checking for ioctl(FIONBIO) ... found checking for struct tm.tm_gmtoff ... found checking for struct dirent.d_namlen ... not found checking for struct dirent.d_type ... found checking for sysconf(_SC_NPROCESSORS_ONLN) ... found checking for openat(), fstatat() ... found checking for getaddrinfo() ... found checking for PCRE library ... not found checking for PCRE library in /usr/local/ ... not found checking for PCRE library in /usr/include/pcre/ ... not found checking for PCRE library in /usr/pkg/ ... not found checking for PCRE library in /opt/local/ ... not found ./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.
发现PCRE 不可用,好吧,遇到这种错误,想到的是没有安装。顺便检查一下是否安装呗。
[root@jshy190 nginx-1.12.2]# rpm -qa pcre pcre-7.8-6.el6.x86_64
尼玛的,居然存在,那就是版本不对咯,卸载的了。继续吧兄弟:
[root@jshy193 nginx-1.12.2]# rpm -e --nodeps pcre [root@jshy193 nginx-1.12.2]# rpm -qa pcre [root@jshy193 nginx-1.12.2]#
卸载完了开始安装pcre了。
[root@jshy193 nginx-1.12.2]# yum -y install pcre-devel Loaded plugins: fastestmirror, refresh-packagekit, security Determining fastest mirrors * base: mirrors.cn99.com * extras: mirrors.163.com * updates: mirrors.cn99.com base | 3.7 kB 00:00 extras | 3.4 kB 00:00 extras/primary_db | 29 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 5.8 MB 00:02 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package pcre-devel.x86_64 0:7.8-7.el6 will be installed --> Processing Dependency: pcre = 7.8-7.el6 for package: pcre-devel-7.8-7.el6.x86_64 --> Processing Dependency: libpcreposix.so.0()(64bit) for package: pcre-devel-7.8-7.el6.x86_64 --> Processing Dependency: libpcrecpp.so.0()(64bit) for package: pcre-devel-7.8-7.el6.x86_64 --> Processing Dependency: libpcre.so.0()(64bit) for package: pcre-devel-7.8-7.el6.x86_64 --> Running transaction check ---> Package pcre.x86_64 0:7.8-7.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================= Installing: pcre-devel x86_64 7.8-7.el6 base 320 k Installing for dependencies: pcre x86_64 7.8-7.el6 base 196 k Transaction Summary ============================================================================================================================================================================================= Install 2 Package(s) Total download size: 516 k Installed size: 1.4 M Downloading Packages: (1/2): pcre-7.8-7.el6.x86_64.rpm | 196 kB 00:00 (2/2): pcre-devel-7.8-7.el6.x86_64.rpm | 320 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.5 MB/s | 516 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. ** Found 8 pre-existing rpmdb problem(s), 'yum check' output follows: gnote-0.6.3-3.el6.x86_64 has missing requires of libpcre.so.0()(64bit) gnote-0.6.3-3.el6.x86_64 has missing requires of libpcrecpp.so.0()(64bit) grep-2.6.3-4.el6.x86_64 has missing requires of libpcre.so.0()(64bit) httpd-2.2.15-29.el6.centos.x86_64 has missing requires of libpcre.so.0()(64bit) httpd-tools-2.2.15-29.el6.centos.x86_64 has missing requires of libpcre.so.0()(64bit) less-436-10.el6.x86_64 has missing requires of libpcre.so.0()(64bit) 2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libpcre.so.0()(64bit) 2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of pcre Installing : pcre-7.8-7.el6.x86_64 1/2 Installing : pcre-devel-7.8-7.el6.x86_64 2/2 Verifying : pcre-7.8-7.el6.x86_64 1/2 Verifying : pcre-devel-7.8-7.el6.x86_64 2/2 Installed: pcre-devel.x86_64 0:7.8-7.el6 Dependency Installed: pcre.x86_64 0:7.8-7.el6 Complete!
这个就把pcre-devel解决了。OK。接下啦继续nginx步骤了。下面
[root@jshy193 nginx-1.12.2]# ./configure [root@jshy193 nginx-1.12.2]# make [root@jshy193 nginx-1.12.2]# make install
运气不错,make操作正常
发表评论
-
linux下sftp配置
2018-03-28 09:59 982linux centos7下sftp配置 Linux环境下自带 ... -
linux 下awk的应用
2017-12-28 17:16 734引用文章http://www.jb51.net/article ... -
linux 查看系统版本
2017-04-01 10:39 331shell命令1:lsb_release -a 适用于所有的 ... -
linux下修改war包
2017-03-06 15:32 1100Linux上修改war包上的文件 www.MyExceptio ... -
Shell遍历properties文件里面的 key和value
2017-03-06 15:31 0#!/bin/ksh IFS='=' while ... -
MYsql5.23 最大连接数设置不成功
2017-01-19 09:35 2351RHEL\CentOS 7 下 MySQL 连接数被限制为21 ... -
centos7系统下网络配置
2016-12-30 15:11 4971、检查网卡 [root@localhost ~]# ip ... -
linux下resin的https配置
2016-12-27 17:47 921对于resin官方版本对接openssl有个坑;把我差点坑死了 ... -
linux下ftp搭建
2016-12-16 16:35 2921.检查linux是否安装了ftp命令:rpm -qa|gre ... -
nexus maven私有库搭建
2016-12-12 18:12 4231.下载nexus包,linux命令 wget http:/ ... -
linux sed命令
2016-11-30 11:29 312简介 sed 是一种在线编辑器,它一次处理一行内容。处理时, ... -
intellij idea 下resin容器远程调试
2016-11-16 09:27 5385resin远程调试(我使用的是resin-4.0.41版本): ... -
Hive-1.2.1 HWI 图形化界面问题
2016-10-27 15:16 5371、下载apache-hive-1.2.1-src.tar.g ... -
Linux下免密码登陆ssh
2016-10-21 11:14 282第一步:ssh-keygen 创建公钥和密钥 [root@ji ... -
Linux下查看系统的位数和系统信息
2015-05-15 00:58 1441对于linux系统,,安装一些软件,,有时候要考虑到linux ...
相关推荐
### CentOS 6.5 安装 Nginx 1.7.8 教程 #### 知识点概览 1. **环境准备**:在 CentOS 6.5 系统上安装必要的依赖库(例如 PCRE 和 OpenSSL)。 2. **下载与解压**:获取 Nginx 的源代码包并进行解压缩。 3. **编译...
CentOS 6.5系统下Nginx的安装和部署过程涵盖多个方面,涉及到编译环境的搭建、依赖库的安装、Nginx的编译安装以及基本的管理操作。下面将对这些知识点进行详细说明。 首先,在安装Nginx之前,需要部署好编译环境。...
在Linux系统中,CentOS 6.5是一个广泛使用的版本,而Nginx是一个高性能的Web服务器和反向代理服务器,常用于网站部署和负载均衡。这篇教程将详细介绍如何在CentOS 6.5上安装Nginx。 首先,我们需要配置Nginx的官方...
### Centos6.5下部署项目实施手册:关键技术步骤与注意事项 #### 一、网络配置与SSH服务 在CentOS 6.5环境下部署项目前,首要任务是确保网络环境的稳定性和安全性。 ##### 1. 配置IP地址 为了使虚拟机能够正常接...
本篇文章将详述如何在CentOS 6.5上安装Nginx,包括下载、编译、配置和启动过程。 首先,我们需要确保系统已经更新到最新版本并安装了必要的依赖包。在终端中执行以下命令: ```bash sudo yum update -y sudo yum ...
### CentOS 6.5 安装LNMP服务器教程 #### 一、概述 本文将详细介绍如何在CentOS 6.5上安装LNMP(Linux+Nginx+MySQL+PHP)服务器环境。LNMP架构是一种非常流行的Web服务器组合,它不仅性能高效而且配置灵活,非常...
Windows8上安装虚拟机VirtualBox,然后新建虚拟电脑,搭建CentOS6.5 + mysql + nginx + php + memcached平台环境,部署网站。文档中记录了部分FAQ。
在Linux环境中,特别是对于服务器操作...总之,离线安装Nginx在CentOS 6.x上需要手动处理更多细节,但通过下载源码包和依赖,并按照正确的步骤进行配置和编译,你可以成功地在无网络的环境中部署这个强大的Web服务器。
本文档旨在详细介绍如何在CentOS 6.5 64位系统上部署Nginx与三个Tomcat实例,并实现基本的负载均衡功能。通过这种方式,可以有效地提高Web应用的可用性和性能。 #### 准备工作 在开始部署之前,确保已准备好以下...
### CentOS 6.5 下安装 FastDFS #### 一、前言 FastDFS 是一个开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件访问(文件上传、文件下载等),解决了大容量存储和负载均衡的...
首先,"CentOS6.5 LNMP环境搭建Shell脚本"是自动化安装和配置这四个组件的关键。通过运行一个精心编写的Shell脚本,可以大大简化这个过程,节省时间和精力。通常,这种脚本会包括以下步骤: 1. 更新系统:使用`yum ...
在本篇文档中,我们将详细讨论如何在CentOS 6.5系统上独立配置PHP环境,特别是针对阿里云镜像中可能缺失的部分依赖进行处理,以及解决遇到的问题。...希望以上信息能帮助你在CentOS 6.5上成功部署PHP环境。
CentOS 6.5可以作为可靠的Web服务器操作系统,支持Apache、Nginx等多种Web服务器软件。 #### 2. **数据库服务器** 适合作为MySQL、PostgreSQL等数据库系统的主机操作系统。 #### 3. **文件服务器** 可以搭建...
### CentOS 下安装 Nginx + PHP + MySQL 的详细步骤与注意事项 #### 一、环境准备与概述 在本文档中,我们将详细介绍如何在 CentOS 6.5 64位操作系统上搭建 LNMP (Nginx + MySQL + PHP) 环境。LNMP 是一种非常流行...
Nginx在CentOS上安装和配置过程涉及多个步骤,这里将详细解释在CentOS 6.5 64位系统中安装Nginx的整个过程。 首先,需要明确Nginx服务器的基本功能,它是如何作为一个web服务器的,以及它的负载均衡和反向代理功能...
在本教程中,我们将深入探讨如何在CentOS 6.5操作系统上配置Tomcat 7、Nginx和Redis,以便实现高效的Web服务器部署和session共享。以下是详细步骤: 1. **Tomcat 7的安装与配置** - 在`server.xml`文件中,为第二...
准备篇 一、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # Firewall configuration written by system-config-firewall # Manual customization of this file is not ...