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

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native