浅见池也 发表于 2015-11-16 09:18:19

安装支持magento的lnmp

我的Linux环境是CentOS5.5
登陆到root
执行:wget -c http://soft.vpser.net/lnmp/lnmp0.7-full.tar.gz
tar zxvf lnmp0.7-full.tar.gz
cd lnmp0.7-full/
由于我要装的是magento程序,lnmp默认安装Mysql没有安装innodb,所以在这里我们要编辑下安装文件
打开 /root/lnmp0.7-full/centos.sh 文件
找到 大约在244行
echo "============================mysql install=================================="
cd $cur_dir
tar -zxvf mysql-5.1.54.tar.gz
cd mysql-5.1.54/
./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-thread-safe-client --enable-assembler --with-charset=utf8 --enable-thread-safe-client --with-extra-charsets=all --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile
make && make install
cd ../ echo "============================mysql install=================================="
cd $cur_dir
tar -zxvf mysql-5.1.54.tar.gz
cd mysql-5.1.54/
./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-thread-safe-client --enable-assembler --with-charset=utf8 --enable-thread-safe-client --with-extra-charsets=all --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile--with-plugins=innobase
make && make install
cd ../
就是在enable-local-infile后面添加--with-plugins=innobase 执行 ./centos.sh | tee lnmp.log
输入要绑定的域名(建议使用一个二级域名,该域名会绑定到/home/wwwroot/),回车,再输入要设置的MySQL root的密码,回车,提示"Press any key to start...",按任意键开始安装。程序会自动安装编译Nginx、PHP、MySQL、phpMyAdmin、Zend这几个软件
页: [1]
查看完整版本: 安装支持magento的lnmp