lnmp-gninx1.8.1-mysql5.6.27-php

Source: Internet
Author: User
Tags fpm mcrypt

############# #nginx ############# #yum install pcre-devel zlib-devel-yuseradd-m-s/sbin/nologin nginxwget/http Nginx.org/download/nginx-1.8.1.tar.gztar XF nginx-1.8.1.tar.gz-c/usr/src/cd/usr/src/nginx-1.8.1/./configure-- Prefix=/usr/local/nginx--user=nginx--group=nginx--with-http_stub_status_module && make && make Installln-s/usr/local/nginx/sbin/nginx/usr/local/sbin/nginx-t && NGINXNETSTAT-ANPT | grep 80 ############# #mysql ############# #yum install ncurses-devel gcc gcc-c++-ycdwget https://cmake.org/ Files/v2.8/cmake-2.8.6.tar.gztar xf  cmake-2.8.6.tar.gz-c  /usr/src/cd/usr/src/cmake-2.8.6/ ./configure && gmake && gmake installcdwget http://mirror.neu.edu.cn/mysql/Downloads/MySQL-5.6/ Mysql-5.6.27.tar.gzgroupadd MySQL && useradd-m-s/sbin/nologin mysql-g Mysqltar XF mysql-5.6.27.tar.gz-c/usr/ Src/cd/usr/src/mysql-5.6.27/cmake-dcmake_install_prefix=/usr/local/mysql-dsysconfdir=/etc-ddefaUlt_charset=utf8-ddefault_collation=utf8_general_ci-dwith_extra_charsets=allmake && make Installchown-r Mysql.mysql/usr/local/mysql/rm-f/etc/my.cnfcp-f support-files/my-default.cnf/etc/my.cnf/usr/local/mysql/scripts /mysql_install_db--user=mysql--basedir=/usr/local/mysql/--datadir=/usr/local/mysql/data/echo "PATH= $PATH:/usr/ Local/mysql/bin ">>/etc/profile. /ETC/PROFILECP Support-files/mysql.server/etc/rc.d/init.d/mysqldchmod +x/etc/rc.d/init.d/mysqldchkconfig--add Mysqldservice mysqld start### #mysql允许远程 ######### #GRANT all privileges on * * to ' root ' @ '% ' identified by ' EdenMysql197 ' WI TH GRANT option;######### #FLUSH privileges; ################## #php ############# #rpm-e php php-cli php-ldap php-common php-mysql--nodepsyum Install Zlib-devel Libxml2-devel-ycdwget Https://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gztar XF Libmcrypt-2.5.8.tar.gz-c/usr/src/cd/usr/src/libmcrypt-2.5.8/./configure && make && makeInstallcdln-s/usr/local/lib/libmcrypt.*/usr/lib/wget https://sourceforge.net/projects/mhash/files/mhash/0.9.9.9 /mhash-0.9.9.9.tar.gztar XF mhash-0.9.9.9.tar.gz-c/usr/src/cd/usr/src/mhash-0.9.9.9/./configure && make && make installln-s/usr/local/lib/libmhash.*/usr/lib/cdwget https://sourceforge.net/projects/mcrypt/files /mcrypt/2.6.8/mcrypt-2.6.8.tar.gzccd/usr/src/mcrypt-2.6.8/export ld_library_path=/usr/local/lib: $LD _library_ Path./configure && make && make installcdwget https://sourceforge.net/projects/libpng/files/ Libpng14/older-releases/1.4.3/libpng-1.4.3.tar.gztar XF libpng-1.4.3.tar.gz-c/usr/src/cd/usr/src/libpng-1.4.3/./ Configure && make && make Installcdwget https://sourceforge.net/projects/freetype/files/freetype2/ 2.4.0/freetype-2.4.0.tar.gztar XF freetype-2.4.0.tar.gz-c/usr/src/cd/usr/src/freetype-2.4.0/./configure & & Make && make INSTALLCDWGET HTTP://WWW.IJG.ORG/FILES/JPEGSRC.V8B.TAR.GZCD/usr/src/jpeg-8b/./configure--enable-shared && make && make Installcdwget http://am1.php.net/ Distributions/php-5.6.21.tar.gztar XF php-5.6.21.tar.gz-c/usr/src/cd/usr/src/php-5.6.21/./configure--prefix=/usr /LOCAL/PHP5--with-mcrypt--with-mysql=/usr/local/mysql--with-config-file-path=/usr/local/php5--enable-mbstring- -WITH-GD--with-jpeg-dir=/usr/local/jpeg--with-zlib--with-png--with-freetype-dir=/usr/include/freetype2/ FreeType--enable-fpm--with-mysql=shared,mysqlndmake && make installcp/usr/src/php-5.6.21/ PHP.INI-PRODUCTION/USR/LOCAL/PHP5/PHP.INICD/USR/LOCAL/PHP5/ETC/CP Php-fpm.conf.default php-fpm.confuseradd-m-S/ Sbin/nologin Phpvim php-fpm.confpid = Run/php-fpm.piduser = Phpgroup = Phppm.start_servers = 20pm.min_spare_servers = 5pm. Max_spare_servers = 35pm.max_children = 50ln-s/USR/LOCAL/PHP5/SBIN/PHP-FPM/USR/LOCAL/SBIN/PHP-FPMNETSTAT-ANPT | grep php-fpmvim/usr/local/nginx/conf/nginx.conflocation ~ \.php$ {root   /usr/local/nginx/html/;fastcgi_pass    127.0.0.1:9000;fastcgi_index   index.php;include          fastcgi.conf;} #firewall-cmd--zone=public--add-port=80/tcp--permanent#firewall-cmd--reload

Lnmp-gninx1.8.1-mysql5.6.27-php

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.