Chinaunix首页 | 论坛 | 博客
  • 博客访问: 154218
  • 博文数量: 51
  • 博客积分: 750
  • 博客等级: 上士
  • 技术积分: 440
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-26 17:27
文章分类

全部博文(51)

文章存档

2012年(11)

2011年(40)

分类:

2011-11-24 11:21:42

原文地址:如何操作linux系统服务 作者:zhuzusong

用/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
提供的系统服务,详见下表
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 stop/start/restart
JSP服务:
/etc/init.d/resin stop/start/restart
DNS服务:
/etc/init.d/named stop/start/restart
MySQL服务:
/etc/init.d/mysqld stop/start/restart
阅读(660) | 评论(0) | 转发(0) |
0

上一篇:Core文件的分析

下一篇:Crontab 命令详解

给主人留下些什么吧!~~