[fedora可以ping通但是isReachAble返回false的原因] fedora18+ 防火墙设置原因,导致tcp端口不通,返回no route to host错误. 关闭防火墙命令: systemctl stop firewalld.service [操纵文本文件命令] 截取前10行到新文件中: head -10 chinese.txt.clean > chinese.txt.train 截取后10行到新文件中: tail -10 chinese.txt.clean > chine…