安装nginx,及问题解决方法
2014-10-29 13:20
225 查看
首先下载tengine包,我这里提示tengine-1.4.2.tar.gz 地址http://down.51cto.com/data/1891386
安装过程中可能常见的两种错误提示:
./configure:error:the HTTP rewrite module requires the PCRE library.
./configure:error:SSL modules require the OpenSSL library.
#tar xf tengine-1.4.2.tar.gz
#cd tengine
#./configure --help|less 分列看下帮助,这里不是像常用的--sysconfdir指定安装目录
#./configure --prefix=/usr/local/tengine --conf-path=/etc/tengine/tengine.conf
可能会有下面这种提示
./configure:error:the HTTP rewrite module requires the PCRE library.
解决方式 找到pcre-devel 包,安装 #yum install pcre-devel
可是#./configure --prefix=/usr/local/tengine --conf-path=/etc/tengine/tengine.conf --without-http_rewrite_module
如果再有下面出错提示
./configure:error:SSL modules require the OpenSSL library.
解决方式 找到openssl-devel 包,(#yum install openssl-devel)安装至到没有错误提示
即可继续向下安装。
#make
#make install
在/etc/profile 里面export PATH USER LOGNAME MAIL HOSTNAME前加一条
PATH=$PATH:/usr/local/tengine/sbin
读一下这个脚本
可重新登记下也可以。
#nginx
#netstat -tnlp 查看程序对应的端口号80
或是用其它电脑浏览器打开该机器对应的ip。可以看到nginx 的首页
本文出自 “OVER->孤鹫” 博客,请务必保留此出处http://qq6598682.blog.51cto.com/447713/1569156
安装过程中可能常见的两种错误提示:
./configure:error:the HTTP rewrite module requires the PCRE library.
./configure:error:SSL modules require the OpenSSL library.
#tar xf tengine-1.4.2.tar.gz
#cd tengine
#./configure --help|less 分列看下帮助,这里不是像常用的--sysconfdir指定安装目录
#./configure --prefix=/usr/local/tengine --conf-path=/etc/tengine/tengine.conf
可能会有下面这种提示
./configure:error:the HTTP rewrite module requires the PCRE library.
解决方式 找到pcre-devel 包,安装 #yum install pcre-devel
可是#./configure --prefix=/usr/local/tengine --conf-path=/etc/tengine/tengine.conf --without-http_rewrite_module
如果再有下面出错提示
./configure:error:SSL modules require the OpenSSL library.
解决方式 找到openssl-devel 包,(#yum install openssl-devel)安装至到没有错误提示
即可继续向下安装。
#make
#make install
在/etc/profile 里面export PATH USER LOGNAME MAIL HOSTNAME前加一条
PATH=$PATH:/usr/local/tengine/sbin
读一下这个脚本
可重新登记下也可以。
#nginx
#netstat -tnlp 查看程序对应的端口号80
或是用其它电脑浏览器打开该机器对应的ip。可以看到nginx 的首页
本文出自 “OVER->孤鹫” 博客,请务必保留此出处http://qq6598682.blog.51cto.com/447713/1569156
相关文章推荐
- Nginx 安装过程中遇到的一些问题及解决方法
- Nginx安装BugFree后/site/login 不能访问的问题解决方法--Nginx启用rewrite
- centos yum安装nginx 提示 No package nginx available问题解决方法
- linux下nginx安装详解及常见问题解决方法
- 树莓派搭建web服务器时安装nginx出现依赖问题解决方法
- centos yum安装nginx 提示 No package nginx available问题解决方法
- nginx1.11.*版本追加安装sticky模块出现问题解决方法
- .Net程序打包安装与卸载制作 系列问题解决方法
- 安装完vs.2005之后,重新安装iis后无法使用http方式访问asp.net工程的页面的问题的解决方法
- 关于在FC6中安装m68k-elf-tools交叉编译碰到的问题及解决方法
- SCO UNIXWARE 7.1.3中安装oracle 7.2.3 遇到的问题和解决方法
- SuseLInux下安装Ruby 及 Rails遇到的问题及解决方法
- winXP sp2 MDAC 2.8 安装问题解决方法
- 整理ArcSDE 安装过程出现问题以及解决方法系列
- 安装PHP可能遇到的问题“无法载入mysql扩展” 的解决方法
- 解决在安装和安装后WinCE.net 4.2时遇到的virtual PC的问题的方法
- 安装VS.NET 2003 和 SQL Server 2000 的问题及解决方法
- SQL安装中常出现的问题与解决方法
- 整理ArcSDE 安装过程出现问题以及解决方法系列
- SQL Server安装问题:程序被挂起的错误解决方法