Skip to content

Instantly share code, notes, and snippets.

@karlgray
Last active April 29, 2016 17:14
Show Gist options
  • Save karlgray/cd1f2dcb25932f4e67d72a473edb96e1 to your computer and use it in GitHub Desktop.
Save karlgray/cd1f2dcb25932f4e67d72a473edb96e1 to your computer and use it in GitHub Desktop.
Prepare a Centos 6.7 Server
#!/bin/bash
yum -y update
yum -y install vim wget curl
yum -y install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm
yum -y install Percona-Server-server-56
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum -y install https://mirror.webtatic.com/yum/el6/latest.rpm
yum -y install php56w php56w-opcache php56w-fpm php56w-mysql mlocate vim redis php56w-pecl-redis memcached
yum -y install http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install monit
wget https://gist.githubusercontent.com/karlgray/da2152de8b9b3e52ceae4cee2cbe68a6/raw/c7366ed4e944de804f65aae64e040720ea2df823/gray.repo
mv gray.repo /etc/yum.repos.d/
yum -y update
yum -y install nginx
chkconfig --add nginx
chkconfig --add php-fpm
chkconfig --add mysql
chkconfig --add monit
service nginx start
service php-fpm start
service mysql start
service monit start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment