Ubuntu Compiler installation Nginx

Source: Internet
Author: User
Tags install openssl openssl library php tutorial
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.

  • 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.