Simple installation of Tengine on CentOS

Source: Internet
Author: User

A simple installation process   Environment description for Tengine on CentOS  centos release 5.5 (Final)  kernel \ r on an \m  installation base environment  GCC installation  yum-y Install gccyum-y Install gcc-c++  installation pcre yum-y installed pcre-devel  installation Openssl yum-y Inst All OpenSSL openssl-devel  II, download Proxy_cache plugin  cd/opt/tools/tengine/plugins/proxy_cache wget/http Labs.frickle.com/files/ngx_cache_purge-2.1.tar.gz  tar ZXVF ngx_cache_purge-2.1.tar.gz  Download the latest Tengine installation package   Do not specify directory mode installation, installed by default in url/local/nginx $./configure$ make$ sudo make install  specified directory mode installation, installed in/ Opt ./configure--prefix=/opt/tengine/nginx make make install  Specify the directory mode to install and install the cache modes, installed in the/opt . /configure--add-module=/opt/tools/tengine/plugins/proxy_cache/ngx_cache_purge-2.1--prefix=/opt/servers/tengine /nginx--with-http_stub_status_module make make install  Configure Tengine as a service startup item, and then start item Management by service tengine  Vim/etc/rc.d/init.d/nginx   #编辑启动文件添加下面内容  #!/bin/bash # nginx Startup script for the NgiNX HTTP server # It is v.0.0.2 version. # chkconfig:-About 15 # Description:nginx is a high-performance web and proxy server. # It has a lot of features, but it's not for everyone. # processname:nginx # pidfile:/ var/run/nginx.pid # Config:/usr/local/nginx/conf/nginx.conf nginxd=/opt/servers/tengine/nginx/sbin/ nginx nginx_config=/opt/servers/tengine/nginx/conf/nginx.conf nginx_pid=/opt/servers/tengine/nginx/ Logs/nginx.pid retval=0 prog= "Nginx"  # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [${networking} = "No"] && exit 0 [-X $ngin XD] | | Exit 0 # Start Nginx daemons functions. start () { if [-e $nginx _pid];then echo "Nginx already runnin G .... " exit 1 fi echo-n $" Starting $prog: " daemon $nginxd-C ${nginx_config} retval=$?"  echo&nBsp [$RETVAL = 0] && touch/var/lock/subsys/nginx return $RETVAL  } # Stop nginx daemons functions.&nb Sp;stop () { echo-n $ "stopping $prog:"  killproc $nginxd  retval=$? echo [$RETVAL = 0] &&am P Rm-f/var/lock/subsys/nginx/opt/servers/tengine/nginx/logs/nginx.pid } reload () { echo-n $ " Reloading $prog: "  #kill-hup ' cat ${nginx_pid} '  killproc $nginxd-hup retval=$? echo }  # See how we were Called. case "$" in start)  start ;;  stop)  stop ;;  reload)  reload ;;  restart)  stop start ;;    status)  status $prog  RETVAL=$? ;;  *)  echo $ "Usage: $prog {start|stop|restart|reload|status|help}"  exit 1 esac exit $RETVAL   Save exit  # chmod 775/etc/rc.d/init.d/nginx   #赋予文件执行权限 # chkconfig Nginx on   #设置开机启动 #/etc/rc.d/init.d/ Nginx restart # Service Nginx Restart

Simple installation of tengine on CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.