加载中,请稍后...
加载中,请稍后...
公 告
加载中,请稍后...
我的分类
加载中,请稍后...
最新日志
加载中,请稍后...
最新评论
加载中,请稍后...
最新留言
加载中,请稍后...
登 录
加载中,请稍后...
Blog信息
加载中,请稍后...
链 接




   [转]linux系统服务
用/sbin/chkconfig命令 chkconfig --list 查看全部服务状态 
例如: 
运行chkconfig --list httpd 
看自动启动状态 
httpd 0:off 1:off 2:off 3:on 4:on 5:on 6:off 
0~6是指运行级别,一般服务器都运行在3这个级别上。 
添加为自动启动 
chkconfig --add httpd 
或者指定运行级别 
chkconfig --level 345 httpd on 
停止自动启动 
chkconfig --del httpd 
或指定运行级别 
chkconfig --level 345 httpd off 
 
chkconfig --del sendmail 
/etc/init.d/sendmail stop 
FTP服务: 
/etc/init.d/muddleftpd stop 
/etc/init.d/muddleftpd start 
/etc/init.d/muddleftpd restart 
SMTP服务: 
/etc/init.d/postfix stop 
/etc/init.d/postfix start 
/etc/init.d/postfix reload 
POP3服务: 
/etc/init.d/courier-pop3d stop 
/etc/init.d/courier-pop3d start 
/etc/init.d/courier-pop3d restart 
HTTP服务: 
/etc/init.d/httpd start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest 
JSP服务: 
/etc/init.d/resin stop/start/restart 
DNS服务: 
/etc/init.d/named stop/start/restart 
MySQL服务: 
/etc/init.d/mysqld stop/start/restart 
iptables服务: 
/etc/init.d/iptables stop/start/restart 
天长地久 发表于 2007-9-30 12:25:00    阅读全文 | 回复(0) | 引用通告 | 编辑
  • 标签:linux服务 
  • 发表评论:
    加载中,请稍后...