Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux-rhel6.4 deployment nginx

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Check the installation

[root@kurolz ~] # rpm-qa pcre*pcre-devel-7.8-6.el6.x86_64pcre-7.8-6.el6.x86_64 [root@kurolz ~] # rpm-qa openssl*openssl-1.0.0-27.el6.x86_64

Install nginx

Package download address: http://nginx.org/en/download.html

[root@kurolz] # tar-zxvf nginx-1.10.3.tar.gz [root@kurolz ~] # cd ngunx-1.10.3 [root@kurolz ~] #. / configure./configure: error: the HTTP rewrite module requires the PCRE library.

Error reported, reason: pcre-devel is not installed

To solve the problem, mount the system disk and find the rpm package installation:

[root@kurolz Packages] # ls pcre*pcre-7.8-6.el6.i686.rpm pcre-7.8-6.el6.x86_64.rpm pcre-devel-7.8-6.el6.i686.rpm pcre-devel-7.8-6.el6.x8664.rpm [root @ kurolz Packages] # rpm-ivh pcre-devel-7.8-6.el6.x86_64.rpm warning: pcre-devel-7.8-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEYPreparing... # [100%] 1:pcre-devel #

Reinstall successfully:

[root@kurolz nginx-1.10.3] #. / configure checking for OS + Linux 2.6.32-358.el6.x86_64 x86_64checking for C compiler... Found + using GNU C compiler + gcc version: 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) checking for gcc-pipe switch. Found. Nginx http client request body temporary files: "client_body_temp" 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" [root@kurolz nginx-1.10.3] # make [root@kurolz nginx-1.10.3] # make install

Home page test:

[root@kurolz ~] # cd / usr/local/nginx/html [root@kurolz html] # cat index.htmlWelcome to nginx! Body {width: 35eme; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif;} Welcome to nginx!

If you see this page, the nginx web server is successfully installed andworking. Further configuration is required.

For online documentation and support please refer tonginx.org.Commercial support is available atnginx.com.

Thank you for using nginx.

Error, did not start the service:

[root@kurolz html] # curl http://localhostcurl: (7) couldn't connect to host

Successful test for enabling the service:

[root@kurolz ~] # cd / usr/local/nginx/sbin [root@kurolz sbin] # curl http://localhostWelcome to nginx! Body {width: 35eme; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif;} Welcome to nginx!

If you see this page, the nginx web server is successfully installed andworking. Further configuration is required.

For online documentation and support please refer tonginx.org.Commercial support is available atnginx.com.

Thank you for using nginx.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report