Systemd 用于进程管理
$ su
列出
$ systemctl list-unit-files | grep enabled
$ systemctl list-unit-files | grep disabled
$ systemctl list-units --all
设置成开机启动
$ systemctl enable apache2
$ systemctl disable apache2
启动 / 关闭 / 状态
$ systemctl start apache2
$ systemctl stop apache2
$ systemctl status apache2
重载 / 重启 / 杀掉进程
$ systemctl reload apache2
$ systemctl restart apache2
$ systemctl kill apache2
没有评论:
发表评论