问一个关于程序自启动的奇怪问题
Tofloor
poster avatar
jerry79
deepin
2016-10-10 17:47
Author
以前使用的linux版本钟,使用sudo apt-get install postgresql nginx安装这两个软件,装完后都是可以开机自启动的,但是在deepin上却无法自启,必须手动启动才行。
我查看了/etc/init.d目录和/etc/rc0.d目录,都包含这两个程序,我还使用update-rc.d重新将这两个程序加入自启动,依然不行,有人遇到过同样的问题吗?谢谢!



Reply Favorite View the author
All Replies
avatar
s***3@21cn.com
deepin
2016-10-10 18:13
#1
试试 systemctl 命令
  1. systemctl enable postgresql

  2. systemctl enable nginx
Copy the Code
Reply View the author
avatar
Island
deepin
2016-10-10 18:29
#2
楼上正解,每个发型版可能不同,你之前是加在开机自启动脚本里吧。
Reply View the author
avatar
jerry79
deepin
2016-10-11 17:30
#3
https://bbs.deepin.org/post/44378
试试 systemctl 命令

非常感谢,但是我试了,还是不行,今早开机第一件事就是看看nginx有没有启动,结果发现还是没有,如下图

Reply View the author
avatar
s***3@21cn.com
deepin
2016-10-12 17:36
#4
额。。不知道怎么整了,俺小白一枚。
Reply View the author