Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Under CentOS yum install Nginx smooth switch mounted to Tengine     - MongoDB3.0.x version of the user authorization profile (stand-alone environment) (Database)

- How wifi-linux AP signal strength detection (Linux)

- Firewall settings oracle remote connection in Linux systems (Linux)

- Linux install the Java Runtime Environment and the output Hello World under (CentOS) (Linux)

- Hadoop vs spark (Server)

- Alien Magic: RPM and DEB Mutual Convert (Linux)

- Sublime Text - Opens the current file in a browser (Linux)

- CentOS install Java 1.8 (Linux)

- Ubuntu 14.04 install the NVIDIA driver + CUDA + MATLAB (Linux)

- CentOS7 Kubernetes used on container management (Server)

- To convert into a binary search tree sorted doubly linked list (Programming)

- Mutt - an email client that sends messages through the terminal (Linux)

- expdp reported ORA-39181 Export Processing Method (Database)

- Distributed Hadoop1.2.1 cluster installation (Server)

- Linux platform to prevent hackers to share practical skills (Linux)

- C ++: Postmodern systems programming language (Programming)

- MySQL password on those things you should know (Database)

- SSH without password Definitive Guide (Linux)

- Red Hat Linux mount U disk (Linux)

- Binary tree traversal algorithm summary (recursive and non-recursive) (Programming)

 
         
  Under CentOS yum install Nginx smooth switch mounted to Tengine
     
  Add Date : 2018-11-21      
         
         
         
  We are here to open a cloud vps, and now has been installed Nginx, now we want to switch to a smooth installation Tengine at CentOS.

Download Tengine, unpack into the folder:

wget http://tengine.taobao.org/download/tengine-2.1.0.tar.gz

tar xvfz tengine-2.1.0.tar.gz

cd tengine-2.1.0

Look at the current version of nginx:

nginx -V

Results are as follows:

nginx version: nginx / 1.6.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)
TLS SNI support enabled
configure arguments: -prefix = / etc / nginx -sbin-path = / usr / sbin / nginx -conf-path = / etc / nginx / nginx.conf -error-log-path = / var / log / nginx / error. log -http-log-path = / var / log / nginx / access.log -pid-path = / var / run / nginx.pid -lock-path = / var / run / nginx.lock -http-client-body -temp-path = / var / cache / nginx / client_temp -http-proxy-temp-path = / var / cache / nginx / proxy_temp -http-fastcgi-temp-path = / var / cache / nginx / fastcgi_temp -http- uwsgi-temp-path = / var / cache / nginx / uwsgi_temp -http-scgi-temp-path = / var / cache / nginx / scgi_temp -user = nginx -group = nginx -with-http_ssl_module -with-http_realip_module -with- http_addition_module -with-http_sub_module -with-http_dav_module -with-http_flv_module -with-http_mp4_module -with-http_gunzip_module -with-http_gzip_static_module -with-http_random_index_module -with-http_secure_link_module -with-http_stub_status_module -with-http_auth_request_module -with-mail -with-mail_ssl_module - with-file-aio -with-ipv6 -with-http_spdy_module -with-cc-opt = '- O2 -g -pipe -Wp, -D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector -param = ssp-buffer-size = 4 -m32 -march = i386 -mtune = generic -fasynchronous-unwind-tables'


Then we copy it to compile the following parameters configure arguments: the beginning until the end.

Start compiling Tengine, run the code:

./configure --prefix = / etc / nginx --sbin-path = / usr / sbin / nginx --conf-path = / etc / nginx / nginx.conf --error-log-path = / var / log / nginx / error.log --http-log-path = / var / log / nginx / access.log --pid-path = / var / run / nginx.pid --lock-path = / var / run / nginx. lock --http-client-body-temp-path = / var / cache / nginx / client_temp --http-proxy-temp-path = / var / cache / nginx / proxy_temp --http-fastcgi-temp-path = / var / cache / nginx / fastcgi_temp --http-uwsgi-temp-path = / var / cache / nginx / uwsgi_temp --http-scgi-temp-path = / var / cache / nginx / scgi_temp --user = nginx - group = nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module - with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc -opt = '- O2 -g -pipe -Wp, -D_FORTIFY_SOURCE = 2 -fexceptions -fstack-protector --param = ssp-buffer-size = 4 -m32 -march = i386 -mtune = generic -fasynchronous-unwind-tables '



./configure: error: C compiler cc is not found



Primarily our system there is no C language, now make up the gcc compiler environment:

yum install gcc

Re-run the compiler command is still being given:

./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 = option.

Missing pcre, install pcre:

yum install pcre-devel

Compile again, missing openssl:

./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 = option.

 

Install openssl:

yum -y install openssl openssl-devel
Successfully compiled again to return:

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: "/ etc / nginx"
nginx binary file: "/ usr / sbin / nginx"
nginx configuration prefix: "/ etc / nginx"
nginx configuration file: "/etc/nginx/nginx.conf"
nginx pid file: "/var/run/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/ var / cache / nginx / client_temp"
nginx dso module path: "/ etc / nginx / modules /"
nginx http proxy temporary files: "/ var / cache / nginx / proxy_temp"
nginx http fastcgi temporary files: "/ var / cache / nginx / fastcgi_temp"
nginx http uwsgi temporary files: "/ var / cache / nginx / uwsgi_temp"
nginx http scgi temporary files: "/ var / cache / nginx / scgi_temp"

MAKE, command line, make a direct hit on the line

make



make
//success



nginx stops running:

/etc/init.d/nginx stop

Migration file:

Copy objs directory nginx files to / usr / sbin / nginx directory, remember to backup before overwriting the original file:

cp / usr / sbin / nginx /usr/sbin/nginx.bak
cp objs / nginx / usr / sbin /

Test nginx:

 nginx -t

the configuration file /etc/nginx/nginx.conf syntax is ok
configuration file /etc/nginx/nginx.conf test is successful

Start nginx services:

service nginx start

Starting nginx: [OK]

Tengine test was successful:

Here we enter a nonexistent page to see being given to know

tengine successful installation

Tegine is compatible nginx configuration files, so we originally configured things no longer bother to modify it.
     
         
         
         
  More:      
 
- C ++ pointer of the (error-prone model) (Programming)
- The user of fedora is not in the sudoers file method to solve (Linux)
- Java Concurrency: synchronized (Programming)
- RedHat 6.5 installation and deployment Openfire (Server)
- About the replication of JavaScript (Programming)
- Oracle 11g contraction table space error ORA-03297: file contains used data beyondrequested RESIZE value (Database)
- Sort sql MySQL 5.6 upgrade slow Cause Analysis (Database)
- vector C ++ sequence containers (Programming)
- Linux system Iptables Firewall User Manual (Linux)
- High-performance JavaScript loops and flow control (Programming)
- HBase cluster installation and deployment (Server)
- PHP 5.3 New Features Detail (Linux)
- Shell Script: create a function and specify a directory for download (Programming)
- HttpClient4 usage upgrade from HttpClient3 (Programming)
- Ubuntu disable graphics card (Linux)
- Save the database data files into Oracle Learning (Database)
- Oracle 12C with multi-column index (Database)
- Linux add a new hard disk (Linux)
- Tree Traversals Again (Programming)
- Linux character device - user mode and kernel mode data transfer data (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.