当前位置: 首页 > Linux

003_linux命令总结

时间:2023-04-06 03:39:46 Linux

003_linux命令总结0th1thfirewallfirewall-cmd命令firewall-cmd--list-portsfirewall-cmd--add-port=9092/tcp--permanent--permanent参数必须加上manfirewall-cmd才能开启端口号最后一定要用reload重新加载,否则不会生效firewall-cmd--reloadfirewall-cmd--remove-port=9092/tcpcloseport2thnetstat-lnpt2181portand9092portareoccupiedcases,,,当zookeepercrash时,用命令关闭zookeeper是不好的。需要使用kill-9结束进程,同时配合netstat-lnpt查看效果。netstat-lnpt命令无法查看效果,因为zookeeper死了,zookeeper命令没有反应。命令总结如下netstat-lnpt|grep2181kill-921813thotherwhereisjavawhereisredisEnd