当前位置:网站首页 / 运维 / 正文

「实战笔记」linux某场景下的telnet安装方法

时间:2017年05月08日 | 作者 : 刘相涛 | 分类 : 运维 | 浏览: 710次 | 评论 0

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q telnet

package telnet is Not installed

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q xinetd

package xinetd is not installed

[root@iZ23ak12ta7Z yum.repos.d]# yum install telnet

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

http://mirrors.163.com/centos/5/addons/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found

Trying other mirror.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: addons. Please verify its path and try again

[root@iZ23ak12ta7Z ~]# ll /etc/yum.repos.d/

总计 24

-rw-r--r-- 1 root root 3026 05-08 17:00 aliyun-5.repo

drwxr-xr-x 2 root root 4096 05-08 16:51 backup

-rw-r--r-- 1 root root  160 05-08 16:57 centos5.repo

-rw-r--r-- 1 root root 1499 05-08 17:01 CentOS-Base-163.repo

-r--r--r-- 1 root root 1206 05-08 17:01 epel.repo

-rwxr-xr-x 1 root root 1706 2015-06-10 rhel-debuginfo.repo 

[root@iZ23ak12ta7Z yum.repos.d]# vi CentOS-Base-163.repo

# CentOS-Base.repo

# The mirror system uses the connecting IP address of the client and the

# update status of each mirror to pick mirrors that are updated to and

# geographically close to the client.  You should use this for CentOS updates

# unless you are manually picking other mirrors.

# remarked out baseurl= line instead.

[base]

name=CentOS-5 - Base - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/  ← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#released updates

[updates]

name=CentOS-5 - Updates - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released

[addons]

name=CentOS-5 - Addons - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful

[extras]

name=CentOS-5 - Extras - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-5 - Plus - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users

[contrib]

name=CentOS-5 - Contrib - 163.com

baseurl=http://vault.centos.org/5.11/os/x86_64/← http://mirrors.163.com/centos/5/addons/x86_64/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

[root@iZ23ak12ta7Z yum.repos.d]# yum install telnet

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

addons                                                                                      | 1.1 kB     00:00

addons/primary                                                                         | 1.3 MB     00:06

addons                                                                                        3667/3667

base                                                                                           | 1.1 kB     00:00

base/primary                                                                             | 1.3 MB     00:16

base                                                                                             3667/3667

epel                                                                                             | 1.1 kB     00:00

epel/primary                                                                                 | 1.3 MB     00:05

epel                                                                                               3667/3667

extras                                                                                           | 1.1 kB     00:00

extras/primary                                                                               | 1.3 MB     00:05

extras                                                                                              3667/3667

updates                                                                                          | 1.1 kB     00:00

updates/primary                                                                             | 1.3 MB     00:04

updates                                                                                           3667/3667

Excluding Packages in global exclude list

Finished

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package telnet.x86_64 1:0.17-41.el5 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

=========================================

 Package           Arch          Version            Repository         Size

=========================================

Installing:

 telnet           x86_64          1:0.17-41.el5     addons        60 k

Transaction Summary

=========================================

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)

Total download size: 60 k

Is this ok [y/N]: y

Downloading Packages:

telnet-0.17-41.el5.x86_64.rpm           |  60 kB     00:00

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : telnet                       1/1

Installed:

  telnet.x86_64 1:0.17-41.el5

Complete!

[root@iZ23ak12ta7Z yum.repos.d]# yum install xinetd

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository base is listed more than once in the configuration

Repository updates is listed more than once in the configuration

Repository addons is listed more than once in the configuration

Repository extras is listed more than once in the configuration

Repository centosplus is listed more than once in the configuration

Repository contrib is listed more than once in the configuration

addons                                          | 1.1 kB     00:00

base                                              | 1.1 kB     00:00

extras                                            | 1.1 kB     00:00

updates                                          | 1.1 kB     00:00

Excluding Packages in global exclude list

Finished

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package xinetd.x86_64 2:2.3.14-20.el5_10 set to be updated

--> Finished Dependency Resolution

Dependencies Resolved

===========================================

 Package         Arch           Version               Repository               Size

============================================

Installing:

 xinetd           x86_64        2:2.3.14-20.el5_10     addons          127 k

Transaction Summary

===========================================

Install      1 Package(s)

Update       0 Package(s)

Remove       0 Package(s)

Total download size: 127 k

Is this ok [y/N]: y

Downloading Packages:

xinetd-2.3.14-20.el5_10.x86_64.rpm                      | 127 kB     00:09

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : xinetd                                            1/1

Installed:

  xinetd.x86_64 2:2.3.14-20.el5_10

Complete!

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q xinetd

xinetd-2.3.14-20.el5_10

[root@iZ23ak12ta7Z yum.repos.d]# rpm -q telnet

telnet-0.17-41.el5

[root@iZ23ak12ta7Z yum.repos.d]# service xinetd restart

停止 xinetd:                                              [失败]

启动 xinetd:                                              [确定]

[root@iZ23ak12ta7Z yum.repos.d]#

注:centos5系统官方默认已经不再提供yum支持

Yum(全称为 Yellow dog Updater, Modified)是一个在Fedora和RedHat以及CentOS中的Shell前端软件包管理器。基于RPM包管理,能够从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软件包,无须繁琐地一次次下载、安装.

推荐您阅读更多有关于“telnetxinetdyum,”的文章

猜你喜欢

额 本文暂时没人评论 来添加一个吧

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

名言警句
«   2018年12月   »
12
3456789
10111213141516
17181920212223
24252627282930
31
随机文章
友情链接
最新留言
  • 文章不错非常喜欢
  • 偶然路过,博主加油!!!
  • usermod -l developer -d /home/developer -m sftp_asyn_owngroupmod -n developer sftp_asyn_own
  • 文章不错非常喜欢
  • 赞一个,学习了
  • 向下的目录可以是非root用户
  • ChrootDirectory目录必须是root用户所有,目录开始一直往上到系统根目录为止的目录拥有者都只能是 root,用户组可以不是 root, 权限是 750 或者 755
  • [root@iZ23am9cwvgZ sftpFinance]# mount -t nfs -o rw 10.174.107.216:/alidata/sftpFinance /alidata/sftpFinance mount.nfs: rpc.statd is not running but is required for remote locking.mount.nfs: Either use '-o nolock' to keep locks local, or start statd.mount.nfs: Operation not permitted[root@iZ23am9cwvgZ sftpFinance]# /sbin/service nfslock start[root@iZ23am9cwvgZ sftpFinance]#
  • chown root:root ./sftp_bill99
  • fatal: bad ownership or modes for chroot directory "/alidata/sftpFinance/sftp_own"→chown -R root:root /alidata/sftpFinance/sftp_own
  • aliyun linux 4以前的版本的重启命令:/etc/init.d/sshd restart4以后的版本重启命令:systemctl restart sshd
  • chmod 600 ./.ssh/authorized_keyschmod 700 .ssh
  • 加油,青衫慧博客域名已更换为:qsh5.cn 麻烦贵站更新一下友链,谢谢
  • 何出此言啊兄弟
  • 背景音乐吓到我
  • 您的鼓励,我的动力
  • 我是IT客