first commit
This commit is contained in:
44
content/linux 入门/第一章/1.6.md
Executable file
44
content/linux 入门/第一章/1.6.md
Executable file
@@ -0,0 +1,44 @@
|
||||
#1.6### systemd 服务管理
|
||||
|
||||
1. dmesg 显示内核启动日志
|
||||
2. systemd-analyze 启动时间
|
||||
3. systemctl 服务管理
|
||||
1. systemctl poweroff 关机
|
||||
2. systemctl reboot 重启
|
||||
3. systemctl suspend 挂起
|
||||
4. systemctl hibernate 休眠
|
||||
5. /lib/systemd/system
|
||||
6. /etc/systemd/system
|
||||
7. 服务文件
|
||||
8. 目标文件
|
||||
4. journalctl 查看日志
|
||||
5. systemd-cgls 跟踪启动过程
|
||||
6. lsmod 列出内核模块
|
||||
7. modinfo 模块信息
|
||||
8. 常见端口:
|
||||
1. 80:www
|
||||
2. 25:smtp
|
||||
3. 20:ftp-data
|
||||
4. 21:ftp
|
||||
5. 23:telnet
|
||||
6. 143: imap2
|
||||
7. 110:pop3
|
||||
8. 389:ldap
|
||||
9. 443:https
|
||||
10. 465:ssmtp
|
||||
11. 989:ftps-data
|
||||
12. 990:ftps
|
||||
13. 992:telnets
|
||||
14. 993:imaps
|
||||
15. 995:pop3s
|
||||
16. 636:ldaps
|
||||
11. rsyslog 日志后台守护进程
|
||||
12. crontab 计划任务
|
||||
1. /etc/cron.daily/
|
||||
2. /var/spool/cron/crontabs/user
|
||||
3. /etc/cron.allow
|
||||
4. @daily @yearly @monthly @ weekly @hourly @reboot
|
||||
5. 分 时 日 月 星期 账号 命令
|
||||
1. a-b 区间
|
||||
2. a-b/c 间隔
|
||||
3. `*` 任意
|
||||
Reference in New Issue
Block a user