Linux (CentOS) construction

Disable selinux

# vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled 
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Change SELINUX = disabled

Disable firewall service

# systemctl disable firewalld

You can check the status with the following command
# firewall-cmd --state
not running

Set the time zone to Japan time

# timedatectl set-timezone Asia/Tokyo

Check with the following command
# timedatectl

Set the locale to Japanese

# localectl set-locale LANG=ja_JP.utf8

Check with the following command
# localectl
# localedef -f UTF-8 -i ja_JP ja_JP.utf8

Change to a keymap with Japanese layout

# localectl set-keymap jp106

Check with the following command
# localectl

Recommended Posts

Linux (CentOS) construction
About Linux environment construction (CentOS)
Linux server construction link summary (CentOS7)
First LAMP environment construction (Linux)
Linux
Make Amazon Linux 2 (CentOS) GUI
Linux environment construction (on WSL environment)
DL Laravel environment construction method (Linux)
Linux Web server construction (Ubuntu & Apache)
About Linux environment construction (VMware VirtualBOX)
[Linux] I installed CentOS on VirtualBox
Server construction with CONOHA VPS (CentOS)
[Linux] Docker environment construction on Redhat
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Using Chainer with CentOS7 [Environment construction]
Teamviewer for Linux installation procedure (CentOS)
Linux file server construction (Ubuntu & Samba)
linux memorandum
Linux command # 4
Linux commands
Linux commands
Oracle Database 18c installation (Linux CentOS 7 edition)
Linux command # 3
Linux overview
Linux basics
direnv (linux)
Organize Linux
linux commands
Linux practice
Ubuntu Linux 20.04
Linux Summary
Linux process
Linux permissions
Linux command # 5
About Linux
Install Mecab on Linux (CentOS) with brew
Linux basics
How to update security on CentOS Linux 8
Forgot linux
Disable IPv6 on network interface on CentOS Linux 8
About Linux
Linux commands
Linux commands
About Linux
About Linux
About Linux ①
Linux redirect
[Linux] Basic settings after OS installation of CentOS 7.3
Easy script migration from CentOS to Oracle Linux
[Linux] When "| (pipe)" cannot be hit on CentOS7
Deployment method (2) (EC2 environment construction / Linux / MySQL settings)
Python 3.x environment construction by Pyenv (CentOS, Ubuntu)
Create an account from CentOS mail server construction
CentOS8 server construction (network opening and package update)