Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
doc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frank.chen
doc
Commits
17e142ff
Commit
17e142ff
authored
Feb 28, 2025
by
frank.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细化
parent
dd3db540
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
ssp avro 日志格式说明20250211.xls
doc-code/日志格式/ssp avro 日志格式说明20250211.xls
+0
-0
crontab.md
通用/crontab.md
+19
-0
ssh.md
通用/ssh.md
+7
-0
systemctl.md
通用/systemctl.md
+0
-0
No files found.
doc-code/日志格式/ssp avro 日志格式说明20250211.xls
0 → 100644
View file @
17e142ff
File added
通用/crontab.md
0 → 100644
View file @
17e142ff
## 概述
-
cron的使用,可以参考:
`https://www.runoob.com/w3cnote/linux-crontab-tasks.html`
-
`sudo ls -l /var/spool/cron/ /etc/cron.d`
-
查看调度任务:crontab -l //列出当前的所有调度任务
1.
crontab -e直接进入vi模式添加。此任务保存至/var/spool/cron 里面对应的用户名文件
2.
/etc/crontab 此计划任务所有人可用,格式
`* * * * * 用户名 commend (多了个用户名添加)`
-
分、时、日、月、周
3.
有如下位置存放crontab任务:
-
/etc/cron.hourly、/etc/cron.daily、/etc/cron.weekly、/etc/cron.monthly 一般 logrotate 日志压缩任务,放在 daily 中,每日执行一次。
-
/etc/crontab 一般不改这里,由root使用,需要指定用户。
`* * * * * user-name command to be executed `
-
/var/spool/cron/ 针对每个linux用户(包括root)的任务文件,crontab -e 的任务会存入这里
-
/etc/cron.d/ 系统级
-
另外:/etc/anacrontab 以一种补漏的方式来执行任务
4.
/var/log/cron 执行日志
5.
若标准输出未做重定向,则会给用户发邮件。/var/spool/mail/$user。存放邮件的文件有大小限制,超过限制后,邮件会存不进去。
6.
检查服务器已有定时任务,root 下,执行:
` ll /var/spool/cron/ /etc/cron.d/ `
以及
` more /var/spool/cron/* /etc/cron.d/* `
7.
`service crond reload `
编辑完后,执行命令使改变生效。
\ No newline at end of file
通用/ssh.md
0 → 100644
View file @
17e142ff
## 新建文件夹
-
为了 stg 能 ssh 免密登陆过来
-
用户 home 下确保存在 .ssh,没有就创建
-
mkdir ~/.ssh && chmod 700 ~/.ssh && cd .ssh
-
vi authorized_keys 并 增加 adx-stg 的 pub key
-
chmod 600 authorized_keys
\ No newline at end of file
baiduyun
/systemctl.md
→
通用
/systemctl.md
View file @
17e142ff
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment