[关闭]
@Mr-13 2020-01-14T03:58:12.000000Z 字数 376 阅读 40

CentOS7服务开机启动和禁用的方法

Linux


  1. [root@mr13 ~] systemctl enable nginx
  1. [root@mr13 ~] systemctl disable nginx
  1. [root@mr13 ~] systemctl list-unit-files
  2. # 开机启动项列表会很长,有300+项;可以用管道筛选需要的服务名称,例如:
  3. [root@mr13 ~] systemctl list-unit-files | grep nginx
  1. [root@mr13 ~] systemctl start nginx
  1. [root@mr13 ~] syatemctl restart nginx
  1. [root@mr13 ~] systemctl stop nginx
  1. [root@mr13 ~] systemctl status nginx
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注