zoukankan      html  css  js  c++  java
  • 开启telnet服务

    一、开启telnet服务

    通常telnet包是系统默认安装的,做为客户端;telnet-server包需要自行安装,做为服务端。

    (2)安装telnet-server

    yum  -y  install   telnet-server

    (4)开启telnet服务(有两种方式)

    a)vi /etc/xinetd.d/telnet,将disable=yes改成disable=no;

     b)chkconfig telnet on;如果需要设置telnet服务为开机自启动,使用命令chkconfig -add telnet或者chkconfig --add telnet

    (5)激活telnet服务

    使用命令server xinet drestart或者/etc/init.d/xinetd restart使更改生效。

    (6)测试telnet服务是否可用

    二、关闭telnet服务

    (1)关闭telnet服务(有两种方式)

    a)vi /etc/xinetd.d/telnet,将disable=no改成disable=yes;

     b)chkconfig telnet off;如果需要设置telnet服务不为开机自启动,使用命令chkconfig -del telnet或者chkconfig --del telnet

    (2)使用命令server xinetd restart或者/etc/init.d/xinetd restart使更改生效。

    (4)vi /etc/services,注释23号端口。

  • 相关阅读:
    zTree学习笔记之展开树和收起树
    添优--史上超级全面的前端面试题大集合
    springboot2.0整合jpa
    Idea快捷键
    实用工具收藏
    nginx
    SQLServer锁的机制
    centos安装jenkins
    java8
    前端开发收藏
  • 原文地址:https://www.cnblogs.com/linuxws/p/11990413.html
Copyright © 2011-2022 走看看