比如平时开发中用不到postgresql所以想关闭,不让开启自启动
安装了sysv-rc-conf把所有运行级别的x全部去掉了
<code> postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]</code>
使用了sudo update-rc.d -f postgresql remove
用了上面两种方法操作,发现reboot以后服务依然健在。
第一次用homestead环境,有些还没弄清楚。
Ubuntu16.04
比如平时开发中用不到postgresql所以想关闭,不让开启自启动
安装了sysv-rc-conf把所有运行级别的x全部去掉了
<code> postgresql [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ]</code>
使用了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
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号