Skip to content

Instantly share code, notes, and snippets.

@davexpro
Created March 22, 2017 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davexpro/f863a95025ce2243f4b3876d7462adf1 to your computer and use it in GitHub Desktop.
Save davexpro/f863a95025ce2243f4b3876d7462adf1 to your computer and use it in GitHub Desktop.
One Key Install LNMP Environment
rpm -Uvh https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el6-8.noarch.rpm
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel libxml2 libxml2-devel openssl openssl-devel curl-devel libjpeg-devel libpng-devel freetype-devel libmcrypt-devel mysql-community-server
service mysqld start
chkconfig mysqld on
yum -y install php70w php70w-cli php70w-common php70w-gd php70w-ldap php70w-mbstring php70w-mcrypt php70w-mysql php70w-pdo php70w-pecl-imagick php70w-pecl-redis php70w-opcache php70w-fpm
service php-fpm start
chkconfig php-fpm on
yum -y install redis nginx
service redis start
service nginx start
chkconfig redis on
chkconfig nginx on
service iptables stop
setenforce 0
getenforce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment