如何备份当前的 chkconfig 配置
How to backup current chkconfig configurations
如何备份当前的 chkconfig 配置
chkconfig --list
列出当前服务配置,以及何时(运行 级别)服务设置启动。
我需要备份 chkconfig 配置并在另一台具有相同 运行 级别的机器上恢复相同的服务。
你可以像这样将配置输出到文件chkconfig -l > /filename
然后在另一个系统上使用这个脚本 https://gist.github.com/natemccoy/9249545
如何备份当前的 chkconfig 配置
chkconfig --list
列出当前服务配置,以及何时(运行 级别)服务设置启动。
我需要备份 chkconfig 配置并在另一台具有相同 运行 级别的机器上恢复相同的服务。
你可以像这样将配置输出到文件chkconfig -l > /filename
然后在另一个系统上使用这个脚本 https://gist.github.com/natemccoy/9249545