首页 > 技术文章 > denyhosts、中文文档乱码、端口占用查询

tq1226112215 2018-03-08 17:18 原文

1、安装 denyhosts, 设置 hosts.allow ,系统自动将攻击的ip 添加如 hosts.deny
2、打开中文文档乱码, 将文档下载到windows, 通过富文本编辑器查看文档编码
3、linux 查看端口占用
lsof -i:80
netstat -tunlp|grep 80
4、根据PID 查看占用程序
cd /proc/PID

推荐阅读