Update Source: Apt-get update
Upgrade Software: Apt-get upgrade
Update system: Apt-get Dist-upgrade
Apt-get Install OpenSSL
Apt-get Install Libssl-dev
Yum-y Install OpenSSL Openssl-devel
Groupadd Www-data
Useradd-g Www-data Www-data
The above-mentioned nonsense may be used
Download Zlib pcre OpenSSL
./configure--prefix=/usr/local/tengine--user=www-data--group=www-data--with-zlib=/home/zlib-1.2.8--with-pcre=/ home/pcre-8.36--with-openssl=/home/openssl-1.0.1k
(Here the zlib pcre and OpenSSL are the downloaded files after the extracted path)
Configuration Summary
+ Using PCRE library:/home/pcre-8.36
+ Using OpenSSL library:/home/openssl-1.0.1k
+ md5:using OpenSSL Library
+ sha1:using OpenSSL Library
+ using Zlib library:/home/zlib-1.2.8
+ Jemalloc Library is disabled
Nginx path prefix: "/usr/local/tengine"
Nginx binary file: "/usr/local/tengine/sbin/nginx"
Nginx configuration prefix: "/usr/local/tengine/conf"
Nginx configuration file: "/usr/local/tengine/conf/nginx.conf"
Nginx pid file: "/usr/local/tengine/logs/nginx.pid"
Nginx error log file: "/usr/local/tengine/logs/error.log"
Nginx HTTP access log file: "/usr/local/tengine/logs/access.log"
Nginx HTTP client request body Temporary files: "Client_body_temp"
Nginx DSO Module path: "/usr/local/tengine/modules/"
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"
To start Nginx, execute the/usr/local/nginx/sbin/nginx command directly. Once the Nginx is started, it can be controlled by the Nginx plus-s parameter call. The syntax format used is:
Nginx-s Signal
Where signal can be one of the following parameters:
* Stop Quick Close
* Quit gracefully off
* Reload Reload configuration file
* Reopen reopen log file
Modify the path variable to replace #/usr/local/nginx/sbin/nginx # Nginx
Modify/etc/profile last add a row
Export Path=/usr/local/tengine/sbin: $PATH
Restart
Source/etc/profile
Add Boot Boot
echo "/usr/local/tengine/sbin/nginx" >>/etc/rc.local
The above describes the Ubuntu compiler installation Nginx, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.