Linux基操

113 阅读1分钟

ping

检查网络

ping www.baidu.com

control + z 退出

网络配置

如果网络不行 可以重新配置 ping www.baidu.com 没反应 重新配置网络

cd /etc/sysconfig/network-scripts/
打开 ifcfg-ensxxxx 回车 自动提示
vi ifcfg-ens33

image.png

image.png

话说 我本地没有这样情况和 GETEWAY

重启网络

systemctl restart network

nc 安装

image.png

nc 
-bash: nc: command not found

搜索nc软件

yum search nc
yum install -y nc

查询端口 进程

lsof -i:端口

安装git

yum install -y git