Centos查看开机服务、开机启动服务、开机禁用服务。
查看开机服务:systemctl list-unit-files
查看服务状态:systemctl status “服务名称” 如:systemctl status nginx
禁用开机服务:systemctl disable “服务名称” 如:systemctl disable nginx
添加开机服务:systemctl enable “服务名称” 如:systemctl enable nginx
Tang, Song, Yuan, Ming, Qing
查看开机服务:systemctl list-unit-files
查看服务状态:systemctl status “服务名称” 如:systemctl status nginx
禁用开机服务:systemctl disable “服务名称” 如:systemctl disable nginx
添加开机服务:systemctl enable “服务名称” 如:systemctl enable nginx
发表回复