Linux基础服务(一)

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

[[email protected] 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
[[email protected] 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) <[email protected]>"
 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!

  

时间: 2024-10-07 10:12:12

Linux基础服务(一)的相关文章

Linux基础服务之lrzsz

文件版本: V1.0 文件编号: R&D0023 发布日期: 2016-11-03 编    制: 审    批: Linux基础服务之lrzsz   目录 1.文件传输4 1.1.在线安装4 1.1.1. Centos 在线安装4 1.1.2. Ubuntu在线安装4 1.2.编译安装5 1.2.1. Centos/ubuntu编译安装5 1.2.2. 检测安装5 1.3.软件使用6 1.3.1. Windows到Linux 文件6 1.3.2. Linux到Windows 文件6 1.3.3

Linux基础服务搭建及管理

20141010V1 一.网络基础概念: OSI七层协议 TCP/IP协议 三.局域网内常用服务搭建 远程连接服务器(取得shell进行工作) 文字接口明文传输:Telnet.RSH:文字接口加密:SSH:图形接口:XDMCP.VNC.XRDP 加密方法简介: 对称加密 公钥加密私钥解密 单向加密(1雪崩效应 2定长输出) MD5 SHA1 SSH--secure shell protocol 22号端口 Client --> Server 连接步骤:1 服务器建立公钥文件 2 客户端主动连接要

Linux基础服务_DNS原理以及正反向DNS配置

DNS服务的原理介绍:         dns(Domain Name Service,域名解析服务)    为c/s架构的服务 通常默认的监听的端口为:53/tcp     53/udp 将dns服务实现的应用程序为:bind        (rpm包 )          DNS的树状结构:                                  根域为:.  tld:(Top Level Domain  顶级域)                         组织域:.com,

39.搭建Linux基础服务dhcp、samba、ftp、dns

LInux搭建各种服务器教程!   DHCP服务器: 设置永久网络配置文件路径:/etc/sysconfig/network-scripts/ifcfg-eth0 设置网卡显示配置文件路径:/etc/udev/rules.d/70-persistent-net.rules 防火墙配置文件路径:/etc/sysconfig/selinux DHCP服务的进程名:dhcpd 搭建步骤: 设置好网络,关闭防火墙功能以及防火墙服务. 安装dhcpd软件包. 复制模版文件/usr/share/doc/dh

linux基础服务,定时任务之crond

linux下有两个定时执行服务,crond和atd.at针对仅运行一次的任务,或者开机后多少时间执行的任务. 一.crond简介(centos6.5) crond是linux下用来周期性的执行某种任务或等待处理某些事件的一个守护进程,与windows下的计划任务类似,当安装完成操作系统后,默认会安装此服务工具,并且会自动启动crond进程,crond进程每分钟会定期检查是否有要执行的任务,如果有要执行的任务,则自动执行该任务. Linux下的任务调度分为两类,系统任务调度和用户任务调度. 系统任

Linux基础服务

RPM与YUM RPM就是Red Hat Package Manger(红帽软件包管理工具)的缩写.RPM 是以一种数据库记录的方式来将你所需要的软件安装到你的 Linux 系统的一套管理机制. yum是Yellow dog Updater, Modified的缩写,目的就是为了解决RPM的依赖关系的问题,方便使用者进行软件的安装.升级等等工作. Linux中软件管理工具对比: CentOS的软件管理机制也是RPM: 1.1 RPM RPM(Red Hat Pakeage Manger)即红帽软

Linux基础服务之NFS

NFS为网络文件系统,借助于RPC(远程过程调用),实现对远端文件系统的管理.在centos6.5中提供RPC服务的客户端为rpcbind. 1. 安装启动NFS 通过yum -y install nfs安装NFS服务(或是通过RPM包/源码编译安装都可以),首先启动rpcbind服务命令为service rpcbind start.(有些版本的系统是通过portmap提供RPC客户端服务,相对应的启动命令为 service portmap start),然后执行service nfs star

【Linux 基础服务之DNS】

转自:http://369369.blog.51cto.com/319630/812889 DNS原理及其解析过程精彩剖析 网络通讯大部分是基于TCP/IP的,而TCP/IP是基于IP地址的,所以计算机在网络上进行通讯时只能识别如“202.96.134.133”之类的IP地址,而不能认识域名.我们无法记住10个以上IP地址的网站,所以我们访问网站时,更多的是在浏览器地址栏中输入域名,就能看到所需要的页面,这是因为有一个叫“DNS服务器”的计算机自动把我们的域名“翻译”成了相应的IP地址,然后调出

Linux基础服务之FTP

1. 什么是FTP FTP简称文件传输协议,可以与远程计算机之间进行文件共享.该协议采用TCP协议,FTP的服务端口号为21,数据端口为20.通常情况下,传输文件的用户需要经过认证后才能登陆网站访问远程服务器的文件.大多数的FTP服务器往往会提供一个GUEST的公共账户来允许没有远程服务器的用户可以访问该FTP服务器.工作过程如下: (1)客户端向服务器发出连接请求,同时客户端系统打开一个大于1024的端口等候服务器连接(比如1028端口). (2)FTP服务器21端口侦听到该请求,那么客户端1