Linux under RPM installation Nginx

Source: Internet
Author: User
1. Download the Nginx RPM package
[Root@chen ~]# wget http://nginx.org/packages/centos/6/noarch/RPMS/ nginx-release-centos-6-0.el6.ngx.noarch.rpm--2015-12-31 23:05:21--  http://nginx.org/packages/centos/6/ NOARCH/RPMS/NGINX-RELEASE-CENTOS-6-0.EL6.NGX.NOARCH.RPM Parsing host nginx.org ... 206.251.255.63, 95.211.80.227, 2001:1af8:4060:a004:21::e3 is connecting nginx.org|206.251.255.63|:80 ... is connected. An HTTP request has been made and is waiting for a response ... $ OK Length: 4311 (4.2K) [Application/x-redhat-package-manager] saving to: "nginx-release-centos-6-0.el6.ngx.noarch.rpm" 100 %[================================================>] 4,311       --.-k/s in   0s      2015-12-31 23:05:25 (39.1 MB/s)-Saved "nginx-release-centos-6-0.el6.ngx.noarch.rpm" [4311/4311])

2. Unpack the RPM package
[Root@chen ~]# RPM-IVH nginx-release-centos-6-0.el6.ngx.noarch.rpmwarning: Nginx-release-centos-6-0.el6.ngx.noarch.rpm:header V4 rsa/sha1 Signature, key ID 7bd9bf62:nokeypreparing ...                ########################################### [100%]   1:nginx-release-centos   ############################# ############## [100%]

3. Installing Nginx
[Root@chen ~]# yum install nginx loaded plugin: fastestmirror, security setup installation process determining fastest mirrors* base:mirrors.skyshe.cn                                                               * extras:mirrors.skyshe.cn* Updates:mirrors.opencas.cnbase | 3.7 KB 00:00 base/primary_db | 3.6 MB 00:05 File:///mnt/repodata/repomd.xml: [Errno] Could not open/read file:///mnt/repodata/repomd.xml try another mirror. Extras |  3.4 KB 00:00 extras/primary_db | 00:00 Nginx | 2.9 KB 00:00 nginx/primary_db | 6.8 KB 00:00 Updates | 3.4 KB 00:00 updates/primary_db | 3.1 MB 00:18 Resolve dependencies--> Perform transaction checking---> Package nginx.i386 0:1.8.0-1.el6.ngx'll be installed--complete dependency calculation dependency resolution ===================================               ======================================================= Package Schema version Warehouse             Size ========================================================================================== Installing: nginx i386 1.8.0-1.el6.ngx Nginx ============================================ ==============================================install 1 package (s) Total downloads: kinstalled size:835 k OK? [Y/N]:Y Download package: nginx-1.8.0-1.el6.ngx.i386.rpm |  In KB 00:14 run Rpm_check_debug perform transaction test transaction test successfully executed transaction Warning:rpmdb altered outside of Yum. Installing: nginx-1.8.0-1.el6.ngx.i386 1/1--------------------------------------- -------------------------------Thanks for using nginx! Please find the official documentation for Nginx here:* http://nginx.org/en/docs/Commercial subscriptions for Nginx is available on:* http://nginx.com/products/--------                                             --------------------------------------------------------------verifying:nginx-1.8.0-1.el6.ngx.i386                                                            1/1 installed: nginx.i386 0:1.8.0-1.el6.ngx Complete!

4. Testing
[Root@chen ~]# Service Nginx Start is starting nginx:                                           [OK]][root@chen ~]# service nginx stop nginx:                                               [OK]

The above describes the Linux under the RPM installation Nginx, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

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