Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1765082
  • 博文数量: 323
  • 博客积分: 5970
  • 博客等级: 大校
  • 技术积分: 2764
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-03 23:13
文章分类

全部博文(323)

文章存档

2018年(2)

2017年(11)

2016年(10)

2015年(27)

2014年(2)

2013年(30)

2012年(197)

2011年(44)

分类: LINUX

2012-06-09 13:34:44

检查服务状态:
service --status-all

service --status-all | grep ntpd

service --status-all | less

service httpd status

列出所有服务启动级别:
chkconfig --list

列出服务和他们对应的端口:
netstat -tulpn

------------------------
  下防火墙为iptables组件,在安装一些软件的时候,iptables防火墙会阻止我们一些必要的连接,所以,我代购的美国,荷兰服务器等海外服务器iptables初始状态为关闭。如果有一些服务器没有关闭iptables,并且你还特别想关闭它,哪么以下命令,你可以能用的上。
    
    查看iptables状态:
    
    service iptables status

查看iptables状态


 
    查看iptables状态
    
    (从图中可以看到,我的服务iptables是已经关闭的,如果你的是开启状态,你可以通过一下命令关闭)
    
    iptables开机自动启动:
    
    开启: chkconfig iptables on
    
    关闭: chkconfig iptables off
    
    iptables关闭服务:
    
    开启: service iptables start
    
    关闭: service iptables stop
阅读(566) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~