日度归档:2020年10月22日

linux操作系统下如何查看操作系统中所有已启动的系统服务呢?


摘要:
下文讲述linux操作系统中查看所有已启动的系统服务的方法说明,如下所示;

实现思路: 
     使用命令chkconfig --list|grep on 即可列出已启动的系统服务
     (注意是双中杠)

例:
查看当前操作系统中所有已启动的系统服务

[root@iZ23ji6c7snZ ~]# chkconfig --list|grep on
aegis           0:off   1:off   2:on    3:on    4:on    5:on    6:off
blk-availability        0:off   1:on    2:off   3:off   4:off   5:off   6:off
cpuspeed        0:off   1:on    2:off   3:off   4:off   5:off   6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
haldaemon       0:off   1:off   2:off   3:off   4:off   5:off   6:off
lvm2-monitor    0:off   1:on    2:off   3:off   4:off   5:off   6:off
mdmonitor       0:off   1:off   2:off   3:off   4:off   5:off   6:off
mysqld          0:off   1:off   2:off   3:on    4:off   5:off   6:off
netconsole      0:off   1:off   2:off   3:off   4:off   5:off   6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
nscd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
ntpd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
restorecond     0:off   1:off   2:off   3:off   4:off   5:off   6:off
rsyslog         0:off   1:off   2:on    3:on    4:on    5:on    6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
sysstat         0:off   1:on    2:on    3:on    4:on    5:on    6:off
udev-post       0:off   1:on    2:on    3:on    4:on    5:on    6:off

linux操作系统下如何查看操作系统中所有系统服务呢?


摘要:
下文讲述linux操作系统中查看所有系统服务的方法说明,如下所示;

实现思路: 
     使用命令chkconfig --list 即可列出系统服务
     (注意list前面是双中杠)

例:
查看当前操作系统中所有系统服务

[root@iZ23ji6c7snZ ~]# chkconfig --list
abrt-ccpp       0:off   1:off   2:off   3:off   4:off   5:off   6:off
abrtd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
acpid           0:off   1:off   2:off   3:off   4:off   5:off   6:off
aegis           0:off   1:off   2:on    3:on    4:on    5:on    6:off
atd             0:off   1:off   2:off   3:off   4:off   5:off   6:off
auditd          0:off   1:off   2:off   3:off   4:off   5:off   6:off
blk-availability        0:off   1:on    2:off   3:off   4:off   5:off   6:off
cpuspeed        0:off   1:on    2:off   3:off   4:off   5:off   6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
haldaemon       0:off   1:off   2:off   3:off   4:off   5:off   6:off 

linux操作系统下如何查看操作系统中所有安装的软件包呢?


摘要:
下文讲述linux操作系统中查看所有安装包的方法说明,如下所示;

实现思路: 
     使用命令 rpm -qa即可查看出所有安装的软件包

例:
查看安装的软件包的信息

[root@********** ~]# rpm -qa;
basesystem-10.0-4.el6.noarch
libproxy-python-0.3.0-4.el6_3.x86_64
ncurses-base-5.7-3.20090208.el6.x86_64
selinux-policy-3.7.19-231.el6_5.3.noarch
glib2-2.26.1-7.el6_5.x86_64
abrt-addon-ccpp-2.0.8-21.el6.centos.x86_64
libcap-2.16-5.5.el6.x86_64
......