Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
apache2 如何開機自動啓動
Apps Section
1346
views ·
6
replies ·
To
floor
Go
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
Like 0
Favorite
View the author
All Replies
镜缘轩
deepin
2017-05-11 19:15
#1
postgresql也是同样的问题 开机不能自动启动
Reply
Like 0
View the author
jingle
deepin
2017-05-11 19:22
#2
https://bbs.deepin.org/user/30944
一起看看吧
Reply
Like 0
View the author
152******80
Advanced Packager
2017-05-11 19:34
#3
sudo systemctl enable apache2
Reply
Like 0
View the author
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
Like 0
View the author
Feng Yu
deepin
2017-05-13 17:05
#5
你的apache和postgresql是怎么安装的?如果是从包管理安装的话,默认就是开机自启动的。
sudo apt install apache2 postgresql-9.6
Reply
Like 0
View the author
187******12
deepin
2017-05-14 06:33
#6
sudo apt-get install lamp
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
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.