首页天道酬勤宝塔nginx怎么设置伪静态,yum update 回退

宝塔nginx怎么设置伪静态,yum update 回退

admin 05-12 10:04 143次浏览

解压缩并转到目录

tar-zxvf nginx-1.9.15.tar.gzcd nginx-1.9.15

配置信息./configure--设置prefix=/usr/local/nginx,或不执行此步骤而将其设置为默认配置

编译安装

制造制造安装

make的过程是将用各种语言编写的源文件变成可执行文件和各种库文件。make install会将这些编译的可执行文件和库文件复制到相应的位置。

可能会发生错误

信息./configure--配置prefix=/usr/local/nginx时出错:

/configure : error : thehttprewritemodulerequiresthepcrelibrary。

解决方法:安装pcre

yum -y install pcre pcre-devel

-y跳过需要手动确认的所有阶段

没有ssl错误。 错误信息如下。

//configure : error : thehttpcachemodulerequiresmd5functionsfromopenssllibrary.youcaneitherdisablethemodulebyusing-- - orinstalltheopenssllibraryintothesystem,orbuildtheopenssllibrarystaticallyfromthesourcewithnginxbyusing-- wing

解决方法:安装openssl

yum-yinstallopensslopenssl-devel

没有编译器。 错误信息如下。

./configure : error : ccompilerccisnotfound

解决方法:安装gcc-c

yum-yinstallgcc-cautoconfautomake

autoconf是自动配置,automake是自动编译

没有zlib包。 错误信息如下。

//configure : error : thehttpgzipmodulerequiresthezliblibrary.youcaneitherdisablethemodulebyusingwithout-http _ bystp

saticallyfromthesourcewithnginxbyusingwith-zlib=option。

解决方法:安装zlib

yum install -y zlib-devel

确实,libxml2,错误信息如下。

./configure : error : thehttpxsltmodulerequiresthelibxml2/libxslt

libraries.youcaneitherdonotenablethemoduleorinstallthelibraries。

解决方法:

yum-yinstalllibxml2libxml2- dev yum-yinstalllibxslt-devel

http_image_filter_module是nginx提供的集成图像处理模块,需要gd-devel的支持,错误信息如下。

./configure : error : thehttpimagefiltermodulerequiresthegdlibrary.youcaneitherdonotenablethemoduleorinstallthelibraribribrary

解决方法:

yum -y install gd-devel

没有ExtUtils。 错误信息如下。

./configure : error : perlmoduleextutils 33603360 embedisrequired

解决方法:

yum-yinstallperl-devel perl-extutils-embed

没有GeoIP。 错误信息如下。

./configure : error : thegeoipmodulerequiresthegeoiplibrary.youcaneitherdonotenablethemoduleorinstalllthelibrary。

解决方法:

yum-yinstallgeoipgeoip-devel geo IP-data

安装成功了吗

[ root @ localhost nginx-1.2.6 ] # CD/usr/local/nginx/sbin [ root @ localhost sbin ] #./nginx-t

启动nginx

[root@localhost sbin]# ./nginx

查看端口

[ root @ localhost sbin ] # netstat-ntlp

打开浏览器访问此计算机的IP,然后在浏览器中显示欢迎使用nginx! 表示已安装Nginx,且运行正常。

当时被错误地使用如下,知道解决方法

http_image_filter_module是nginx提供的集成图像处理模块,需要gd-devel的支持,错误信息如下。

./configure : error : thehttpimagefiltermodulerequiresthegdlibrary.youcaneitherdonotenablethemoduleorinstallthelibraribribrary

解决方法:

yum -y install gd-devel

Paste Image插件如何使用TestBed和Jasmine在NativeScript中实现单元测试?RocketMQ 消息失败重试 解析——图解网站不收录应该怎么办模仿iOS版微信的滑动View效果
卸载软件时提示灾难性故障,宝塔windows输入命令 logback log4j,苹果手机新手使用教程
相关内容