Centos6.5下安装Tengine

说明:系统和软件均为官方网站下载
centos6.5 +tengine2.0.3 系统安装完毕后,上传安装包进行安装。步骤如下:
################################## [root@Tengine]# rz #上传安装包 [root@Tengine]#tar
-zxf tengine-2.0.3.tar.gz #解压源码包 [root@Tengine]#cd tengine-2.0.3 [root@Tengine]# ./configure --prefix=/usr/local/nginx 。。。。。。。#此处报错,因为没有编译环境 [root@Tengine]#yum install gcc #安装编译环境 [root@Tengine]#./configure --prefix=/usr/local/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. [root@Tengine]#yum install pcre-devel [root@Tengine]# ./configure --prefix=/usr/local/nginx  #下面会报错 ,因为编译环境缺少部分组件 ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-openssl=<path> option. [root@Tengine]# yum install openssl [root@Tengine]# ./configure --prefix=/usr/local/nginx  #下面会报错 ,因为编译环境缺少部分组件 ./configure: error: SSL modules require the OpenSSL library. You can either do not enable the modules, or install the OpenSSL library into the system, or build the OpenSSL library statically from the source with nginx by using --with-openssl=<path> option. [root@Tengine]#yum install openssl-devel [root@Tengine]# ./configure --prefix=/usr/local/nginx #正确的配置情况如下 Configuration summary + using system PCRE library + using system OpenSSL library + md5: using OpenSSL library + sha1: using OpenSSL library + using system zlib library + jemalloc library is disabled nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/sbin/nginx" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx dso module path: "/usr/local/nginx/modules/" 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" [root@Tengine]#make [root@Tengine]#make install
#############################################安装完毕

 

posted @ 2014-06-07 19:42  Hello.C  阅读(761)  评论(0编辑  收藏  举报