比如平时开发中用不到postgresql所以想关闭,不让开启自启动
安装了sysv-rc-conf把所有运行级别的x全部去掉了
postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
使用了sudo update-rc.d -f postgresql remove
用了上面两种方法操作,发现reboot以后服务依然健在。
第一次用homestead环境,有些还没弄清楚。
Ubuntu16.04
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
原来16.04采用了
systemctl作为系统管理,貌似update-rc.d没用了使用
sudo systemctrl disable postgresql可以使用
rcconf可以查看某项服务是否开启
sudo systemctl is-enabled postgresql查看开机自启动服务:
ls /etc/systemd/system/multi-user.target.wants