yum update -y
yum -y install ntp make openssl openssl-devel pcre pcre-devel libpng libpng-devel libjpeg-6b libjpeg-devel-6b freetype freetype-devel gd gd-devel zlib zlib-devel libXpm libXpm-devel ncurses ncurses-devel libmcrypt libmcrypt-devel libxml2 libxml2-devel imake autoconf automake screen sysstat compat-libstdc++-33 curl curl-devel
./configure --prefix=/application/Nginx \
--sbin-path=/application/Nginx/Nginx \
--conf-path=/application/Nginx/Nginx.conf \
--pid-path=/application/Nginx/Nginx.pid \
--with-http_ssl_module \
--with-pcre \wget http://dev.MysqL.com/get/Downloads/mysql-5.6/mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz
tar zxvf mysql-5.6.33-linux-glibc2.5-x86_64.tar.gz
groupadd MysqL
useradd -r -g MysqL -s /sbin/nologin MysqLcp mysql-5.6.33-linux-glibc2.5-x86_64 MysqL -r
cd MysqL
chown -R MysqL.MysqL ./
./scripts/MysqL_install_db --user=MysqL --datadir=/application/MysqL/datachown -R root.root ./
chown -R MysqL.MysqL datacp support-files/my-default.cnf /etc/my.cnf
cp support-files/MysqL.server /etc/init.d/MysqLd
chmod 755 /etc/init.d/MysqLdvim /etc/init.d/MysqLd
service MysqLd startexport PATH=$PATH:/application/MysqL/bin source /etc/profile service MysqLd status MysqL -uroot -p