centos 6.5 安装 openresty, php, mysql
2014年9月2日
没有评论
#准备工作 yum install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers libmcrypt libmcrypt-devel yum install xmlto doxygen |
[mysql]
#安装cmake tar zxvf cmake-3.0.1.tar.gz cd cmake-3.0.1 ./configure gmake gmake install #添加mysql用户 /usr/sbin/groupadd mysql /usr/sbin/useradd -g mysql mysql mkdir -p /data/mysql chown -R mysql:mysql /data/mysql #安装Mysql tar zxvf mysql-5.5.38.tar.gz cd mysql-5.5.38 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DSYSCONFDIR=/etc/ #如果碰到Curses library not found, 则 #yum install ncurses-devel</span><span style="color: #008000;"> #rm -rf CMakeCache.txt #然后重复上面一步 make make install #因为只用到php的mysql连接库,到此为止。 #其余参考 http://www.cnblogs.com/wubaiqing/archive/2011/11/08/2241195.html |
#安装php tar zxvf php-5.3.28.tar.gz cd php-5.3.28 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-pear --with-gettext --enable-session --with-mcrypt --with-curl make make install |
#安装rabbitmq-c tar zxvf rabbitmq-c-0.5.1.tar.gz cd rabbitmq-c-0.5.1 mkdir build && cd build cmake .. cmake --build . make make install #安装amqp扩展 tar zxvf amqp-1.4.0.tgz cd amqp-1.4.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-amqp make make install #安装完毕,如果报找不到librabbitmq.so.1, 执行 #ln -s /usr/local/lib64/librabbitmq.so.1 /usr/local/lib/librabbitmq.so.1 |
分类: 未分类
近期评论