mirror of
https://github.com/spiritLHLS/one-click-installation-script.git
synced 2024-11-16 11:22:17 +08:00
Update resize_journal.sh
This commit is contained in:
parent
2e3b3561a3
commit
1e08c5af81
|
@ -12,9 +12,12 @@ head() {
|
|||
echo "# ${GREEN}作者${PLAIN}: spiritlhl #"
|
||||
echo "# ${GREEN}作仓库${PLAIN}: https://github.com/spiritLHLS/one-click-installation-script #"
|
||||
echo "#######################################################################"
|
||||
echo "支持系统:Ubuntu 12+,Debian 6+"
|
||||
echo "自定义修改大小,单位为MB,一般500M或者1G即可,有的系统日志默认给了5G甚至更多,不是做站啥的没必要"
|
||||
echo "支持系统:Ubuntu 18+,Debian 8+,centos 7+,Fedora,Almalinux 8.5+
|
||||
echo "1.自定义修改大小,单位为MB,一般500或者1000即可,有的系统日志默认给了5000甚至更多,不是做站啥的没必要"
|
||||
echo "请注意,修改journal目录大小可能会影响系统日志的记录。因此,在修改 journal 目录大小之前,建议先备份系统日志到本地"
|
||||
echo "2.运行脚本同时设置系统日志保留日期时长,超过日期时长的日志将被清除"
|
||||
echo "3.同时修改日志只记录warning等级"
|
||||
echo "4.以后日志的产生将受到日志文件大小,日志保留时间,日志保留等级的限制"
|
||||
# Display prompt asking whether to proceed with changing
|
||||
reading "Do you want to proceed with changing? [y/n] " confirm
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user