coffee_cn

1.查看开机自启项
centos7自启项已不用chkconfig改为:
systemctl list-unit-files
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动。

当然还可以过滤一下 比如:查看启动项
systemctl list-unit-files | grep enable

2.设置开机自启项
systemctl enable redis
systemctl enable nginx.service

启动nginx
systemctl start nginx.service

结束nginx
systemctl stop nginx.service

重启nginx
systemctl restart nginx.service

分类:

技术点:

相关文章:

  • 2021-09-27
  • 2022-02-10
  • 2021-12-04
  • 2022-02-10
  • 2021-11-29
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2022-02-03
  • 2022-12-23
  • 2021-11-17
  • 2021-07-19
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案