内容一:Linux 软件库配置文件
/etc/ld.so.conf
/etc/ld.so.conf
# localectl set-locale LANG=en_US.UTF-8
(补充:这里以将 locale 设置为 en_US.UTF-8 为例)
# vi /etc/locale.conf
将全部内容修改如下:
LANG=en_US.UTF-8
(补充:这里以将 locale 设置为 en_US.UTF-8 为例)
# vi ~/.bash_profile
添加以下内容:
......
LANG=en_US.UTF-8
(补充:这里以给当前用户将 locale 设置为 en_US.UTF-8 为例)
# vi ~/.bashrc
添加以下内容:
......
LANG=en_US.UTF-8
(补充:这里以给当前用户将 locale 设置为 en_US.UTF-8 为例)
# locale -a
/etc/at.allow
/etc/at.deny
/etc/cron.allow
/etc/cron.deny
/dev/vg/lv_var /var xfs nodev,nosuid,noexec 0 0
/dev/vg/lv_var_log /var/log xfs nodev,nosuid,noexec,x-systemd.requires-mounts-for=/var 0 0
(
Add:
1) nodev parameter here means this directory can not be interpreted by devices or blocks
2) nosuid parameter here means no setuid files can be created in this directory
3) noexec parameter here means no files can be executed in this directory
4) x-systemd.requires-mounts-for=/var here parameter means /var/log directory can not be mounted until /var directory has been mounted
)
For RHEL 6, RHEL 7, RHEL 8, RHEL 9
RAM size | Recommended swap size | Recommended swap size if allowing for hibernation |
From 0 to 2GB | 2 times the RAM size | 3 times the RAM size |
From 2GB to 8GB | The same size of the RAM | 2 times the RAM size |
From 8GB to 64GB | At least 4GB | 1.5 times the RAM size |
From 64GB | At least 4GB | Hibernation is not recommended |
Note: A 100GB swap is recommended if system with over 140 logical processes or over 3TB RAM
https://access.redhat.com/solutions/15244