欢迎来到天天文库
浏览记录
ID:2038619
大小:66.50 KB
页数:10页
时间:2017-11-14
《lamp环境搭建学习笔记2》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、安装Centos6.4zlib1.2.8libpng1.6.9jpegsrcv9a.Freetype.2.5.3apr-1.5.0apr-util-1.5.3gd2.44libgd2.10备注:.xz解压tar.xz文件:先xz-dxxx.tar.xz将xxx.tar.xz解压成xxx.tar然后,再用tarxvfxxx.tar来解包。安装cmake2.8.12.2安装Mysql5.6.16#cmake-DMYSQL_DATADIR=/base/MySQL/data-DDEFAULT_CHARSET=utf8-DDEFAULT_COLLATION=utf8_genera
2、l_ci-DEXTRA_CHARSETS=all-DMYSQL_UNIX_ADDR=/base/MySQL/socket-DMYSQL_TCP_PORT=3306-DMYSQL_USER=mysql-DCMAKE_INSTALL_PREFIX=/base/MySQL-DINSTALL_SBINDIR=bin上面参数过于复杂所以直接cmake.makemakeinstall默认安装路径/usr/local/mysqlgroupaddmysqluseradd-gmysqlmysqlchown-Rmysql.mysql/usr/local/mysqlcd/usr/local/
3、mysql/scripts./mysql_install_db–user=mysql--basedir=/usr/local/mysql–datadir=/usr/local/mysql/datacd/usr/local/mysql/support-filescpmysql.server/etc/rc.d/init.d/mysqlcpmy-default.cnf/etc/my.cnfchkconfig-addmysqlchkconfigmysqlonservicemysqlstartmysql安装httpd2.4.7./configure--prefix=/usr/lo
4、cal/apache2--enable-lib64--libdir=/usr/lib64--enable-so--enable-deflate=shared--enable-expires=shared--enable-rewrite=shared--enable-mods-shared=all--enable-modules=all--enable-static-support--with-z=/usr/local/zlib--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-includ
5、ed-apr--with-pcre=/usr/local/pcre--enable-cache--enable-disk-cache--enable-mem-cache--enable-file-cachemakemakeinstallcd/usr/local/apache2cdbin./apachectl-t./apchectlstart成功安装libxml2-2.9.1./configure–prefix=/usr/local/libxmlmakemake[4]:***[libxml.lo]错误1make[4]:Leavingdirectory`/root/libx
6、ml2-2.9.1/python'make[3]:***[all-recursive]错误1make[3]:Leavingdirectory`/root/libxml2-2.9.1/python'make[2]:***[all]错误2make[2]:Leavingdirectory`/root/libxml2-2.9.1/python'make[1]:***[all-recursive]错误1make[1]:Leavingdirectory`/root/libxml2-2.9.1'make:***[all]错误2makeclean重装试验./configure依旧出错再
7、重装安装libtoollibtool-2.4.tar.gz依旧出错安装libiconv1.14依旧出错安装apr-iconv-1.2.1依旧出错跳过直接安装libmcrypt-2.5.7再次重装libxml./configure--prefix=/usr/local/libxml2--disable-static--with-history--with-python--with-modules--disable-shared–with-picmake错误依旧安装python-2.7.5.tar.bz2tarxvfpython-2.7.5.
此文档下载收益归作者所有