Installation of Linux Nginx (reprint modified)

Source: Internet
Author: User

1.linux under Installation
1. Download pcre-8.10.tar.gz nginx-1.1.1.tar.gz
2. Install pcre let nginx support rewrite
Pcre-8.10.tar.gz upload to the/home directory
1) Unzip the Pcre
Tar zxvf pcre-8.10.tar.gz decompression pcre after home/home there will be pcre-8.10 folder
2) configuration Pcre
cd/home/pcre-8.10
./configure after you enter the command, the screen generates a bunch of files that you don't have to worry about.
3) Make
After you enter make command in Linux, the screen generates a bunch of files that you don't have to worry about.
4) Installation
Enter make install in Linux
3. Installing Nginx
Nginx-1.1.1.tar.gz upload to the/home directory
1) Decompression Nginx
Tar zxvf nginx-1.1.1.tar.gz after decompression nginx/home There will be nginx-1.1.1 folder
2 Configuring Nginx
CD nginx-1.1.1
./configure--prefix=/usr/local/nginx--with-http_stub_status_module
3) Make
After you enter make command in Linux, the screen generates a bunch of files that you don't have to worry about.
4) Installation
Enter make install in Linux
5) Check if the installation is successful
Cd/usr/local/nginx/sbin
./nginx-t
The results show:
Nginx:the configuration file/usr/local/nginx/conf/nginx.conf syntax is OK
Nginx:configuration file/usr/local/nginx/conf/nginx.conf Test is successful

On startup If you report an exception error while loading shared Libraries:libpcre.so.1:cannot open Shared object file:no such file or directory
This shows that our environment is not and the boot needs a little configuration
Workaround (Run directly):
32-bit system [email protected] lib]# ln-s/usr/local/lib/libpcre.so.1/lib
64-bit system [email protected] lib]# ln-s/usr/local/lib/libpcre.so.1/lib64


6) Start Nginx
Enter the Cd/usr/local/nginx/sbin directory below./nginx start Nginx
7) Check whether the start is successful
Enter http://127.0.0.1 in IE browser

Installation of Linux Nginx (reprint modified)

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.