安装管理手册P106
#yum install xinetd 轻量级internet daemon
#service xinetd start/status
#yum install telnet-server
1) wget http://localhost/testfile OK, but wget http://localhost FAIL, 是因为默认welcome的index.html的label不同。
如果把默认welcome的index.html拷过来则可以,因为继承目录的label
2)semanage port -l
telnetd_port_t 23
http_port_t 80...
#systemctl start telnet.socket
此时telnet localhost 23 OK
3)测试telnet google.com 80
直接输入GET / HTTP/1.1是OK的
测试telnet localhost 12345
直接输入GET / HTTP/1.0是OK的
结论: telnet.socket只影响telnetd对port 23的listen相关,也无需/etc/xinet.d/telnet