#author("2018-10-21T21:39:51+09:00","","")
[[Linux]]


#shadowheader(1,CentOS 7 初期インストール);

#shadowheader(1,目次);

#contents




* 初回アップデート [#r81c8cd6]
 sudo yum update




* 必要な機能のインストール [#v772e05e]
 sudo yum install bind-utils net-tools vim epel-release rsync ntp




* ipv6 無効化 [#u5083844]
- vi /etc/sysctl.d/disable_ipv6.conf
 net.ipv6.conf.all.disable_ipv6 = 1
 net.ipv6.conf.default.disable_ipv6 = 1
- 反映
 sysctl -p



** Network Manager 設定ツール [#s238cffd]
 nmtui




* ntp [#de2fd21a]



** chrony [#rbf53f7b]
- sudo systemctl stop ntpd.service
- sudo vi /etc/chronyd.conf
 server (ntpサーバーホスト名)
- sudo systemctl restart chronyd.service
- 初回同期
 chronyc -a makestep



** ntp [#ec445a7f]
- インストール
-- sudo yum install ntp
- 設定
-- sudo vi /etc/ntp.conf
 server ntp.tar3.net
- 初期同期
-- ntpdate ntp.tar3.net
- daemon の起動
-- systemctl start ntpd
- 確認
-- ntpq -p




* もしFirewallを無効にするなら[#u2ac5118]



** firewalld.service [#j7601b4b]
 systemctl stop firewalld.service
 systemctl disable firewalld.service



** SELinux 停止 [#wff82038]
-getenforce ← SELinux状態確認
 Enforcing ← SELinux有効
-setenforce 0 ← SELinux無効化
-getenforce ← SELinux状態確認
 Permissive ← SELinux無効
-vi /etc/sysconfig/selinux ← SELinux設定ファイル編集
 SELINUX=disabled ← システム起動時にSELinuxを無効化




* root メール、転送設定 [#bd70d2f4]
-yum install mailx
-vi /etc/aliases
 root: hoge@nifty.com
 echo test | mail root




* httpd, apache でldap認証の有効化 [#b066dc48]
-ldap module のインストール
 yum install mod_ldap -y
-.htaccessでAuthzLDAPAuthoritativeの無効化
--前
 AuthzLDAPAuthoritative  on
--後
 #AuthzLDAPAuthoritative  on
-httpd の再起動
 systemctl restart httpd

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS