电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

LAMP环境搭建(图文)

LAMP环境搭建(图文)_第1页
1/15
LAMP环境搭建(图文)_第2页
2/15
LAMP环境搭建(图文)_第3页
3/15
下载后可任意编辑LAMP 环境搭建注意:先安装 MySQL 和 Apache,后安装 PHP,因为 PHP 配置编译的时候需要指定 mysql 路径和 apache 路径。需要用到软件:http-2.2.4.tar.gzmysql-5.6.22-linux-glibc2.5-x86_64.tar.gzphp-5.3.27.tar.gz安装 Apache2.2.4解压先查看 Linux 是 64 位,就上传 64 的源码包。下载后可任意编辑配置编译[root@darker src]# cd httpd-2.2.4[root@darker httpd-2.2.4]#./configure \--prefix=/usr/local/apache2 \--with-included-apr \--enable-so \--enable-deflate=shared \--enable-expires=shared \--enable-rewrite=shared \--with-pcre下载后可任意编辑使用 echo $? 假如返回 0 代表没有问题 假如返回 1 代表安装错误编译安装常见问题分析错误:error: mod_deflate has been requested but can not be built due to prerequisite failures解决:yum -y install zlib-devel下载后可任意编辑安装 MySQL解包初始化mv mysql-5.6.22-linux-glibc2.5-x86_64 /usr/local/mysqluseradd -s /sbin/nologin -M mysqlcd /usr/local/mysql/mkdir -p /data/mysqlchown -R mysql.mysql /data/mysql/./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/下载后可任意编辑配置basedir = /usr/local/mysqldatadir = /data/mysqlport = 3007server_id = 1启动cp support-files/mysql.server /etc/init.d/mysqldchmod 755 /etc/init.d/mysqldbasedir=/usr/local/mysql下载后可任意编辑datadir=/data/mysqlchkconfig --add mysqldchkconfig mysqld onservice mysqld startln -s /usr/local/mysql/bin/mysql /usr/bin/常见问题分析错误:error while loading shared libraries: libaio.so.1解决:yum -y install libaio下载后可任意编辑错误:Starting MySQL.The server quit without updating PID file (/[FAILED]ql/darker.pid).InnoDB: mmap(137363456 bytes) failed; errno 12 [ERROR] InnoDB: Cannot allocate memory for the buffer pool[ERROR] Plugin 'InnoDB' init function returned error.[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.[ERROR] Unknown/unsupported storage engine: InnoDB[ERROR] Aborting解决:innodb_buffer_pool_size = 8M将...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

LAMP环境搭建(图文)

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部