你的位置:首页 > 网络运维

Centos6.7minimal版成功安装Tengine-2.1.2全过程

1年前 (2016-11-20) 浏览:(933) 网络运维 评论(0)

[root@C67 ~]# yum install -y wget

已安装:

  wget.x86_64 0:1.12-8.el6


完毕!

[root@C67 ~]# yum install -y jemalloc jemalloc-devel

已安装:

  zlib-devel.x86_64 0:1.2.3-29.el6


完毕!

[root@C67 ~]# yum install -y pcre pcre-devel

============================


已安装:

  pcre-devel.x86_64 0:7.8-7.el6


完毕!


[root@C67 ~]# yum install -y openssl openssl-devel


已安装:

  openssl-devel.x86_64 0:1.0.1e-48.el6_8.3


作为依赖被安装:

  keyutils-libs-devel.x86_64 0:1.4-5.el6

  krb5-devel.x86_64 0:1.10.3-57.el6

  libcom_err-devel.x86_64 0:1.41.12-22.el6

  libselinux-devel.x86_64 0:2.0.94-7.el6

  libsepol-devel.x86_64 0:2.0.41-4.el6


更新完毕:

  openssl.x86_64 0:1.0.1e-48.el6_8.3


作为依赖被升级:

  krb5-libs.x86_64 0:1.10.3-57.el6          libselinux.x86_64 0:2.0.94-7.el6

  libselinux-utils.x86_64 0:2.0.94-7.el6


完毕!

[root@C67 ~]# cd /home

[root@C67 home]# ls

lost+found

[root@C67 home]# mkdir tengine

[root@C67 home]# ls

lost+found  tengine

[root@C67 home]# cd tengine/

[root@C67 tengine]# ls

[root@C67 tengine]# wget -c http://tengine.taobao.org/download/tengine-2.1.2.tar.gz


2016-11-20 22:47:40 (111 KB/s) - 已保存 “tengine-2.1.2.tar.gz” [2137295/2137295])


[root@C67 tengine]# tar -zxvf tengine-2.1.2.tar.gz


[root@C67 tengine]# cd tengine-2.1.2


[root@C67 tengine-2.1.2]# ./configure --prefix=/home/nginx --user=root --group=root --with-http_stub_status_module \

--with-http_ssl_module --with-http_gzip_static_module --with-jemalloc


[root@C67 tengine-2.1.2]# yum install gcc gcc-c++ ncurses-devel perl

已安装:

  gcc.x86_64 0:4.4.7-17.el6                   gcc-c++.x86_64 0:4.4.7-17.el6

  ncurses-devel.x86_64 0:5.7-4.20090207.el6   perl.x86_64 4:5.10.1-141.el6_7.1


作为依赖被安装:

  cloog-ppl.x86_64 0:0.15.7-1.2.el6

  cpp.x86_64 0:4.4.7-17.el6

  glibc-devel.x86_64 0:2.12-1.192.el6

  glibc-headers.x86_64 0:2.12-1.192.el6

  kernel-headers.x86_64 0:2.6.32-642.11.1.el6

  libgomp.x86_64 0:4.4.7-17.el6

  libstdc++-devel.x86_64 0:4.4.7-17.el6

  mpfr.x86_64 0:2.4.1-6.el6

  perl-Module-Pluggable.x86_64 1:3.90-141.el6_7.1

  perl-Pod-Escapes.x86_64 1:1.04-141.el6_7.1

  perl-Pod-Simple.x86_64 1:3.13-141.el6_7.1

  perl-libs.x86_64 4:5.10.1-141.el6_7.1

  perl-version.x86_64 3:0.77-141.el6_7.1

  ppl.x86_64 0:0.10.2-11.el6


作为依赖被升级:

  glibc.x86_64 0:2.12-1.192.el6       glibc-common.x86_64 0:2.12-1.192.el6

  libgcc.x86_64 0:4.4.7-17.el6        libstdc++.x86_64 0:4.4.7-17.el6

  tzdata.noarch 0:2016i-1.el6


完毕!

[root@C67 tengine-2.1.2]# yum -y install make gcc gcc-c++ ncurses-devel

更新完毕:

  make.x86_64 1:3.81-23.el6


完毕!

[root@C67 tengine-2.1.2]# yum -y install zlib zlib-devel


[root@C67 tengine-2.1.2]# yum -y install openssl openssl--devel


[root@C67 tengine-2.1.2]# ./configure --prefix=/home/nginx --user=root --group=root --with-http_stub_status_module \

--with-http_ssl_module --with-http_gzip_static_module --with-jemalloc


[root@C67 tengine-2.1.2]# ./configure --prefix=/home/nginx


[root@C67 tengine-2.1.2]# make install


[root@C67 tengine-2.1.2]# /home/nginx/sbin/nginx  -c /home/nginx/conf/nginx.conf


[root@C67 tengine-2.1.2]# ls

AUTHORS.te  CHANGES.ru  contrib         LICENSE   objs             src

auto        CHANGES.te  docs            Makefile  packages         tests

CHANGES     conf        good_configure  man       README           THANKS.te

CHANGES.cn  configure   html            modules   README.markdown


[root@C67 tengine-2.1.2]# netstat -tunlp | grep 80

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name

tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      5858/nginx


[root@C67 tengine-2.1.2]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT


[root@C67 tengine-2.1.2]# /etc/rc.d/init.d/iptables save


[root@C67 tengine-2.1.2]# /etc/init.d/iptables restart


尊重共享,欢迎转载,请自觉添加本文链接,谢谢!本文链接:https://www.601849.com/post/14.html