上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 179 下一页
摘要: 一,测试配置是否正确? -d: 打印debug信息 -v: 显示详细的输出信息 [root@blog logrotate.d]# logrotate -d /etc/logrotate.d/secure -v 二,配置/var/log/secure按天分割 /etc/logrotate.d/secu 阅读全文
posted @ 2024-09-20 15:15 刘宏缔的架构森林 阅读(257) 评论(0) 推荐(0)
摘要: 一,配置文件中的项: opcache.enable=1 opcache.enable_cli=0 opcache.memory_consumption=128 opcache.max_accelerated_files=10000 opcache.revalidate_freq=240 opcach 阅读全文
posted @ 2024-09-20 14:37 刘宏缔的架构森林 阅读(1451) 评论(0) 推荐(0)
摘要: 一,设置nginx的日志格式: 1,编辑nginx.conf [root@blog conf]# vi nginx.conf 说明:比默认设置只是在末尾增加了 $request_time 一项 log_format main '$remote_addr - $remote_user [$time_l 阅读全文
posted @ 2024-09-20 11:58 刘宏缔的架构森林 阅读(250) 评论(0) 推荐(0)
摘要: 一,通过查看crontab中的配置,没有logroate 1,查看crontab [root@blog logrotate.d]# more /etc/crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # F 阅读全文
posted @ 2024-09-19 15:50 刘宏缔的架构森林 阅读(135) 评论(0) 推荐(0)
摘要: 一,功能: AIDE入侵检测工具的本质就是配置文件中指定文件的哈希值存储到数据库文件中,在进行检测的时候进行再次计算并对比。只能发现有区别,并不能告知区别明细 二,更新用的命令 更新您的基准 AIDE 数据库: # aide --update aide --update 命令创建 /var/lib/ 阅读全文
posted @ 2024-09-19 14:13 刘宏缔的架构森林 阅读(137) 评论(0) 推荐(0)
摘要: 一,安装whois [root@blog logs]# yum install whois 说明:whois命令不是自带命令,需要手动安装一下 二,测试查询一个域名的注册信息: [root@blog logs]# whois nidecode.com Domain Name: NIDECODE.CO 阅读全文
posted @ 2024-09-19 10:00 刘宏缔的架构森林 阅读(71) 评论(0) 推荐(0)
摘要: 一,日志按天切分: 修改.env root@lhdpc:/data/api# vi .env 指定LOG_CHANNEL值为daily即可,代码: LOG_CHANNEL=daily 二,配置laravel日志中记录url/方法/参数 1,config/logging.php 'daily' => 阅读全文
posted @ 2024-09-18 14:01 刘宏缔的架构森林 阅读(442) 评论(0) 推荐(0)
摘要: 一,官方网站: https://aide.github.io/ 代码站: https://github.com/aide/aide 二,安装aide 1,用yum从命令行安装 [root@192 ~]# yum install aide 2,查看版本: [root@192 ~]# aide -v A 阅读全文
posted @ 2024-09-17 19:25 刘宏缔的架构森林 阅读(216) 评论(0) 推荐(0)
摘要: 一,查看规则 查看所有规则 [root@192 ~]# nft list ruleset table inet my_table { chain my_chain { type filter hook input priority filter; policy accept; tcp dport 2 阅读全文
posted @ 2024-09-17 15:21 刘宏缔的架构森林 阅读(928) 评论(0) 推荐(0)
摘要: 一,policy: 1,原文档链接: https://docs.redhat.com/zh_hans/documentation/red_hat_enterprise_linux/9/html/configuring_firewalls_and_packet_filters/assembly_cre 阅读全文
posted @ 2024-09-17 13:40 刘宏缔的架构森林 阅读(406) 评论(0) 推荐(0)
上一页 1 ··· 75 76 77 78 79 80 81 82 83 ··· 179 下一页