Created
August 24, 2021 07:57
-
-
Save peter-y/367e4a4afffbd2699b64b7477aa4b68e to your computer and use it in GitHub Desktop.
linux #network #command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firewall-cmd --permanent --service=redis --add-port=16379/tcp | |
firewall-cmd --permanent --new-service=zookeeper | |
firewall-cmd --permanent --service=zookeeper --add-port=2181/tcp | |
firewall-cmd --permanent --service=zookeeper --add-port=3888/tcp | |
firewall-cmd --zone=public --add-service=zookeeper --permanent | |
firewall-cmd --permanent --new-service=nginx | |
firewall-cmd --permanent --service=nginx --add-port=80/tcp | |
firewall-cmd --permanent --service=nginx --add-port=443/tcp | |
firewall-cmd --zone=public --add-service=nginx --permanent | |
#显示端口监听 | |
ss -tanl | |
netstat -ntpl | |
ip link show | |
ip route show | |
ip a | |
#centos8 中使用networkmanager管理网络 | |
#设备 或者nmcli d show | |
nmcli device show | |
#连接 | |
nmcli c show | |
#查看某个网卡详细信息 | |
nmcli c show enp0s8 | |
#关闭无线网络 | |
nmcli r all off | |
iptables -L -n | |
#查看路由 | |
ip ro li |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment