標籤:default hash ges public sys pre vim with load
##############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‘ WITH 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 && make installcdln -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