apache2 如何開機自動啓動
Tofloor
poster avatar
187******12
deepin
2017-05-11 18:04
Author
sudo update-rc.d  apache2 defaults
sudo update-rc.d apache2 enable
無效
sudo update-rc.d --help
usage: update-rc.d [-n] [-f] remove
       update-rc.d [-n] [-f] defaults
       update-rc.d [-n] disable|enable [S|2|3|4|5]
        -n: not really
        -f: force

The disable|enable API is not stable and might change in the future.


Reply Favorite View the author
All Replies
avatar
镜缘轩
deepin
2017-05-11 19:15
#1
postgresql也是同样的问题 开机不能自动启动
Reply View the author
avatar
jingle
deepin
2017-05-11 19:22
#2
Reply View the author
avatar
152******80
Advanced Packager
2017-05-11 19:34
#3
sudo systemctl enable apache2
Reply View the author
avatar
187******12
deepin
2017-05-13 12:04
#4
sudo systemctl enable apache2
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable apache2
仍然無效,只能每次手動啓動
Reply View the author
avatar
Feng Yu
deepin
2017-05-13 17:05
#5
你的apache和postgresql是怎么安装的?如果是从包管理安装的话,默认就是开机自启动的。
sudo apt install apache2 postgresql-9.6
Reply View the author
avatar
187******12
deepin
2017-05-14 06:33
#6
sudo apt-get install lamp
Reply View the author