yum安裝telnet服務

來源:互聯網
上載者:User

標籤:centos   telnet

yum安裝telnet服務

1.查看有無安裝telnet

[[email protected] ~]# rpm -qa |grep telnet

2.查看yum 源

[[email protected] ~]# yum list |grep telnet

telnet.x86_64                              1:0.17-48.el6              @base  

telnet-server.x86_64                       1:0.17-48.el6              @base  

[[email protected] ~]#

3.執行yum  安裝

[[email protected] ~]# yum -y install telnet-server

4.查看

[[email protected] ~]# rpm -qa |grep telnet

telnet-0.17-48.el6.x86_64

telnet-server-0.17-48.el6.x86_64

[[email protected] ~]#

5.開啟telnet服務並查看狀態

[[email protected] ~]# /etc/init.d/xinetd start

Starting xinetd:

[[email protected] ~]# service xinedt status

xinedt: unrecognized service

[[email protected] ~]# service xinetd status

xinetd (pid 9636) is running...

[[email protected] ~]#

6.查看服務有沒有安裝上

[[email protected] ~]# chkconfig --list |grep telnet

       telnet:        on

[[email protected] ~]# chkconfig --list |grep xinted

[[email protected] ~]# chkconfig --list |grep xinetd

xinetd         0:off   1:off   2:off   3:on    4:on    5:on    6:off

xinetd based services:

[[email protected] ~]#

7.查看telnet連接埠是否開啟,telnet預設連接埠為23所以用以下命令可以查看

[[email protected] ~]# netstat -apn |grep 23

tcp        0      0192.168.1.52:23            192.168.1.5:4403           ESTABLISHED 9670/in.telnetd    

tcp       0      0:::23                      :::*                       LISTEN     9636/xinetd        

unix 3      []        STREAM    CONNECTED     11923  1288/master        

[[email protected] ~]#

顯示連接埠為 listenning 然後服務為xinetd

8.測試  可以使用本伺服器測試也可以用用戶端測試

這邊是用用戶端

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M00/8B/EC/wKioL1hcy6fx9IF7AAA-I4SjXlQ819.png-wh_500x0-wm_3-wmp_4-s_439432494.png" title="image001.png" alt="wKioL1hcy6fx9IF7AAA-I4SjXlQ819.png-wh_50" />

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M01/8B/F0/wKiom1hczAri-0GVAABIylCI678788.png-wh_500x0-wm_3-wmp_4-s_2296771014.png" title="image003.png" alt="wKiom1hczAri-0GVAABIylCI678788.png-wh_50" />

這裡有一點需要注意的是預設是不允許管理員登入的

所以建立新使用者然後用新使用者登入,建立的新使用者可以在[[email protected] ~]# cat /etc/passwd

root:x:0:0:root:/root:/bin/bash

bin:x:1:1:bin:/bin:/sbin/nologin

daemon:x:2:2:daemon:/sbin:/sbin/nologin

adm:x:3:4:adm:/var/adm:/sbin/nologin

lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

sync:x:5:0:sync:/sbin:/bin/sync

shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

halt:x:7:0:halt:/sbin:/sbin/halt

mail:x:8:12:mail:/var/spool/mail:/sbin/nologin

uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin

operator:x:11:0:operator:/root:/sbin/nologin

games:x:12:100:games:/usr/games:/sbin/nologin

gopher:x:13:30:gopher:/var/gopher:/sbin/nologin

ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin

nobody:x:99:99:Nobody:/:/sbin/nologin

vcsa:x:69:69:virtual console memoryowner:/dev:/sbin/nologin

saslauth:x:499:76:"Saslauthduser":/var/empty/saslauth:/sbin/nologin

postfix:x:89:89::/var/spool/postfix:/sbin/nologin

sshd:x:74:74:Privilege-separatedSSH:/var/empty/sshd:/sbin/nologin

zuzhao:x:500:500::/home/zuzhao:/bin/bash

apache:x:48:48:Apache:/var/www:/sbin/nologin

mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash

[[email protected] ~]#

650) this.width=650;" src="http://s5.51cto.com/wyfs02/M01/8B/EC/wKioL1hczCmzRDS9AAA6fpHWC-Q406.png-wh_500x0-wm_3-wmp_4-s_697938694.png" title="image005.png" alt="wKioL1hczCmzRDS9AAA6fpHWC-Q406.png-wh_50" />

中看到然後在登入

650) this.width=650;" src="http://s1.51cto.com/wyfs02/M02/8B/EC/wKioL1hczEeRLVmZAAAm2AEM_qU896.png-wh_500x0-wm_3-wmp_4-s_305352129.png" title="image007.png" alt="wKioL1hczEeRLVmZAAAm2AEM_qU896.png-wh_50" />


完成。


本文出自 “tigase安裝與測試” 部落格,請務必保留此出處http://jiazuzhao.blog.51cto.com/1123655/1885535

yum安裝telnet服務

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.