tar zxvf tengine-2.3.2.tar.gz
[root@localhost tenginemy]# ls
tengine-2.3.2 tengine-2.3.2.tar.gz
[root@localhost tenginemy]# cd tengine-2.3.2
[root@localhost tengine-2.3.2]# ls
AUTHORS.te CHANGES CHANGES.te configure docs LICENSE modules README.markdown tests
auto CHANGES.cn conf contrib html man packages src THANKS.te
[root@localhost tengine-2.3.2]# ./configure
进入解压后的目录 ./configure
./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和pcre-devel 安装 yum -y install pcre pcre-devel
[root@localhost tengine-2.3.2]# yum -y install openssl openssl-devel
已加载插件:fastestmirror
Determining fastest mirrors
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
http://mirrors.cqu.edu.cn/CentOS/7.8.2003/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.cqu.edu.cn; 未知的错误"
正在尝试其它镜像。
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates
----
如果再次执行 ./configure,最后有如下信息输出,应该就算没啥问题了,接下来就可以安装了,
Configuration summary
+ using system PCRE library
+ using system 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 modules path: "/usr/local/nginx/modules"
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 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@localhost tengine-2.3.2]# ls
AUTHORS.te CHANGES.cn configure html man packages tests
auto CHANGES.te contrib LICENSE modules README.markdown THANKS.te
CHANGES conf docs Makefile objs src
[root@localhost tengine-2.3.2]# make && make install
make -f objs/Makefile
make[1]: 进入目录“/home/tenginemy/tengine-2.3.2”
./nginx 启动
[root@localhost sbin]# ./nginx
[root@localhost sbin]# ps -ef|grep nginx
root 8748 1 0 21:18 ? 00:00:00 nginx: master process ./nginx
nobody 8749 8748 0 21:18 ? 00:00:00 nginx: worker process
root 8751 1616 0 21:19 pts/0 00:00:00 grep --color=auto nginx
[root@localhost sbin]# ./nginx -s stop
[root@localhost sbin]#
[root@localhost sbin]# ps -ef|grep nginx
root 8755 1616 0 21:19 pts/0 00:00:00 grep --color=auto nginx
[root@localhost sbin]#
[root@localhost sbin]#
[root@localhost sbin]# ./nginx
[root@localhost sbin]# ps -ef|grep nginx
root 8757 1 0 21:19 ? 00:00:00 nginx: master process ./nginx
nobody 8758 8757 0 21:19 ? 00:00:00 nginx: worker process
root 8760 1616 0 21:19 pts/0 00:00:00 grep --color=auto nginx
[root@localhost sbin]#
[root@localhost sbin]# ./nginx -s reload
[root@localhost sbin]# ps -ef|grep nginx
root 8757 1 0 21:19 ? 00:00:00 nginx: master process ./nginx
nobody 8762 8757 0 21:21 ? 00:00:00 nginx: worker process
root 8764 1616 0 21:21 pts/0 00:00:00 grep --color=auto nginx
[root@localhost sbin]#
未完待续。。。