码迷,mamicode.com
首页 > 系统相关 > 详细

Linux基础服务(一)

时间:2017-03-20 15:15:00      阅读:569      评论:0      收藏:0      [点我收藏+]

标签:ber   inf   lang   creat   tps   net   x86_64   mirror   pre   

作业一:nginx服务
1、二进制安装nginx包

[root@bogon yum.repos.d]# yum clean all
Loaded plugins: fastestmirror, langpacks
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@bogon yum.repos.d]# yum install nginx -y
Loaded plugins: fastestmirror, langpacks
base                                                                                                                                            | 3.6 kB  00:00:00     
epel/x86_64/metalink                                                                                                                            | 5.0 kB  00:00:00     
epel                                                                                                                                            | 4.3 kB  00:00:00     
extras                                                                                                                                          | 3.4 kB  00:00:00     
updates                                                                                                                                         | 3.4 kB  00:00:00     
epel/x86_64/primary_db         FAILED                                                                                                ]  0.0 B/s |    0 B  --:--:-- ETA 
http://mirror01.idc.hinet.net/EPEL/7/x86_64/repodata/a30e4c232554fc53f8a7cdcac17f531057813ebd07bd3bb376aa6b349bc10cb1-primary.sqlite.xz: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn‘t help to resolve this issue please create a bug on https://bugs.centos.org/

(1/7): base/7/x86_64/group_gz                                                                                                                   | 155 kB  00:00:02     
(2/7): extras/7/x86_64/primary_db                                                                                                               | 139 kB  00:00:01     
(3/7): epel/x86_64/updateinfo                                                                                                                   | 756 kB  00:00:21     
(4/7): base/7/x86_64/primary_db                                                                                                                 | 5.6 MB  00:00:41     
epel/x86_64/group_gz           FAILED                                          ==========================================            ] 237 kB/s |  12 MB  00:00:13 ETA 
http://sumberterbuka.beritagar.id/epel/7/x86_64/repodata/1ef1290202fb9e09f1aa15efccea3456913df8657cc0e23a1df61d9ec18e5659-comps-epel7.xml.xz: [Errno 12] Timeout on http://sumberterbuka.beritagar.id/epel/7/x86_64/repodata/1ef1290202fb9e09f1aa15efccea3456913df8657cc0e23a1df61d9ec18e5659-comps-epel7.xml.xz: (28, ‘Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds‘)
Trying other mirror.
(5/7): epel/x86_64/group_gz                                                                                                                     | 170 kB  00:00:01     
(6/7): updates/7/x86_64/primary_db                                                                                                              | 3.8 MB  00:00:50     
(7/7): epel/x86_64/primary_db                                                                                                                   | 4.6 MB  00:01:17     
Determining fastest mirrors
 * base: mirrors.yun-idc.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.btte.net
 * updates: mirrors.sohu.com
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.10.2-1.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
--> Processing Dependency: nginx-all-modules = 1:1.10.2-1.el7 for package: 1:nginx-1.10.2-1.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.10.2-1.el7.x86_64
--> Processing Dependency: libprofiler.so.0()(64bit) for package: 1:nginx-1.10.2-1.el7.x86_64
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.4-8.el7 will be installed
--> Processing Dependency: libunwind.so.8()(64bit) for package: gperftools-libs-2.4-8.el7.x86_64
---> Package nginx-all-modules.noarch 1:1.10.2-1.el7 will be installed
--> Processing Dependency: nginx-mod-stream = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
--> Processing Dependency: nginx-mod-mail = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
--> Processing Dependency: nginx-mod-http-xslt-filter = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
--> Processing Dependency: nginx-mod-http-perl = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
--> Processing Dependency: nginx-mod-http-image-filter = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
--> Processing Dependency: nginx-mod-http-geoip = 1:1.10.2-1.el7 for package: 1:nginx-all-modules-1.10.2-1.el7.noarch
---> Package nginx-filesystem.noarch 1:1.10.2-1.el7 will be installed
--> Running transaction check
---> Package libunwind.x86_64 2:1.1-5.el7_2.2 will be installed
---> Package nginx-mod-http-geoip.x86_64 1:1.10.2-1.el7 will be installed
---> Package nginx-mod-http-image-filter.x86_64 1:1.10.2-1.el7 will be installed
---> Package nginx-mod-http-perl.x86_64 1:1.10.2-1.el7 will be installed
---> Package nginx-mod-http-xslt-filter.x86_64 1:1.10.2-1.el7 will be installed
---> Package nginx-mod-mail.x86_64 1:1.10.2-1.el7 will be installed
---> Package nginx-mod-stream.x86_64 1:1.10.2-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================
 Package                                               Arch                             Version                                   Repository                      Size
=======================================================================================================================================================================
Installing:
 nginx                                                 x86_64                           1:1.10.2-1.el7                            epel                           505 k
Installing for dependencies:
 gperftools-libs                                       x86_64                           2.4-8.el7                                 base                           272 k
 libunwind                                             x86_64                           2:1.1-5.el7_2.2                           base                            56 k
 nginx-all-modules                                     noarch                           1:1.10.2-1.el7                            epel                            16 k
 nginx-filesystem                                      noarch                           1:1.10.2-1.el7                            epel                            17 k
 nginx-mod-http-geoip                                  x86_64                           1:1.10.2-1.el7                            epel                            23 k
 nginx-mod-http-image-filter                           x86_64                           1:1.10.2-1.el7                            epel                            26 k
 nginx-mod-http-perl                                   x86_64                           1:1.10.2-1.el7                            epel                            35 k
 nginx-mod-http-xslt-filter                            x86_64                           1:1.10.2-1.el7                            epel                            25 k
 nginx-mod-mail                                        x86_64                           1:1.10.2-1.el7                            epel                            53 k
 nginx-mod-stream                                      x86_64                           1:1.10.2-1.el7                            epel                            46 k

Transaction Summary
=======================================================================================================================================================================
Install  1 Package (+10 Dependent packages)

Total download size: 1.0 M
Installed size: 3.2 M
Downloading packages:
(1/11): libunwind-1.1-5.el7_2.2.x86_64.rpm                                                                                                      |  56 kB  00:00:00     
(2/11): gperftools-libs-2.4-8.el7.x86_64.rpm                                                                                                    | 272 kB  00:00:02     
warning: /rpm_bak/epel/packages/nginx-all-modules-1.10.2-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY    ]  82 kB/s | 335 kB  00:00:09 ETA 
Public key for nginx-all-modules-1.10.2-1.el7.noarch.rpm is not installed
(3/11): nginx-all-modules-1.10.2-1.el7.noarch.rpm                                                                                               |  16 kB  00:00:04     
(4/11): nginx-1.10.2-1.el7.x86_64.rpm                                                                                                           | 505 kB  00:00:15     
(5/11): nginx-filesystem-1.10.2-1.el7.noarch.rpm                                                                                                |  17 kB  00:00:00     
(6/11): nginx-mod-http-geoip-1.10.2-1.el7.x86_64.rpm                                                                                            |  23 kB  00:00:00     
(7/11): nginx-mod-http-image-filter-1.10.2-1.el7.x86_64.rpm                                                                                     |  26 kB  00:00:00     
(8/11): nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64.rpm                                                                                      |  25 kB  00:00:00     
(9/11): nginx-mod-http-perl-1.10.2-1.el7.x86_64.rpm                                                                                             |  35 kB  00:00:00     
(10/11): nginx-mod-stream-1.10.2-1.el7.x86_64.rpm                                                                                               |  46 kB  00:00:00     
(11/11): nginx-mod-mail-1.10.2-1.el7.x86_64.rpm                                                                                                 |  53 kB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                   58 kB/s | 1.0 MB  00:00:18     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-9.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:libunwind-1.1-5.el7_2.2.x86_64                                                                                                                   1/11 
  Installing : gperftools-libs-2.4-8.el7.x86_64                                                                                                                   2/11 
  Installing : 1:nginx-filesystem-1.10.2-1.el7.noarch                                                                                                             3/11 
  Installing : 1:nginx-mod-http-perl-1.10.2-1.el7.x86_64                                                                                                          4/11 
  Installing : 1:nginx-mod-mail-1.10.2-1.el7.x86_64                                                                                                               5/11 
  Installing : 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64                                                                                                         6/11 
  Installing : 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64                                                                                                  7/11 
  Installing : 1:nginx-mod-stream-1.10.2-1.el7.x86_64                                                                                                             8/11 
  Installing : 1:nginx-1.10.2-1.el7.x86_64                                                                                                                        9/11 
  Installing : 1:nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64                                                                                                  10/11 
  Installing : 1:nginx-all-modules-1.10.2-1.el7.noarch                                                                                                           11/11 
  Verifying  : 1:nginx-mod-http-xslt-filter-1.10.2-1.el7.x86_64                                                                                                   1/11 
  Verifying  : 1:nginx-mod-http-perl-1.10.2-1.el7.x86_64                                                                                                          2/11 
  Verifying  : 1:nginx-mod-mail-1.10.2-1.el7.x86_64                                                                                                               3/11 
  Verifying  : gperftools-libs-2.4-8.el7.x86_64                                                                                                                   4/11 
  Verifying  : 1:nginx-mod-http-geoip-1.10.2-1.el7.x86_64                                                                                                         5/11 
  Verifying  : 1:nginx-mod-http-image-filter-1.10.2-1.el7.x86_64                                                                                                  6/11 
  Verifying  : 1:nginx-mod-stream-1.10.2-1.el7.x86_64                                                                                                             7/11 
  Verifying  : 1:nginx-all-modules-1.10.2-1.el7.noarch                                                                                                            8/11 
  Verifying  : 1:nginx-1.10.2-1.el7.x86_64                                                                                                                        9/11 
  Verifying  : 1:nginx-filesystem-1.10.2-1.el7.noarch                                                                                                            10/11 
  Verifying  : 2:libunwind-1.1-5.el7_2.2.x86_64                                                                                                                  11/11 

Installed:
  nginx.x86_64 1:1.10.2-1.el7                                                                                                                                          

Dependency Installed:
  gperftools-libs.x86_64 0:2.4-8.el7                libunwind.x86_64 2:1.1-5.el7_2.2                         nginx-all-modules.noarch 1:1.10.2-1.el7                  
  nginx-filesystem.noarch 1:1.10.2-1.el7            nginx-mod-http-geoip.x86_64 1:1.10.2-1.el7               nginx-mod-http-image-filter.x86_64 1:1.10.2-1.el7        
  nginx-mod-http-perl.x86_64 1:1.10.2-1.el7         nginx-mod-http-xslt-filter.x86_64 1:1.10.2-1.el7         nginx-mod-mail.x86_64 1:1.10.2-1.el7                     
  nginx-mod-stream.x86_64 1:1.10.2-1.el7           

Complete!

  

 

Linux基础服务(一)

标签:ber   inf   lang   creat   tps   net   x86_64   mirror   pre   

原文地址:http://www.cnblogs.com/luchuangao/p/6589170.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!