{"id":11,"date":"2014-09-02T15:37:42","date_gmt":"2014-09-02T07:37:42","guid":{"rendered":"http:\/\/www.aymoo.com\/?p=11"},"modified":"2014-09-11T15:16:44","modified_gmt":"2014-09-11T07:16:44","slug":"centos-6-5-%e5%ae%89%e8%a3%85-openresty-php-mysql","status":"publish","type":"post","link":"http:\/\/www.aymoo.com\/?p=11","title":{"rendered":"centos 6.5 \u5b89\u88c5 openresty, php, mysql"},"content":{"rendered":"<pre lang=\"bash\">\r\n#\u51c6\u5907\u5de5\u4f5c\r\nyum 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\r\nyum install xmlto doxygen\r\n<\/pre>\n<p>[mysql]<\/p>\n<pre lang=\"bash\">\r\n#\u5b89\u88c5cmake\r\ntar zxvf cmake-3.0.1.tar.gz\r\ncd cmake-3.0.1\r\n.\/configure\r\ngmake\r\ngmake install\r\n\r\n#\u6dfb\u52a0mysql\u7528\u6237\r\n\/usr\/sbin\/groupadd mysql\r\n\/usr\/sbin\/useradd -g mysql mysql\r\nmkdir -p \/data\/mysql\r\nchown -R mysql:mysql \/data\/mysql\r\n\r\n#\u5b89\u88c5Mysql\r\ntar zxvf mysql-5.5.38.tar.gz\r\ncd mysql-5.5.38\r\ncmake . -DCMAKE_INSTALL_PREFIX=\/usr\/local\/mysql -DMYSQL_DATADIR=\/data\/mysql -DSYSCONFDIR=\/etc\/\r\n#\u5982\u679c\u78b0\u5230Curses library not found, \u5219\r\n#yum install ncurses-devel<\/span><span style=\"color: #008000;\">\r\n#rm -rf CMakeCache.txt\r\n#\u7136\u540e\u91cd\u590d\u4e0a\u9762\u4e00\u6b65\r\n\r\nmake\r\nmake install\r\n#\u56e0\u4e3a\u53ea\u7528\u5230php\u7684mysql\u8fde\u63a5\u5e93\uff0c\u5230\u6b64\u4e3a\u6b62\u3002 \r\n#\u5176\u4f59\u53c2\u8003 http:\/\/www.cnblogs.com\/wubaiqing\/archive\/2011\/11\/08\/2241195.html\r\n<\/pre>\n\n<pre lang=\"bash\">\r\n#\u5b89\u88c5php\r\ntar zxvf php-5.3.28.tar.gz\r\ncd php-5.3.28\r\n.\/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\r\nmake\r\nmake install\r\n<\/pre>\n<pre lang=\"bash\">\r\n#\u5b89\u88c5rabbitmq-c\r\ntar zxvf rabbitmq-c-0.5.1.tar.gz\r\ncd rabbitmq-c-0.5.1\r\nmkdir build &amp;&amp; cd build \r\ncmake ..\r\ncmake --build .\r\nmake\r\nmake install\r\n\r\n#\u5b89\u88c5amqp\u6269\u5c55\r\ntar zxvf amqp-1.4.0.tgz\r\ncd amqp-1.4.0\r\n\/usr\/local\/php\/bin\/phpize\r\n.\/configure --with-php-config=\/usr\/local\/php\/bin\/php-config --with-amqp\r\nmake\r\nmake install\r\n\r\n#\u5b89\u88c5\u5b8c\u6bd5\uff0c\u5982\u679c\u62a5\u627e\u4e0d\u5230librabbitmq.so.1, \u6267\u884c\r\n#ln -s \/usr\/local\/lib64\/librabbitmq.so.1 \/usr\/local\/lib\/librabbitmq.so.1\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#\u51c6\u5907\u5de5\u4f5c yum install gcc gcc-c++ autoconf libjpeg libjpeg- [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/posts\/11"}],"collection":[{"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":10,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":22,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/22"}],"wp:attachment":[{"href":"http:\/\/www.aymoo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aymoo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}