时间:2021-07-01 10:21:17 帮助过:24人阅读
postgresql所以想关闭,不让开启自启动
安装了sysv-rc-conf把所有运行级别的x全部去掉了
postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
使用了sudo update-rc.d -f postgresql remove
用了上面两种方法操作,发现reboot以后服务依然健在。
第一次用homestead环境,有些还没弄清楚。
Ubuntu16.04
比如平时开发中用不到postgresql所以想关闭,不让开启自启动
安装了sysv-rc-conf把所有运行级别的x全部去掉了
postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]
使用了sudo update-rc.d -f postgresql remove
用了上面两种方法操作,发现reboot以后服务依然健在。
第一次用homestead环境,有些还没弄清楚。
Ubuntu16.04
原来16.04采用了systemctl作为系统管理,貌似update-rc.d没用了
使用sudo systemctrl disable postgresql可以
使用rcconf可以
查看某项服务是否开启sudo systemctl is-enabled postgresql
查看开机自启动服务: ls /etc/systemd/system/multi-user.target.wants