Linux 常用命令
服务启停
- service network status 查看指定服务的状态
- service network stop 停止指定服务
- service network start 启动指定服务
- service network restart 重启指定服务
- service --status–all 查看系统中所有后台服务
- netstat –nltp 查看系统中网络进程的端口监听情况
防火墙设置
- 防火墙根据配置文件/etc/sysconfig/iptables来控制本机的”出”、”入”网络访问行为。
- service iptables status 查看防火墙状态
- service iptables stop 关闭防火墙
- service iptables start 启动防火墙
- chkconfig iptables off 禁止防火墙自启
最轻松的学习方式莫过于在学习中找到属于自己的乐趣,与诸君共勉
浙公网安备 33010602011771号