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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。