Compile nginx on DebainSarge or Etch

Source: Internet
Author: User
Compile nginx-Linux Release Technology-Debian information on DebainSarge or Etch. The following is a detailed description. I mentioned the efficient nginx network server a few days ago and now I like it more and more. static file servers can all be changed to use it :)

Here we record the process of installing nginx In Debian Linux (Sarge 3.1 or Etch 4.0:

First install some necessary library functions:
Apt-get install zlib1g-dev libpcre3 libgcrypt11-dev libpcre3-dev libssl-dev

Download nginx's latest package (to http://nginx.net/download, latest version 0.5.20 ).

After decompression, go to the directory to start Configuration:

./Configure -- with-md5 =/usr/lib -- with-openssl =/usr/lib/ssl/
Make
Make install

Now nginx has been installed successfully. The executable file is/usr/local/sbin/nginx, And the configuration file is in/usr/local/nginx/conf, logs are recorded in/usr/local/nginx/logs /.

If you want to automatically execute nginx every restart, you can download the init. d script file http://notrocketsurgery.com/files/nginx or use my simple version.

Modify nginx.txt to nginx and put it in the/etc/init. d/directory. Finally, the nginx script is automatically called every time it is started.

Update-rc.d nginx ults
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.