Journal日志清理
查看Journal日志的磁盘空间占用journalctl --disk-usage清理超过7天的日志journalctl --vacuum-time=7d修改配置文件,自动清理日志/etc/systemd/journald.confMaxRetentionSec=7day修改完成后重启服务systemctl restart systemd-journald.service
阅读全文
查看Journal日志的磁盘空间占用journalctl --disk-usage清理超过7天的日志journalctl --vacuum-time=7d修改配置文件,自动清理日志/etc/systemd/journald.confMaxRetentionSec=7day修改完成后重启服务systemctl restart systemd-journald.service
阅读全文
问题现象MySQL导入数据库报错,提示“ERROR at line 343: Unknown command '\n'.”解决方法在导入命令加入参数,指定字符集--default-character-set=utf8来源:https://www.cnblogs.com/bingxueme/archive/2012/05/15/2501999.html
阅读全文
基础命令查看firewalld服务状态systemctl status firewalld查看firewall运行状态firewall-cmd --state手动启停firewalld服务启动、停止、重启firewalldsystemctl start|stop|restart firewalld展示当前配置的firewall规则firewall-cmd --list-all任何修改操作,配...
阅读全文