GNU/Linux >> Tutoriales Linux >  >> Linux

¿Cómo instalo chkconfig en Ubuntu?

alias chkconfig=sysv-rc-conf
chkconfig --list

sintaxis

sysv-rc-conf command line usage:  

        sysv-rc-conf --list [service name]
        sysv-rc-conf [--level <runlevels>] <service name> <on|off>

En Ubuntu, /etc/init.d ha sido reemplazado por /usr/lib/systemd. Los scripts aún pueden iniciarse y detenerse mediante 'servicio'. Pero el comando principal ahora es 'systemctl'. El comando chkconfig se quedó atrás, y ahora lo hace con systemctl.

Así que en lugar de:

chkconfig enable apache2

Debe buscar el nombre del servicio y luego habilitarlo

systemctl status apache2
systemctl enable apache2.service

Systemd se ha vuelto más fácil de averiguar si tiene un script systemd o un script /etc/init.d y hacer lo correcto.


El comando chkconfig ya no está disponible en Ubuntu. El comando equivalente a chkconfig es update-rc.d .Este comando casi es compatible con todas las nuevas versiones de ubuntu.

Los comandos similares son

update-rc.d <service> defaults

update-rc.d <service> start 20 3 4 5

update-rc.d -f <service>  remove

sysv-rc-conf es una opción alternativa para Ubuntu.

sudo apt-get install sysv-rc-conf

sysv-rc-conf --list xxxx

Linux
  1. Cómo instalar R en Ubuntu 20.04

  2. Cómo instalar Go en Ubuntu 18.04

  3. Cómo instalar R en Ubuntu 18.04

  4. Cómo instalar Redis en Ubuntu 18.04

  5. ¡Lanzamiento de Wine 6.9! Cómo instalar en Ubuntu 21.04, 20.04

Cómo instalar Let's Chat en un Ubuntu 20.04

Cómo instalar TimescaleDB en Ubuntu 20.04

Cómo instalar el servidor EteSync en Ubuntu 20.04

Cómo instalar y configurar Git en Ubuntu 20.04

Cómo instalar TeamViewer en Ubuntu 20.04 LTS

Cómo instalar Wine en Ubuntu 22.04 LTS