优化提示

This commit is contained in:
2017-08-26 13:31:33 +08:00
parent 90e3ab1c6f
commit fde5d8dead
2 changed files with 5 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# Install nginx
echo "Installing nginx..."
# Install Nginx
echo "Installing Nginx..."
echo "[nginx]
name=nginx repo
@@ -9,8 +9,6 @@ baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/
gpgcheck=0
enabled=1" > /etc/yum.repos.d/nginx.repo
# Install Nginx
echo "Installing Nginx..."
sudo yum install -y nginx
# Configure Nginx for PHP

View File

@@ -1,14 +1,10 @@
#!/bin/bash
# Install php
echo "Installing php..."
# Install the Required Repositories
echo "Installing the Required Repositories..."
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-${CentOS_RHEL_version}.rpm
# Install PHP
echo "Installing PHP..."
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-${CentOS_RHEL_version}.rpm
sudo yum install -y --enablerepo=remi,remi-php71 php-gd php-fpm php-cli php-pdo php-xml php-json php-common php-mcrypt php-mysqlnd php-mbstring php-zip php-opcache php-xmlrpc
# Install Composer