1. List All Services, Using '–list' parameter will displayed all services and their current status in each run-level configuration.
[ahmed@server ~]# chkconfig --listmyservermgesrv 0:off 1:off 2:on 3:on 4:on 5:on 6:offabc-servc 0:off 1:off 2:off 3:on 4:off 5:on 6:offxyz:ahmed 0:off 1:off 2:off 3:on 4:off 5:on 6:off...
2. Adding mysqld, zabbix-server, zabbix-agent, httpd to chkconfig
[ahmed@server ~]# chkconfig --level 235 mysqld on[ahmed@server ~]# chkconfig --level 235 zabbix-server on[ahmed@server ~]# chkconfig --level 235 zabbix-agent on[ahmed@server ~]# chkconfig --level 235 httpd on
3. To Disable any run-level use the off parameter.
[ahmed@server ~]# chkconfig --level 2 mysqld off
Comments
Post a Comment