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
6f23a686
Commit
6f23a686
authored
Mar 04, 2025
by
frank.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fg
parent
17e142ff
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
火山云-新建服务器-总结.md
火山云/火山云-新建服务器-总结.md
+1
-1
logrotate.md
通用/logrotate.md
+12
-0
pip.md
通用/pip.md
+6
-0
vim乱码.txt
通用/vim乱码.txt
+6
-0
No files found.
火山云/火山云-新建服务器-总结.md
View file @
6f23a686
...
...
@@ -25,7 +25,7 @@
### git
-
yum install git
-
/etc/hosts 设置 git 服务器
-
添加 180.76.51.115 git.
DT-DTG
5.com
-
添加 180.76.51.115 git.
dt-dtg
5.com
-
git clone adx-cn
### bashrc
...
...
通用/logrotate.md
0 → 100644
View file @
6f23a686
## 概述
-
定时脚本位置:
`/etc/cron.daily/logrotate`
-
注意需要压缩的日志,配置在
`/etc/logrotate.d/`
-
cat /var/lib/logrotate/logrotate.status
-
'-d' 调试模式(不切分日志文件),并输出详细处理过程日志
-
例如:
`logrotate -d /etc/logrotate.d/nginx`
## 注意
-
系统可能存在多个版本,注意看定时任务调用的哪个版本。
-
被压缩文件的权限,是否运行其他用户改写。
`logrotate 配置里增加 su 配置,比如 su root root`
\ No newline at end of file
通用/pip.md
0 → 100644
View file @
6f23a686
## 概述
-
python2 安装 pip
-
需要先安装 setuptools
-
adx-stg 服务器的
`/root/app`
下存在安装文件
-
setuptools 和 pip 的安装,都是在路径下,执行
`sudo python setup.py install`
\ No newline at end of file
通用/vim乱码.txt
0 → 100644
View file @
6f23a686
~/.vimrc
set fileencodings=utf-8,gbk,gb2312,gb18030
set fileencoding=utf8
set encoding=utf8
\ No newline at end of file
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