记录tengine的安装过程

 

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]#

未完待续。。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值