RAM 低於 2 GB
設置 swap 為 RAM*2 GB
的大小
RAM 大於 2 GB
設置 swap 為 RAM + 2GB
的大小
RAM 低於 2 GB
設置 swap 為 RAM*2 GB
的大小
RAM 大於 2 GB
設置 swap 為 RAM + 2GB
的大小
# Step 1: Install Apache yum clean all yum -y update yum -y install httpd # Step 2: Allow Apache Through the Firewall firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --zone=public --add-port=443/tcp --permanent firewall-cmd --reload # Step 3: Configure Apache to Start on Boot systemctl start httpd systemctl enable httpd
# CentOS/RHEL 7.x rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm # Install php 7 yum -y install php70w php70w-opcache
# Install MySQL / MariaDB yum -y install mariadb-server mariadb systemctl start mariadb systemctl enable mariadb
# Step 1: Add the EPEL Repository rpm -iUvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # Step 2: Install phpMyAdmin yum -y update yum -y install phpmyadmin # Step 3: Basic Configuration for phpMyAdmin vi /etc/httpd/conf.d/phpMyAdmin.conf systemctl restart httpd
# Disabled SELINUX vi /etc/sysconfig/selinux set SELINUX=disabled