zoukankan      html  css  js  c++  java
  • Ubuntu查看系统服务

    Linux服务是Linux系统非常重要的一环,查看服务,需要用到chkconfig工具,然而在Ubuntu 12.0版本,却没有查找到此命令。

    查询stackOverflow获取了正确答案,对于Ubuntu 12.0版本可以用sysv-rc-conf命令来代替,安装命令如下:

    sudo apt-get install sysv-rc-conf

    安装完成后,默认安装在/usr/sbin目录下。

    切换到该目录,直接用普通用户运行,会报权限错误,切换到root用户,运行即可查看所有的服务:

    root@ubuntu:/usr/sbin# ./sysv-rc-conf --list
    acpid 2:on 3:on 4:on 5:on
    alsa-utils 0:off 1:off 6:off S:on
    anacron 2:on 3:on 4:on 5:on
    apparmor S:on
    apport 2:on 3:on 4:on 5:on
    avahi-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    bluetooth 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    brltty S:on
    console-setu S:on
    cron 2:on 3:on 4:on 5:on
    cups 1:off 2:on 3:on 4:on 5:on
    cups-browsed 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    dbus 2:on 3:on 4:on 5:on
    dns-clean S:on
    grub-common 2:on 3:on 4:on 5:on
    halt 0:off
    irqbalance 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    kerneloops 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    keyboard-set S:on
    killprocs 1:on
    kmod S:on
    lightdm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    network-mana
    networking 0:off 6:off S:on
    ondemand 2:on 3:on 4:on 5:on
    open-vm-tool 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    plymouth 0:off 2:on 3:on 4:on 5:on 6:off
    plymouth-log S:on
    pppd-dns S:on
    procps S:on
    rc.local 2:on 3:on 4:on 5:on S:on
    reboot 6:off
    resolvconf 0:off 6:off S:on
    rsync 2:on 3:on 4:on 5:on
    rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    saned 1:off 2:on 3:on 4:on 5:on
    sendsigs 0:off 6:off
    single 1:on
    speech-dispa 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    ssh 2:on 3:on 4:on 5:on
    thermald 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    udev S:on
    ufw 1:off S:on
    umountfs 0:off 6:off
    umountroot 0:off 6:off
    unattended-u 0:off 6:off
    urandom 0:off 6:off S:on
    uuidd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
    whoopsie 1:off 2:on 3:on 4:on 5:on
    x11-common S:on
    root@ubuntu:/usr/sbin#

  • 相关阅读:
    从0开始学习ssh之搭建环境
    yii2-user 一个好用的用户扩展
    yii2下使用支付宝
    SQL迅速增加表中记录语句
    浅谈Java分页技术
    浅谈JavaWEB入门必备知识之Servlet入门案例详解
    CSS控制之IE常见BUG及解决方案
    Java-Swing编程之对话框案例详解
    浅谈Java工具类CommonUtils的使用
    浅谈Log4j
  • 原文地址:https://www.cnblogs.com/lzp666/p/7067365.html
Copyright © 2011-2022 走看看