CentOS7系

コマンドが変わり過ぎてて困ったのでメモ


1. SELinux 無効化

setenforce 0

getenforce

→ Permissive

/etc/selinux/config

SELINUX=disabled


2. FW OFF

systemctl stop firewalld

systemctl disable firewalld


3. bash コマンド補完

yum install bash-completion

wget https://github.com/terralinux/systemd/raw/master/src/systemctl-bash-completion.sh -O /etc/bash_completion.d/systemctl-bash-completion.sh


4. ネットワーク関連コマンドインストール

yum install -y net-tools bind-utils


5. NTPクライアント & TimeZone

yum install chrony

systemctl start chronyd

systemctl enable chronyd

cp /etc/localtime /etc/localtime.org

ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

date


6. 諸々インストール

# yum install httpd

# yum install php

# yum install mysql-server

# yum install php-mysql

# yum install php-mbstring

# yum install vim


7. my.conf

skip-character-set-client-handshakeskip

character-set-server=utf8

default-character-set=utf8


8. LANG

export LANG=ja_JP.utf-8


9.その他

https://qiita.com/bezeklik/items/0622fbaf7d33dd95d005

乃木活と備忘録

岡村隆史のオールナイトニッポン 乃木坂46