centos6.5安装lamp

前端之家收集整理的这篇文章主要介绍了centos6.5安装lamp前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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 MysqL

cp 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/data

chown -R root.root ./
chown -R MysqL.MysqL data

cp support-files/my-default.cnf /etc/my.cnf
cp support-files/MysqL.server /etc/init.d/MysqLd
chmod 755 /etc/init.d/MysqLd

vim /etc/init.d/MysqLd


service MysqLd start

export PATH=$PATH:/application/MysqL/bin source /etc/profile service MysqLd status MysqL -uroot -p

原文链接:https://www.f2er.com/centos/377000.html

猜你在找的CentOS相关文章