时间:2021-07-01 10:21:17 帮助过:2人阅读
下载地址:http://dev.mysql.com/downloads/mysql/5.6.html#downloads 选择“Source Code”,用已经注册好的oracle账户登录后才能下载,下载版本为mysql-5.6.15.tar.gz,也就是上图的最后一个包。
或者
http://mirrors.sohu.com/mysql/MySQL-5.6/,搜狐镜像
选择 mysql-5.6.25.tar.gz
必要软件包
yum -y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* make cmake
ps:mysql5.x版本后只能用cmake编译安装
解压进入mysql源码目录
添加用户
groupadd mysql
useradd -r -g mysql mysql
安装
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
make && make install
设置权限
chmod +x /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql
http://cn2.php.net/distributions/php-5.3.29.tar.gz
依赖
yum install -y gcc gcc-c++ make zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers php-mcrypt libmcrypt libmcrypt-devel
./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt --enable-mbstring --disable-pdo --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-mysqli --with-gd --with-jpeg-dir
php安装,mysql安装
标签: