Differences between revisions 2 and 4 (spanning 2 versions)
1548
Comment:
|
1750
|
Deletions are marked like this. | Additions are marked like this. |
Line 45: | Line 45: |
/etc/selinux/config | |
Line 47: | Line 46: |
---- /!\ '''Edit conflict - other version:''' ---- file: /etc/selinux/config 中 ---- /!\ '''Edit conflict - your version:''' ---- file: /etc/selinux/config }}} 中 {{{ ---- /!\ '''End of edit conflict''' ---- |
SL7 (Centos7) OS インストール後の初期設定
1. EPEL repository の追加
# yum install epel-release
2. Yum レポジトリーの変更(ミラーを設定)
/etc/yum.repos.d/
配下のファイル、最初のentry (URL)を
http://ftp.riken.jp/Linux/...
に変更
3. kernelのパケットフィルタを firewalld から iptables に変更
# systemctl stop firewalld.service # systemctl mask firewalld.service # yum install iptables-services # systemctl enable iptables.service # systemctl start iptables.service
4. 必要ならば SE linux を disable する
---- /!\ '''Edit conflict - other version:''' ---- file: /etc/selinux/config 中 ---- /!\ '''Edit conflict - your version:''' ---- file: /etc/selinux/config
中
---- /!\ '''End of edit conflict''' ---- #SELINUX=enforcing SELINUX=disabled
の変更後、reboot
5. SSHを外部に開いている場合は、パスワード認証を禁止
file: /etc/ssh/sshd_config PasswordAuthentication no