当前位置:操作系统 > Unix/Linux >>

如何操作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

  Prim@Hosting提供的系统服务,详见下表

  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

  

上一个:深入理解Linux的系统调用
下一个:忘了root的密码怎么办?

更多Unix/Linux疑问解答:
路由原理介绍
子网掩码快速算法
改变网络接口的速度和协商方式的工具miitool和ethtool
Loopback口的作用汇总
OSPF的童话
增强的ACL修改功能
三层交换机和路由器的比较
用三层交换机组建校园网
4到7层交换识别内容
SPARC中如何安装Linux系统(2)
SPARC中如何安装Linux系统(1)
用Swatch做Linux日志分析
实战多种Linux操作系统共存
浅析Linux系统帐户的管理和审计
Linux2.6对新型CPU的支持(2)
电脑通通透
玩转网络
IE/注册表
DOS/Win9x
Windows Xp
Windows 2000
Windows 2003
Windows Vista
Windows 2008
Windows7
Unix/Linux
苹果机Mac OS
windows8
安卓/Android
Windows10
如果你遇到操作系统难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,