#### 1.服务相关
开启/关闭服务开机自启动:
systemctl enable/disable xxx
查看服务状态/开启/关闭服务:
systemctl status/start/stop xxx
```
#禁用服务(开机不启动)
systemctl disable xxx
#启用服务(开机启动)
systemctl enable xxx
#服务状态,start/stop则开关服务
systemctl status xxx
```
#### 2.定时任务
crontab
-e:编辑当前用户的定时任务文件
-l:列出当前用户的定时任务
-r:删除当前用户的定时任务
格式:
\* * * * * cmd
| | | | |
分时日月周
服务名:crond