一、网络通信命令
1.网络通信命令ping
语法:ping ip地址
功能描述:测试网络的连通性
查看防火墙状态:service iptables status
关闭防火墙:
(1)重启后永久性生效
开启:chkconfig iptables on 关闭:chkconfig iptables off
(2)及时生效,重启后生效
开启:service iptables start 关闭:service iptables stop
管理防火墙也可以用图形界面
运行命令:setup
2.网络通信命令ifconfig
语法:ipconfig 选项【-a】【网卡设备标识】
-a显示所有网卡信息
功能描述:查看网络设置
例:ifconfig -a
二、系统命令
1.shutdown
语法:shutdown
功能描述:关机
例:shutdown -h now(立马关机)
2.reboot
语法:reboot
功能描述:重启