Show Table of Contents
4.4. 系統管理
請參閱此部分以取得 Red Hat Enterprise Linux 6 和 Red Hat Enterprise Linux 7 之間,系統管理工具和程序變更上的概要。
4.4.1. 配置檔案語法
在 Red Hat Enterprise Linux 6 中,
export 指令使用於配置檔案中以匯出定義於這些檔案中的值。未使用 export 指令的變數不會被匯出,並且僅會被使用來作為相應 init script 的配置值。以下為 /etc/sysconfig/sshd 檔案的範例:
AUTOCREATE_SERVER_KEYS=YES export SSH_USE_STRONG_RNG=1 export OPENSSL_DISABLE_AES_NI=1
在 Red Hat Enterprise Linux 6 中,只有
SSH_USE_STRONG_RNG 和 OPENSSL_DISABLE_AES_NI 的值會被匯出到 ssh daemon 的環境中。AUTOCREATE_SERVER_KEYS 變數已被使用來命令 init script 自動建立 RSA 和 DSA 伺服器的私密與公共金鑰。
在 Red Hat Enterprise Linux 7 中,您已無須再使用
export 指令來將這些值匯出至欲配置之服務的環境中。因此,下列 /etc/sysconfig/sshd 範例檔案會將所有的三個值匯出至 ssh daemon 的環境中:
AUTOCREATE_SERVER_KEYS=YES SSH_USE_STRONG_RNG=1 OPENSSL_DISABLE_AES_NI=1

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.