随笔分类 -  Linux

摘要:1.如果nc找不到,则yum -y install nc 2.echo stat|nc localhost 2181 阅读全文
posted @ 2021-12-25 11:51 Henry` 阅读(2132) 评论(0) 推荐(0)
摘要:查看是否有防火墙服务,没有则安装 yum install iptables-services #安装iptables(防火墙服务) systemctl使用 systemctl unmask firewalld #执行命令,即可实现取消服务的锁定 systemctl mask firewalld # 阅读全文
posted @ 2021-10-05 18:35 Henry` 阅读(534) 评论(0) 推荐(0)
摘要:解决方法: 查找被占用的端口 netstat -tln #查看端口的使用情况 netstat -tln|grep 8080 #只查看端口8080的使用情况 查看端口属于哪个程序?端口被哪个程序占用 lsof -i :8080 杀死占用端口的进程 kill -9 进程id 阅读全文
posted @ 2021-10-04 16:01 Henry` 阅读(276) 评论(0) 推荐(0)
摘要:1、卸载python3 rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps 2、 删除所有残余文件 whereis python3 |xargs rm -frv 3、查看现有安装的python whereis python 阅读全文
posted @ 2021-10-04 15:38 Henry` 阅读(2912) 评论(0) 推荐(0)