Skip to content

Instantly share code, notes, and snippets.

View kingoamino's full-sized avatar

Aboumerrouane Mohamed Amine kingoamino

View GitHub Profile
@kingoamino
kingoamino / Inst_MySQL_CentOS.sh
Last active April 5, 2020 16:49
Install MySQL on CentOS
# Setup Yum repository
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
# Install MySQL 8 Community Server
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo
# Install MySQL
yum --enablerepo=mysql80-community install mysql-community-server -y
# Start MySQL Service
@kingoamino
kingoamino / Config_MySQL.sh
Last active April 5, 2020 16:15
Configuration MySQL
# Show the default password for root user
grep "A temporary password" /var/log/mysqld.log
# MySQL Secure Installation
mysql_secure_installation
# Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
@kingoamino
kingoamino / Inst_Apach_cent.sh
Last active April 5, 2020 17:54
install Apach on Centos
# Install Apache
yum update -y
yum install httpd -y
systemctl start httpd.service
# Enable Apache to start at server boot
systemctl enable httpd.service
# for EC2 & RDS Database
setsebool httpd_can_network_connect_db 1