もくもく雑記

雲のようにダラダラと

CentOS7 個人的初期設定

・作業用ユーザーの追加

usermod -G wheel ユーザー名

 

Apacheのインストール

yum -y install httpd

 

MariaDBのインストール

yum -y install mariadb mariadb-server

 

PHPのインストール

yum -y install php

 

SELinuxの無効化

setenforce 0

vi /etc/sysconfig/selinux

SELINUX=enforcingをSELINUX=disabledに書き換える

 

・Firewalldの無効化

systemctl disable firewalld

 

・再起動

reboot

 

ApacheMySQLの起動と自動起動設定

systemctl  start httpd.service

systemctl  start mariadb.service

systemctl enable httpd.service

systemctl enable mariadb.service