Commit 6f23a686 authored by frank.chen's avatar frank.chen

fg

parent 17e142ff
......@@ -25,7 +25,7 @@
### git
- yum install git
- /etc/hosts 设置 git 服务器
- 添加 180.76.51.115 git.DT-DTG5.com
- 添加 180.76.51.115 git.dt-dtg5.com
- git clone adx-cn
### bashrc
......
## 概述
- 定时脚本位置:`/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
## 概述
- python2 安装 pip
- 需要先安装 setuptools
- adx-stg 服务器的 `/root/app` 下存在安装文件
- setuptools 和 pip 的安装,都是在路径下,执行 `sudo python setup.py install`
\ No newline at end of file
~/.vimrc
set fileencodings=utf-8,gbk,gb2312,gb18030
set fileencoding=utf8
set encoding=utf8
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment