deepin开机自动启动服务备忘

此生再无相见时 提交于 2020-02-25 21:22:58
systemctl enable mysql.service(设置开机自启)
sudo systemctl start nginx.service
sudo systemctl restart nginx.service
$ sudo systemctl stop nginx.service

PS:使用命令 systemctl is-enabled postfix.service 得到的值可以是enable、disable或static,这里的 static 它是指对应的 Unit 文件中没有定义[Install]区域,因此无法配置为开机启动服务。

刚刚配置的服务需要让systemctl能识别,就必须刷新配置

systemctl daemon-reload

sudo systemctl daemon-reload
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!