インストール直後にやることメモ(CentOS7編)


インストール直後にする(自分の)儀式をまとめる。
基本ローカルネットワーク運用を前提としています。

パッケージアップデート

何も考えずに全パッケージアップデート。

# yum update 
# reboot

net-toolsインストール

ipコマンドでもいいのですが、ifconfig使いたいおじさんなのでインストールしておきます。

# yum install net-tools

firewalld停止

ローカル運用なのでがばがばにしときます。

# systemctl stop firewalld
# systemctl disable firewalld

SELinux無効化

設定ファイルの変更は書き換える場所を間違ると悲惨なので注意する。

# getenforce
# setenforce 0
# getenforce
# vi /etc/selinux/config
 → SELINUX=disabled
# reboot

IPアドレス設定

(IPv4設定)
# nmcli c m eth0 ipv4.addresses 192.168.YYY.ZZZ/24
# nmcli c m eth0 ipv4.method manual
# nmcli c m eth0 ipv4.gateway 192.168.YYY.1
# nmcli c m eth0 ipv4.may-fail no
# nmcli c m eth0 ipv4.dns 8.8.8.8

(IPv6無効化)
# nmcli c m eth0 ipv6.method ignore