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 --listacpid 2:on 3:on 4:on 5:onalsa-utils 0:off 1:off 6:off S:onanacron 2:on 3:on 4:on 5:onapparmor S:onapport 2:on 3:on 4:on 5:onavahi-daemon 0:off 1:off 2:on 3:on 4:on 5:on 6:offbluetooth 0:off 1:off 2:on 3:on 4:on 5:on 6:offbrltty S:onconsole-setu S:oncron 2:on 3:on 4:on 5:oncups 1:off 2:on 3:on 4:on 5:oncups-browsed 0:off 1:off 2:on 3:on 4:on 5:on 6:offdbus 2:on 3:on 4:on 5:ondns-clean S:ongrub-common 2:on 3:on 4:on 5:onhalt 0:offirqbalance 0:off 1:off 2:on 3:on 4:on 5:on 6:offkerneloops 0:off 1:off 2:on 3:on 4:on 5:on 6:offkeyboard-set S:onkillprocs 1:onkmod S:onlightdm 0:off 1:off 2:on 3:on 4:on 5:on 6:offmysql 0:off 1:off 2:on 3:on 4:on 5:on 6:offnetwork-mananetworking 0:off 6:off S:onondemand 2:on 3:on 4:on 5:onopen-vm-tool 0:off 1:off 2:on 3:on 4:on 5:on 6:offplymouth 0:off 2:on 3:on 4:on 5:on 6:offplymouth-log S:onpppd-dns S:onprocps S:onrc.local 2:on 3:on 4:on 5:on S:onreboot 6:offresolvconf 0:off 6:off S:onrsync 2:on 3:on 4:on 5:onrsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:offsaned 1:off 2:on 3:on 4:on 5:onsendsigs 0:off 6:offsingle 1:onspeech-dispa 0:off 1:off 2:on 3:on 4:on 5:on 6:offssh 2:on 3:on 4:on 5:onthermald 0:off 1:off 2:on 3:on 4:on 5:on 6:offudev S:onufw 1:off S:onumountfs 0:off 6:offumountroot 0:off 6:offunattended-u 0:off 6:offurandom 0:off 6:off S:onuuidd 0:off 1:off 2:on 3:on 4:on 5:on 6:offwhoopsie 1:off 2:on 3:on 4:on 5:onx11-common S:onroot@ubuntu:/usr/sbin#
Ubuntu查看系统服务的更多相关文章
- ubuntu 查看系统服务的列表
service --status-all
- ubuntu查看系统资源占用(内存,cpu和进程)
ubuntu查看系统资源占用(内存,cpu和进程) 1 top 查看ubuntu的资源占用的命令为$: top 说明:top命令就可以查看内存,cpu和进程了,很方便 top: 主要参数 d: ...
- Ubuntu 查看文件以及磁盘空间大小管理
(1)查看文件大小 查看当前文件夹下所有文件大小(包括子文件夹) du -sh # du -h15M ./package16K ./.fontconfig4.0K . ...
- Ubuntu 查看文件以及磁盘空间大小命令df
(1)查看文件大小 查看当前文件夹下所有文件大小(包括子文件夹) du -sh # du -h 15M ./package 16K ./.fontconfig 4.0K ...
- linux(ubuntu) 查看系统设备信息 命令
时间:2012-08-02 00:12 ubuntu查看版本命令 方法一: 在终端中执行下列指令: cat /etc/issue 方法二: 使用 lsb_release 命令也可以查看 Ubunt ...
- ubuntu查看mysql版本的几种方法
ubuntu查看mysql版本的几种方法 mysql 1:在终端下:mysql -V(大写) //代码 $ mysql -V mysql Ver 14.14 Distrib 5.5.46, for d ...
- linux(ubuntu) 查看系统设备信息
ubuntu查看版本命令 方法一: 在终端中执行下列指令: cat /etc/issue 方法二: 使用 lsb_release 命令也可以查看 Ubuntu 的版本号,与方法一相比,内容更为详细. ...
- Ubuntu 查看网关地址方法
Ubuntu 查看网关地址方法 2017年01月10日 09:03:02 阅读数:3527 1. ip route show 2.route -n or netstat -rn 3.tracerout ...
- ubuntu 查看网卡 数据包处理 速度
ubuntu 查看网卡 数据包处理 速度 sar -l 1 10 首先要安装sar .使用 apt-get install atsar sar 命令中的 "-l"參数是 net-i ...
- ubuntu查看系统资源占用(内存,cpu和进程)
http://blog.csdn.net/vivian187/article/details/51476043 http://bluexp29.blog.163.com/blog/static/338 ...
随机推荐
- kali-国内源-更新系统
1.更换国内源 vim /etc/apt/sources.list deb https://mirrors.aliyun.com/kali kali-rolling main non-free con ...
- 有趣的drop-shadow
如果写了好几个阴影,filter: drop-shadow(-0.5vmin 6vmin 0 var(--s2)) drop-shadow(-4.5vmin 10vmin 0 var(--v3));将 ...
- bash 和 zsh 中while循环的方式
bash: while true; do ./a.out; done zsh: while true; do ./a.out;
- D8-16K加密锁配置流程
1.vscode安装yttool插件,可在拓展商店中搜索ext:yt即可找到. 补充地址:https://marketplace.visualstudio.com/items?itemName=ytk ...
- csp201503-1(矩阵逆时针九十度旋转)
//矩阵变换的题,要找出两个矩阵各元素横纵坐标之间的关系 #include<bits/stdc++.h> using namespace std; int main() { int a[1 ...
- Software_programming_automation_selenium
10:52:37 Table 获取 tr list 注意会无法正常遍历获取. 修正后正常 1 public SelectionCriteriaPage checkSpecifyTag(int coun ...
- iOS开发之UIImage在压缩时失真问题,压缩图片的大小
今天遇到UIImage在压缩时失真问题,压缩图片的大小图片模糊 错误的方案 /** * 压缩图片 * image:将要压缩的图片 size:压缩后的尺寸 */ -(UIImage*) OriginIm ...
- java 枚举使用
/** * 埋点模块枚举 * @author huang */ public enum ModelEnum { PROCESS_CONTROL("流程管控", 10), TASK_ ...
- vue过滤出字符串中的汉字,match加正则
vue过滤出字符串中的汉字,match加正则 str="23申迪MTN001(102380026)";str.match(/[\u4e00-\u9fa5]/g).join(&quo ...
- Spring Boot--自定义异常类
1.业务异常 /** * @Description: 业务异常 * @Author: Yaoson * @Create: 2022/4/21 0:05 **/ public class Busines ...