1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > centos7查看mysql端口号_centos7查看端口命令

centos7查看mysql端口号_centos7查看端口命令

时间:2024-05-05 20:30:02

相关推荐

centos7查看mysql端口号_centos7查看端口命令

查看Centos端口命令:

netstat -lntp #查看监听(Listen)的端口

netstat -antp #查看所有建立的TCP连接

其他关于查看服务器网络信息命令: 1、查看Linux系统主机名: Linux学习,http:// .cn

hostname

localhost.localdomain 2、查看服务器IP地址:

ifconfig|grep 'inet addr:'|grep -v '127.0.0.1'|cut -d: -f2|awk '{ print $1}'

192.168.17.238 192.168.1.9 3、查看linux网关:

route |grep default

default 192.168.1.1 0.0.0.0 UG 0 0 0 em1 4、查看linux打开服务:

chkconfig --list|grep 启用 #查看开启的服务

sshd 0:关闭 1:关闭 2:启用 3:启用 4:启用 5:启用 6:关闭 httpd 0:关闭 1:关闭 2:关闭 3:启用 4:关闭 5:关闭 6:关闭 5、查看服务器DNS配置:

cat /etc/resolv.conf

nameserver 192.168.0.66 nameserver 202.106.0.20 6、其他网络信息:

iptables -L #查看防火墙规则

route -n #查看路由表

netstat -s #查看网络统计信息

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。