centos6安装nginx最详细步骤,覆盖缺少库的完整解决方案
来源:互联网 发布:android系统优化 编辑:程序博客网 时间:2024/06/04 19:48
第一步:在centos下面下载 nginx
wget http://nginx.org/download/nginx-1.2.9.tar.gz
解压 tar zxf nginx-1.2.9.tar.gz
第二部:新建一个用户nginx在安装操作
useradd nginx
passwd nginx
--nginx nginx
第三步、解压和测试安装环境 ./configure --prefix=/var/nginx (在客户那里安装到了 /nginx_instal 囧..)
安装过程中报错
checking for OS
+ Linux 2.6.32-220.el6.x86_64 x86_64
checking for C compiler ... not found
./configure: error: C compiler gcc is not found
解决方法:安装gcc
yum install gcc
./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-devel解决问题 (root用户下安装)
yum -y install pcre-devel
继续报错误
./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.
需要安装 yum install -y zlib-devel
在继续执行 ./configure --prefix=/opt/nginx 安装编译成功
第四步:
make && make install
第五步:
cd /opt/nginx/sin
./nginx
然后打开浏览器输入IP地址 显示
Welcome to nginx!
xxxxxxxxx
安装成功
原文地址:http://www.itmmd.com/201410/73.html
该文章由 android开发 整理发布,转载须标明出处。。
- centos6安装nginx最详细步骤,覆盖缺少库的完整解决方案
- CentOS6.0虚拟机上安装nginx启动的错误---缺少libpcre.so.1共享库
- python安装paramiko库的最完整步骤
- CentOS6.2下fastDFS的完整安装和配置步骤
- CentOS6.4下fastDFS的完整安装和配置步骤
- nginx 升级指南,最详细的nginx升级步骤
- CentOS6.8 详细安装步骤
- 最详细的nginx安装文档
- centos6.8手动安装redis-3.2.8的详细步骤
- Centos6.5下本地安装Bowtie2的详细步骤
- centos6.3安装nginx php mysql步骤
- Centos6.3编译安装nginx+php步骤
- vmware安装CentOS6.4详细步骤
- VMware11.1.2安装CentOS6.7详细步骤
- centOS6.5编译安装jdk详细步骤
- Linux Centos6 安装Nginx详细图解教程
- 目前国内最完整详细的 CDlinux 硬盘安装手册
- centos6 redis 安装(yum和源码安装)完整步骤
- 实验二之线性表
- 九度OJ 1052 找x
- firefox下的插件
- USB学习二:从USB设备插上到驱动probe调用流程分析(转)
- Spring aop切面做日志处理操作
- centos6安装nginx最详细步骤,覆盖缺少库的完整解决方案
- Leetcode - ZigZag Conversion
- 栈&堆 数据结构 内存
- 注册时手机获取验证码倒计时,使用CountDownTimer类轻松实现倒计时功能
- win7(64位)彻底卸载mysql,重装不再烦恼
- Java集合框架总结(2)——Set接口的使用
- 【vim小记】vim的高效移动
- terracota ehcache配置详解
- 字符串与多维数组实验