$ setenforce 0 #设置selinux为off,也可以通过编辑/etc/selinux/config中selinux项为disabled实现永久生效
$ service iptables stop #关闭防火墙
$ chkconfig iptables off #关闭防火墙开机自启
Telnet Server
及Xinetd
服务$ yum install telnet-server xinetd -y #安装软件
Xinetd
服务$ chkconfig xinetd on #设定守护服务为开机自动模式
$ chkconfig xinetd --list #查看守护服务的信息
Xinetd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Telnet-Server
服务$ vim /etc/xinetd.d/telnet #编辑telent-server配置文件,将禁用设置为否
Xinetd
服务$ service xinetd start
Telnet Server
服务详情$ chkconfig --list
$ ss -ntl | grep 23
$ telnet 192.168.11.11 -lmyuser #此处IP为服务端IP,mysuer为用户名,需要注意的是不允许使用root用户,需登陆后通过su命令切换到root