MAIN MENUS
UMUM
Pertanyaan?
WA: 0817-0334-1186
WA: 0817-0334-1186
Di Linux seringkali anda ingin membuat service tertentu misalnya exim, memcached, ntpd dll agar otomatis start atau dijalankan ketika server linux anda booting dan berikut ini adalah caranya.
chkconfig nama_service on
dengan perintah tersebut service biasanya akan berjalan pada runlevel 2,3,4,5 misalnya
chkconfig php-fpm on
untuk melihat status apakah service php-fpm on jalankan saja
chkconfig
atau
chkconfig --list
outputnya akan sama saja seperti berikut ini
[root@test ~]# chkconfig acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off memcached 0:off 1:off 2:on 3:on 4:on 5:on 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 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 nginx 0:off 1:off 2:on 3:on 4:off 5:on 6:off ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off ntpdate 0:off 1:off 2:off 3:off 4:off 5:off 6:off php-fpm 0:off 1:off 2:on 3:on 4:on 5:on 6:off <== disini postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 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 saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off sshd 0:off 1:off 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 xinetd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
berdasarkan informasi tersebut service php-fpm akan berjalan otomatis ketika sistem memasuki runlevel 2,3,4,5