2团日志

服务器常规设置

1. 主机信息 主机信息如上所示。 2. 安装ntp # 一般主机默认安装ntp sudo apt isntall ntp systemctl enable ntp systemctl start ntp 3. 安装fail2ban

2团 2团 Published on 2024-08-15

基于logrotate的Openresty日志切割

1. logrotate配置 cd /etc/logrotate.d/ touch nginx 在/etc/logrotate.d/文件夹下创建nginx文件,输入以下内容: /usr/local/openresty/nginx/logs/*.log { rotate 4 daily miss

2团 2团 Published on 2023-04-26
Previous Next