Home >Backend Development >PHP Tutorial >How to disable self-starting programs in Homestead
For example, I don’t use postgresql in daily development, so I want to close it and prevent it from starting automatically
sysv-rc-conf and removed all x from all run levels
<code> postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]</code>
sudo update-rc.d -f postgresql remove
This is my first time using the homestead environment, and I still haven’t figured out some things.
Ubuntu16.04
Reply content:
in daily development, so I want to close it and prevent it from starting automatically
and removed all x from all run levels
<code> postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]</code>
This is my first time using the homestead environment, and I still haven’t figured out some things.
Ubuntu16.04
It turns out that 16.04 uses
systemctl
as system management. It seems that update-rc.d
is useless
Using
can
you can check whether a service is enabled
sudo systemctl is-enabled postgresql Check the self-starting service at boot:
ls /etc/systemd/system/multi-user.target.wants