chkconfig --add 服务名
chkconfig --del 删除服务名
chkconfig --list 展示自启动的服务
将redis安装为服务时,发现自动启动了,需要删除自动启动
[root@VM-4-2-centos redis]# chkconfig --list
注:该输出结果只显示 SysV 服务,并不包含
原生 systemd 服务。SysV 配置数据
可能被原生 systemd 配置覆盖。
要列出 systemd 服务,请执行 'systemctl list-unit-files'。
查看在具体 target 启用的服务请执行
'systemctl list-dependencies [target]'。
netconsole 0:关 1:关 2:关 3:关 4:关 5:关 6:关
network 0:关 1:关 2:开 3:开 4:开 5:开 6:关
redis_6379 0:关 1:关 2:开 3:开 4:开 5:开 6:关
redis_6380 0:关 1:关 2:开 3:开 4:开 5:开 6:关
redis_6381 0:关 1:关 2:开 3:开 4:开 5:开 6:关
[root@VM-4-2-centos redis]# chkconfig --del redis_6379
[root@VM-4-2-centos redis]# chkconfig --del redis_6380
[root@VM-4-2-centos redis]# chkconfig --del redis_6381
[root@VM-4-2-centos redis]# chkconfig --list
注:该输出结果只显示 SysV 服务,并不包含
原生 systemd 服务。SysV 配置数据
可能被原生 systemd 配置覆盖。
要列出 systemd 服务,请执行 'systemctl list-unit-files'。
查看在具体 target 启用的服务请执行
'systemctl list-dependencies [target]'。
netconsole 0:关 1:关 2:关 3:关 4:关 5:关 6:关
network 0:关 1:关 2:开 3:开 4:开 5:开 6:关